/* Cookie Consent Banner Styles */
:root {
  --cc-primary: #e06801;
  --cc-primary-hover: #c45b01;
  --cc-text: #242424;
  --cc-bg: #ffffff;
  --cc-border: #eaeaea;
  --cc-overlay: rgba(0, 0, 0, 0.5);
  --cc-radius: 12px;
  --cc-font: 'Lato', sans-serif;
}

#cookie-consent-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  width: auto;
  background-color: var(--cc-bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  z-index: 9999;
  transform: translateY(150%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease-in-out;
  font-family: var(--cc-font);
  padding: 20px;
  display: none;
  /* Changed via JS when needed */
}

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

.cc-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
}

@media (min-width: 992px) {
  #cookie-consent-banner {
    padding: 24px;
    bottom: 24px;
    left: 24px;
    right: auto;
    width: 400px;
  }
}

.cc-content {
  flex: 1;
}

.cc-content h4 {
  margin: 0 0 10px 0;
  color: var(--cc-primary);
  font-size: 1.25rem;
  font-weight: 700;
}

.cc-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--cc-text);
  line-height: 1.5;
}

.cc-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

@media (max-width: 767px) {
  .cc-buttons {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
  }

  .cc-buttons .custom-btn {
    flex: 1;
    width: 100% !important;
    padding-left: 0;
    padding-right: 0;
  }
}

.cc-btn {
  padding: 10px 24px;
  border-radius: 5px;
  font-family: var(--cc-font);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  border: none;
  outline: none;
  text-decoration: none;
  line-height: 1.5;
  flex: 1;
  white-space: nowrap;
}

.cc-btn-primary {
  background: linear-gradient(0deg, rgba(255, 151, 0, 1) 0%, rgba(251, 75, 2, 1) 100%);
  color: white;
  box-shadow: inset 2px 2px 2px 0px rgba(255, 255, 255, .5),
    7px 7px 20px 0px rgba(0, 0, 0, .1),
    4px 4px 5px 0px rgba(0, 0, 0, .1);
}

.cc-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: inset 2px 2px 2px 0px rgba(255, 255, 255, .5),
    7px 7px 20px 0px rgba(0, 0, 0, .2),
    4px 4px 5px 0px rgba(0, 0, 0, .2);
  color: white;
}

.cc-btn-secondary {
  background: transparent;
  color: var(--cc-text);
  border: 1px solid #ccc;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.05);
}

.cc-btn-secondary:hover {
  background: #f8f9fa;
  border-color: #bbb;
  transform: translateY(-2px);
}

.cc-btn-outline {
  background: transparent;
  color: var(--cc-primary);
  border: 1px solid var(--cc-primary);
}

.cc-btn-outline:hover {
  background: rgba(224, 104, 1, 0.05);
  transform: translateY(-2px);
}

/* Cookie Settings Modal */
#cookie-settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--cc-overlay);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(3px);
}

#cookie-settings-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.cc-modal-dialog {
  background: var(--cc-bg);
  width: 90%;
  max-width: 600px;
  border-radius: var(--cc-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: scale(0.95);
  transition: transform 0.3s ease;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

#cookie-settings-modal.show .cc-modal-dialog {
  transform: scale(1);
}

.cc-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--cc-border);
}

.cc-modal-header h4 {
  margin: 0;
  color: var(--cc-primary);
  font-weight: 700;
}

.cc-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #888;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.cc-modal-close:hover {
  color: var(--cc-text);
}

.cc-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
}

.cc-modal-body>p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 20px;
}

.cc-category {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--cc-border);
}

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

.cc-category-info {
  flex: 1;
  padding-right: 20px;
}

.cc-category-title {
  font-weight: 600;
  margin: 0 0 5px 0;
  font-size: 1rem;
  color: var(--cc-text);
}

.cc-category-desc {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

/* Toggle Switch Styles */
.cc-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

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

.cc-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

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

input:checked+.cc-slider {
  background: linear-gradient(0deg, rgba(255, 151, 0, 1) 0%, rgba(251, 75, 2, 1) 100%);
}

input:focus+.cc-slider {
  box-shadow: 0 0 1px var(--cc-primary);
}

input:checked+.cc-slider:before {
  transform: translateX(26px);
}

input:disabled+.cc-slider {
  background-color: var(--cc-primary);
  opacity: 0.6;
  cursor: not-allowed;
}

.cc-modal-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--cc-border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

@media (max-width: 576px) {
  .cc-modal-footer {
    flex-direction: column;
  }
}