/* Cookie Consent Banner Styles - Applixus Theme */

/* Cookie Banner */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #a60c0c 0%, #be0e0e 100%);
  color: #fff;
  padding: 20px;
  z-index: 99999;
  box-shadow: 0 -4px 20px rgba(166, 12, 12, 0.3);
  transform: translateY(100%);
  transition: transform 0.4s ease-in-out;
  font-family: "Open Sans", sans-serif;
}

.cookie-consent-banner.show {
  transform: translateY(0);
}

.cookie-consent-banner .container {
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-banner-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cookie-banner-title {
  font-family: "Nunito", sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #fff;
}

.cookie-banner-text {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
}

.cookie-banner-text a {
  color: #ffd7d7;
  text-decoration: underline;
  font-weight: 600;
}

.cookie-banner-text a:hover {
  color: #fff;
}

.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.cookie-btn {
  padding: 12px 28px;
  border: none;
  border-radius: 4px;
  font-family: "Nunito", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: none;
  letter-spacing: 0.3px;
}

.cookie-btn-manage {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.cookie-btn-manage:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.cookie-btn-accept {
  background: #fff;
  color: #a60c0c;
}

.cookie-btn-accept:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cookie-btn-reject {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.cookie-btn-reject:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Cookie Settings Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.cookie-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.cookie-modal {
  background: #fff;
  border-radius: 8px;
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cookie-modal-overlay.show .cookie-modal {
  transform: scale(1);
}

.cookie-modal-header {
  background: linear-gradient(135deg, #a60c0c 0%, #be0e0e 100%);
  color: #fff;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-modal-header h3 {
  margin: 0;
  font-family: "Nunito", sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.cookie-modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.cookie-modal-close:hover {
  opacity: 1;
}

.cookie-modal-body {
  padding: 0;
  overflow-y: auto;
  flex: 1;
}

/* Cookie Categories */
.cookie-category {
  border-bottom: 1px solid #eee;
}

.cookie-category:last-child {
  border-bottom: none;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  background: #fff;
  transition: background 0.2s ease;
}

.cookie-category-header:hover {
  background: #fafafa;
}

.cookie-category-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #a60c0c;
}

.cookie-category-title i {
  font-size: 10px;
  transition: transform 0.3s ease;
  color: #888;
}

.cookie-category.open .cookie-category-title i {
  transform: rotate(90deg);
}

.cookie-category-content {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: #f9f9f9;
}

.cookie-category.open .cookie-category-content {
  max-height: 500px;
  padding: 20px 25px;
}

.cookie-category-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #555;
}

/* Toggle Switch */
.cookie-toggle {
  position: relative;
  width: 56px;
  height: 28px;
  flex-shrink: 0;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ddd;
  transition: 0.3s;
  border-radius: 28px;
}

.cookie-toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background-color: #be0e0e;
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
  transform: translateX(28px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
  background-color: #be0e0e;
  opacity: 0.7;
  cursor: not-allowed;
}

.cookie-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.cookie-toggle-label.always-on {
  color: #be0e0e;
  font-weight: 600;
}

/* Modal Footer */
.cookie-modal-footer {
  padding: 20px 25px;
  background: #f5f5f5;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.cookie-btn-save {
  background: linear-gradient(135deg, #a60c0c 0%, #be0e0e 100%);
  color: #fff;
}

.cookie-btn-save:hover {
  background: linear-gradient(135deg, #8e0a0a 0%, #a60c0c 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(166, 12, 12, 0.3);
}

.cookie-modal-footer .cookie-btn-reject {
  background: #f0f0f0;
  color: #666;
  border: 1px solid #ddd;
}

.cookie-modal-footer .cookie-btn-reject:hover {
  background: #e5e5e5;
  color: #444;
}

.cookie-modal-footer .cookie-btn-accept {
  background: #28a745;
  color: #fff;
}

.cookie-modal-footer .cookie-btn-accept:hover {
  background: #218838;
}

/* Floating Cookie Settings Button */
.cookie-settings-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a60c0c 0%, #be0e0e 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 15px rgba(166, 12, 12, 0.4);
  z-index: 9998;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.cookie-settings-btn.show {
  opacity: 1;
  visibility: visible;
}

.cookie-settings-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(166, 12, 12, 0.5);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .cookie-consent-banner {
    padding: 15px;
  }

  .cookie-banner-title {
    font-size: 16px;
  }

  .cookie-banner-text {
    font-size: 13px;
  }

  .cookie-banner-buttons {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
    padding: 14px 20px;
    text-align: center;
  }

  .cookie-modal {
    max-height: 90vh;
    margin: 10px;
  }

  .cookie-modal-header {
    padding: 15px 20px;
  }

  .cookie-modal-header h3 {
    font-size: 18px;
  }

  .cookie-category-header {
    padding: 15px 20px;
  }

  .cookie-category-content {
    padding: 0 20px;
  }

  .cookie-category.open .cookie-category-content {
    padding: 15px 20px;
  }

  .cookie-modal-footer {
    padding: 15px 20px;
    flex-direction: column;
  }

  .cookie-modal-footer .cookie-btn {
    width: 100%;
  }

  .cookie-settings-btn {
    width: 45px;
    height: 45px;
    font-size: 20px;
    bottom: 15px;
    left: 15px;
  }
}

@media (max-width: 480px) {
  .cookie-category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .cookie-toggle-label {
    align-self: flex-end;
  }
}
