/* GDPR Cookie Consent Banner Styles */
.cookie-banner {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 700px;
  background: #fff;
  color: #333;
  border-radius: 8px;
  z-index: 99999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  max-height: 90vh;
  overflow-y: auto;
}

.cookie-banner__container {
  max-width: 100%;
}

.cookie-banner__title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: #1a1a1a;
}

.cookie-banner__description {
  margin-bottom: 1.5rem;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

.cookie-banner__description p {
  margin: 0 0 0.5rem 0;
}

.cookie-banner__description a {
  color: #00796b;
  text-decoration: underline;
}

.cookie-banner__description a:hover {
  color: #004d40;
}

/* Cookie Categories */
.cookie-banner__categories {
  margin: 1.5rem 0;
}

.cookie-banner__category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-top: 1px solid #e0e0e0;
}

.cookie-banner__category:last-child {
  border-bottom: 1px solid #e0e0e0;
}

.cookie-banner__category--label {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cookie-category-name {
  font-weight: 600;
  font-size: 15px;
  color: #1a1a1a;
}

.cookie-category-info {
  font-size: 13px;
  color: #777;
}

/* Toggle Switch */
.cookie-banner__category--toggle {
  position: relative;
  width: 50px;
  height: 26px;
  background-color: #ccc;
  border-radius: 13px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.cookie-banner__category--toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-banner__category--toggle.is-active {
  background-color: #00796b;
}

.cookie-banner__category--toggle.is-active::after {
  left: 27px;
}

.cookie-banner__category--toggle.disabled {
  cursor: not-allowed;
  opacity: 0.6;
  background-color: #00796b;
}

.cookie-banner__category--toggle:hover:not(.disabled) {
  background-color: #b0b0b0;
}

.cookie-banner__category--toggle.is-active:hover:not(.disabled) {
  background-color: #00695c;
}

/* Buttons */
.cookie-banner__buttons {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner__buttons button {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.cookie-banner__buttons .btn-secondary {
  background-color: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
}

.cookie-banner__buttons .btn-secondary:hover {
  background-color: #e0e0e0;
}

.cookie-banner__buttons .btn-primary {
  background-color: #00796b;
  color: white;
}

.cookie-banner__buttons .btn-primary:hover {
  background-color: #00695c;
}

.cookie-banner__buttons .btn-accept {
  background-color: #00796b;
  color: white;
}

.cookie-banner__buttons .btn-accept:hover {
  background-color: #004d40;
}

/* Manage Cookie Button */
.cookie-manage-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 99998;
  background-color: transparent;
  border: none;
  border-radius: 0;
  width: 60px;
  height: 60px;
  cursor: pointer;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition: all 0.3s ease;
}

.cookie-manage-btn:hover {
  transform: scale(1.1);
  box-shadow: none;
}

/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Responsive Design */
@media (max-width: 600px) {
  .cookie-banner {
    width: 95%;
    padding: 1.5rem;
  }
  
  .cookie-banner__title {
    font-size: 20px;
  }
  
  .cookie-banner__buttons {
    flex-direction: column;
  }
  
  .cookie-banner__buttons button {
    width: 100%;
  }
  
  .cookie-manage-btn {
    bottom: 15px;
    left: 15px;
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
}