/* 1. WhatsApp Widget Styles */
/* (content from whatsapp.css) */
.wa-box {
  position: fixed;
  bottom: 110px;
  right: 20px;
  width: 300px;
  background: #fff8e7;
  border: 1px solid #5a2d2d;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  padding: 1rem;
  z-index: 9999;
  display: none;
  box-sizing: border-box;
}

.wa-header {
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #5a2d2d;
}

.wa-message-text {
  margin-bottom: 0.5rem;
  color: #333;
}

.wa-textarea {
  width: 100%;
  max-height: 80px;
  overflow-y: auto;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  resize: none;
  box-sizing: border-box;
}

.wa-send {
  margin-top: 0.5rem;
  background: #5a2d2d;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
}

.wa-status {
  color: #5a2d2d;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  display: none;
}

.wa-footer {
  text-align: right;
  margin-top: 0.3rem;
}

.wa-minimize {
  background: transparent;
  border: none;
  color: #0dc886;
  font-size: 0.9rem;
  cursor: pointer;
}

.wa-toggle {
  position: fixed;
  bottom: 85px;
  right: 40px;
  background: #25d366; /* Official WhatsApp green */
  color: white;
  width: 60px; /* Slightly larger for better visibility */
  height: 60px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); /* WhatsApp green shadow */
  z-index: 9999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-size: 0; /* Hide any text content */
  text-indent: -9999px; /* Push text off-screen */
  overflow: hidden; /* Hide any overflow */
}

/* WhatsApp icon using external image file */
.wa-toggle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  background-image: url('../pictures/whatsapp-icon.svg');
  background-size: 22px 22px;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 0 1px rgba(0,0,0,0.1));
}

.wa-toggle::after {
  display: none;
}

/* Hover effect */
.wa-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Cookies consent base style */

.cc-window {
    position: fixed;
    overflow: hidden;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.5em;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity .4s ease;
}
.cc-window.cc-banner {
    width: 100%;
    padding: 1em 1.8em;
    color: #000;
    background-color: #f5f5f5;
}
.cc-btn {
    margin: 0.5em;
    padding: 0.4em 0.5em;
    border: none;
    background: #5a2d2d;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    border-radius: 4px;
}
.cc-link {
    color: #5a2d2d;
    text-decoration: underline;
}

/* Ensure the consent box displays correctly */
.cc-window {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Style for the button container */
.cc-compliance {
    display: flex;
    gap: 0.5em;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    margin-top: 0.5em;
}

@media screen and (max-width: 768px) {
    .cc-window {
        flex-direction: column;
        text-align: center;
    }
}

/* Cookies consent custom style */
/* Cookie Banner Main Layout */
.cc-window {
  display: flex !important;
  flex-direction: column;
  align-items: center !important;
  justify-content: center;
  text-align: center;
  padding: 1.5em;
  background-color: #fff8e7;
  color: #333;
  font-size: 16px;
  line-height: 1.6;
  border-top: 1px solid #ccc;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
}

/* Button Styling */
#cc-allow,
#cc-deny {
  display: inline-block;
  padding: 0.6em 1.4em;
  font-weight: 600;
  font-size: 1em;
  border-radius: 6px;
  background-color: #5a2d2d;
  color: white;
  border: none;
  cursor: pointer;
  margin: 0.5em;
}

/* Optional: Adjust spacing individually if needed */
#cc-allow {
  margin-right: 5em !important;
}

#cc-deny {
  margin-right: 4em !important;
}

/* Link Styling */
.cc-link {
  color: #5a2d2d;
  text-decoration: underline;
}

/* Responsive Adjustment */
@media screen and (max-width: 768px) {
  .cc-window {
    padding: 1em;
  }

  #cc-allow,
  #cc-deny {
    width: 100%;
    margin: 0.3em 0;
  }
}
