/* Custom Klaro Consent Manager Styling */
/* Matches LiN Productions brand: slate + orange accent */

/* Hide Klaro branding */
.klaro .cookie-modal .cm-powered-by {
  display: none !important;
}

/* Notice (Banner) Styling - More Prominent */
.klaro .cookie-notice {
  background: linear-gradient(135deg, rgb(15 23 42) 0%, rgb(30 41 59) 100%) !important;
  border: 1px solid rgba(248, 113, 113, 0.1) !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.3), 0 8px 10px -6px rgb(0 0 0 / 0.3) !important;
  padding: 2rem !important;
  max-width: 500px !important;
  bottom: 24px !important;
  left: 24px !important;
  right: auto !important;
}

@media (max-width: 768px) {
  .klaro .cookie-notice {
    left: 16px !important;
    right: 16px !important;
    bottom: 16px !important;
    max-width: calc(100% - 32px) !important;
    padding: 1.5rem !important;
  }
}

.klaro .cookie-notice .cn-body {
  margin-bottom: 1.5rem !important;
}

.klaro .cookie-notice .cn-body h1,
.klaro .cookie-notice .cn-body h2,
.klaro .cookie-notice .cn-body p {
  color: rgb(226 232 240) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.klaro .cookie-notice .cn-body h1 {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.75rem !important;
  color: white !important;
}

.klaro .cookie-notice .cn-body p {
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  color: rgb(203 213 225) !important;
}

/* Button Styling */
.klaro .cookie-notice .cn-buttons,
.klaro .cookie-modal .cm-footer .cm-buttons {
  display: flex !important;
  gap: 0.75rem !important;
  flex-wrap: wrap !important;
}

.klaro .cn-buttons button,
.klaro .cm-buttons button {
  flex: 1 !important;
  min-width: fit-content !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  font-family: 'Inter', sans-serif !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  border: none !important;
}

/* Accept All Button - Orange (Primary) */
.klaro .cm-btn.cm-btn-accept-all,
.klaro .cn-buttons .cm-btn.cm-btn-accept-all {
  background: linear-gradient(135deg, rgb(249 115 22) 0%, rgb(234 88 12) 100%) !important;
  color: white !important;
  box-shadow: 0 4px 6px -1px rgb(249 115 22 / 0.3) !important;
}

.klaro .cm-btn.cm-btn-accept-all:hover,
.klaro .cn-buttons .cm-btn.cm-btn-accept-all:hover {
  background: linear-gradient(135deg, rgb(234 88 12) 0%, rgb(194 65 12) 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 12px -2px rgb(249 115 22 / 0.4) !important;
}

/* Customize/Learn More Button - Slate */
.klaro .cm-btn.cm-btn-customize,
.klaro .cn-buttons .cm-btn.cm-btn-learn-more {
  background: rgb(71 85 105) !important;
  color: white !important;
  border: 1px solid rgb(100 116 139) !important;
}

.klaro .cm-btn.cm-btn-customize:hover,
.klaro .cn-buttons .cm-btn.cm-btn-learn-more:hover {
  background: rgb(100 116 139) !important;
  transform: translateY(-1px) !important;
}

/* Decline Button */
.klaro .cm-btn.cm-btn-decline {
  background: transparent !important;
  color: rgb(203 213 225) !important;
  border: 1px solid rgb(71 85 105) !important;
}

.klaro .cm-btn.cm-btn-decline:hover {
  background: rgb(51 65 85) !important;
  border-color: rgb(100 116 139) !important;
}

/* Save Button */
.klaro .cm-btn.cm-btn-save {
  background: linear-gradient(135deg, rgb(249 115 22) 0%, rgb(234 88 12) 100%) !important;
  color: white !important;
}

.klaro .cm-btn.cm-btn-save:hover {
  background: linear-gradient(135deg, rgb(234 88 12) 0%, rgb(194 65 12) 100%) !important;
}

/* Remove extra container background (only modal box should be visible) */
.klaro .cm-modal,
.klaro .cm-modal .cm-modal-content,
.klaro .cm-modal .cm-content {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
}



.klaro .cookie-modal .cm-header {
  background: linear-gradient(135deg, rgb(30 41 59) 0%, rgb(51 65 85) 100%) !important;
  padding: 1.75rem !important;
  border-bottom: 1px solid rgb(71 85 105) !important;
  border-radius: 16px 16px 0 0 !important;
}

.klaro .cookie-modal .cm-header h1 {
  color: white !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  font-family: 'Inter', sans-serif !important;
  margin: 0 !important;
}

.klaro .cookie-modal .cm-header .cm-close {
  color: rgb(203 213 225) !important;
  width: 32px !important;
  height: 32px !important;
  line-height: 32px !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
}

.klaro .cookie-modal .cm-header .cm-close:hover {
  background: rgb(71 85 105) !important;
  color: white !important;
}

.klaro .cookie-modal .cm-body {
  background: rgb(15 23 42) !important;
  padding: 1.75rem !important;
  max-height: 60vh !important;
  overflow-y: auto !important;
}

.klaro .cookie-modal .cm-body p,
.klaro .cookie-modal .cm-body .cm-service-description {
  color: rgb(203 213 225) !important;
  font-family: 'Inter', sans-serif !important;
  line-height: 1.6 !important;
  font-size: 0.95rem !important;
}

/* Hide the duplicate "disable all" toggle at the top */
.klaro .cookie-modal .cm-services > .cm-service.cm-toggle-all {
  display: none !important;
}

/* Service Items */
.klaro .cookie-modal .cm-services .cm-service {
  background: rgb(30, 41, 59) !important;
  border: 1px solid rgb(51 65 85) !important;
  border-radius: 12px !important;
  padding: 1.25rem 1.25rem 1.25rem 3.5rem !important;
  margin: 1rem !important;
  position: relative !important;
}

.klaro .cookie-modal .cm-services .cm-service .cm-service-title {
  color: white !important;
  font-weight: 600 !important;
  font-size: 1.05rem !important;
  font-family: 'Inter', sans-serif !important;
}

.klaro .cookie-modal .cm-services .cm-service .cm-required {
  background: rgb(100 116 139) !important;
  color: white !important;
  padding: 0.25rem 0.75rem !important;
  border-radius: 6px !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

/* Toggle Switches */
.klaro .cookie-modal .cm-services .cm-service label.cm-switch-container {
  position: absolute !important;
  left: 1rem !important;
  top: 1.1rem !important;
  margin: 0 !important;
}

.klaro .cookie-modal .cm-services .cm-service .cm-switch {
  background: rgb(51, 65, 85) !important;
  border: 1px solid rgb(71 85 105) !important;
}

.klaro .cookie-modal .cm-services .cm-service.cm-toggle-all .cm-switch,
.klaro .cookie-modal .cm-services .cm-service input:checked + .cm-switch {
  background: linear-gradient(135deg, rgb(249 115 22) 0%, rgb(234 88 12) 100%) !important;
  border-color: rgb(249 115 22) !important;
}

.klaro .cookie-modal .cm-services .cm-service .cm-switch .cm-slider {
  background: white !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
  margin: 0.5rem !important;
}

/* Purpose Labels */
.klaro .cm-service .cm-purposes {
  margin-top: 0.5rem !important;
}

.klaro .cm-service .cm-purposes .cm-purpose {
  background: rgb(51 65 85) !important;
  color: rgb(203 213 225) !important;
  padding: 0.25rem 0.625rem !important;
  border-radius: 6px !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  margin-right: 0.5rem !important;
  display: inline-block !important;
}

/* Footer */
.klaro .cookie-modal .cm-footer {
  background: rgb(30, 41, 59) !important;
  border-top: 1px solid rgb(51 65 85) !important;
  padding: 1.5rem 1.75rem !important;
  border-radius: 0 0 16px 16px !important;
}

/* Links */
.klaro a {
  color: rgb(249 115 22) !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: color 0.2s ease !important;
}

.klaro a:hover {
  color: rgb(234 88 12) !important;
  text-decoration: underline !important;
}

/* Modal Backdrop - Transparent/minimal (modal itself has the dark background) */
.klaro .cookie-modal-mask {
  background: rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: none !important;
}

/* Scrollbar for Modal Body */
.klaro .cookie-modal .cm-body::-webkit-scrollbar {
  width: 8px !important;
}

.klaro .cookie-modal .cm-body::-webkit-scrollbar-track {
  background: rgb(30 41 59) !important;
  border-radius: 4px !important;
}

.klaro .cookie-modal .cm-body::-webkit-scrollbar-thumb {
  background: rgb(100 116 139) !important;
  border-radius: 4px !important;
}

.klaro .cookie-modal .cm-body::-webkit-scrollbar-thumb:hover {
  background: rgb(148 163 184) !important;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
  .klaro .cm-modal {
    padding: 0 !important;
    margin: 0 !important;
  }

  .klaro .cookie-modal {
    margin: 0.75rem auto !important;
    width: calc(100% - 1.5rem) !important;
    max-width: calc(100% - 1.5rem) !important;
    border-radius: 14px !important;
  }
  
  .klaro .cookie-modal .cm-header,
  .klaro .cookie-modal .cm-body,
  .klaro .cookie-modal .cm-footer {
    padding: 1rem !important;
  }
  
  .klaro .cn-buttons button,
  .klaro .cm-buttons button {
    flex: 1 1 100% !important;
    padding: 0.875rem 1.25rem !important;
  }
}

/* Accessibility improvements */
.klaro button:focus,
.klaro a:focus {
  outline: 2px solid rgb(249 115 22) !important;
  outline-offset: 2px !important;
}

/* Smooth animations */
.klaro .cookie-notice,
.klaro .cookie-modal {
  animation: slideUp 0.3s ease-out !important;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
