/* Cookie Banner Warm Cream Theme - Scoped to Silktide wrapper */
/* Accessible design with warm cream background and high contrast text */

/* Container Panel - Warm cream background */
#silktide-wrapper #silktide-banner {
  background: #fff7ee !important;
  color: #2b1a11 !important;
  border: 1px solid #e7d3a0 !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.12) !important;
  max-width: 640px !important;
  margin: 0 auto !important;
  padding: 18px 24px !important;
  /* Override existing positioning */
  bottom: 24px !important;
  right: 24px !important;
  left: 24px !important;
  width: auto !important;
}

/* Center the banner */
@media (min-width: 680px) {
  #silktide-wrapper #silktide-banner {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
  }
}

/* Text content styling */
#silktide-wrapper #silktide-banner p {
  color: #2b1a11 !important;
  margin: 0 0 16px 0 !important;
}

/* Actions container */
#silktide-wrapper #silktide-banner .actions {
  display: flex !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  margin-top: 16px !important;
}

/* Primary button (Accept All) - Warm gold color */
#silktide-wrapper #silktide-banner .accept-all.st-button {
  background: #e4b72e !important;
  color: #2b1a11 !important;
  border: 1px solid #cf9f10 !important;
  border-radius: 14px !important;
  padding: 12px 16px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  transition: all 0.2s ease !important;
}

#silktide-wrapper #silktide-banner .accept-all.st-button:hover {
  background: #cf9f10 !important;
  color: #2b1a11 !important;
}

#silktide-wrapper #silktide-banner .accept-all.st-button:active {
  transform: translateY(1px) !important;
}

/* Secondary button (Reject) - Transparent with dark border */
#silktide-wrapper #silktide-banner .reject-all.st-button {
  background: transparent !important;
  color: #2b1a11 !important;
  border: 1.5px solid #2b1a11 !important;
  border-radius: 14px !important;
  padding: 12px 16px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
}

#silktide-wrapper #silktide-banner .reject-all.st-button:hover {
  background: rgba(43, 26, 17, 0.03) !important;
  color: #2b1a11 !important;
  text-decoration: none !important;
}

/* Preferences link - Brown brand accent */
#silktide-wrapper #silktide-banner .preferences {
  background: transparent !important;
  color: #5c3b05 !important;
  border: none !important;
  padding: 12px 0 !important;
  font-size: 14px !important;
  text-decoration: underline !important;
}

#silktide-wrapper #silktide-banner .preferences span {
  color: #5c3b05 !important;
  text-decoration: underline !important;
}

#silktide-wrapper #silktide-banner .preferences:hover span {
  color: #4a2e04 !important;
}

/* Silktide logo styling */
#silktide-wrapper #silktide-banner .silktide-logo {
  fill: #9CA3AF !important;
  opacity: 0.7 !important;
}

/* Focus states - Dark brown outline for accessibility */
#silktide-wrapper #silktide-banner .accept-all.st-button:focus-visible,
#silktide-wrapper #silktide-banner .reject-all.st-button:focus-visible,
#silktide-wrapper #silktide-banner .preferences:focus-visible {
  outline: 3px solid #2b1a11 !important;
  outline-offset: 3px !important;
  border-radius: 14px !important;
}

/* Modal styling to match */
#silktide-wrapper #silktide-modal {
  background: #fff7ee !important;
  color: #2b1a11 !important;
  border: 1px solid #e7d3a0 !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.12) !important;
  max-width: 640px !important;
}

/* Modal header styling */
#silktide-wrapper #silktide-modal header {
  background: #fff7ee !important;
  color: #2b1a11 !important;
  border-bottom: 1px solid #e7d3a0 !important;
  border-radius: 16px 16px 0 0 !important;
  padding: 20px 24px !important;
}

#silktide-wrapper #silktide-modal h1 {
  color: #2b1a11 !important;
  margin: 0 !important;
  font-size: 18px !important;
  font-weight: 600 !important;
}

/* Modal footer styling */
#silktide-wrapper #silktide-modal footer {
  background: #fff7ee !important;
  border-top: 1px solid #e7d3a0 !important;
  border-radius: 0 0 16px 16px !important;
  padding: 20px 24px !important;
  display: flex !important;
  gap: 12px !important;
  align-items: center !important;
  flex-wrap: wrap !important;
}

#silktide-wrapper #silktide-modal footer a {
  color: #5c3b05 !important;
  text-decoration: underline !important;
  font-size: 14px !important;
  margin-left: auto !important;
}

#silktide-wrapper #silktide-modal footer a:hover {
  color: #4a2e04 !important;
}

#silktide-wrapper #silktide-modal p {
  color: #2b1a11 !important;
}

#silktide-wrapper #silktide-modal legend {
  color: #2b1a11 !important;
}

#silktide-wrapper #silktide-modal .modal-close {
  background: transparent !important;
  color: #5c3b05 !important;
  border: none !important;
  padding: 8px !important;
  border-radius: 8px !important;
}

#silktide-wrapper #silktide-modal .modal-close:hover {
  background: rgba(92, 59, 5, 0.1) !important;
}

#silktide-wrapper #silktide-modal .modal-close svg {
  fill: #5c3b05 !important;
}

/* Modal buttons */
#silktide-wrapper #silktide-modal .preferences-accept-all.st-button {
  background: #e4b72e !important;
  color: #2b1a11 !important;
  border: 1px solid #cf9f10 !important;
  border-radius: 14px !important;
  padding: 12px 16px !important;
  font-weight: 700 !important;
}

#silktide-wrapper #silktide-modal .preferences-accept-all.st-button:hover {
  background: #cf9f10 !important;
}

#silktide-wrapper #silktide-modal .preferences-reject-all.st-button {
  background: transparent !important;
  color: #2b1a11 !important;
  border: 1.5px solid #2b1a11 !important;
  border-radius: 14px !important;
  padding: 12px 16px !important;
  font-weight: 600 !important;
}

#silktide-wrapper #silktide-modal .preferences-reject-all.st-button:hover {
  background: rgba(43, 26, 17, 0.03) !important;
}

/* Cookie icon styling */
#silktide-wrapper #silktide-cookie-icon {
  background-color: #e4b72e !important;
  border: 1px solid #e7d3a0 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.15) !important;
}

#silktide-wrapper #silktide-cookie-icon svg {
  fill: #2b1a11 !important;
}

#silktide-wrapper #silktide-cookie-icon:focus-visible {
  outline: 3px solid #2b1a11 !important;
  outline-offset: 3px !important;
}

/* Mobile responsive - full-width "sheet" style */
@media (max-width: 520px) {
  #silktide-wrapper #silktide-banner {
    width: calc(100% - 16px) !important;
    left: 8px !important;
    right: 8px !important;
    bottom: 0 !important;
    border-radius: 18px 18px 0 0 !important;
    transform: none !important;
    max-width: none !important;
  }
  
  #silktide-wrapper #silktide-banner .actions {
    flex-direction: column !important;
    gap: 8px !important;
  }
  
  #silktide-wrapper #silktide-banner .actions-row {
    flex-direction: column !important;
    gap: 8px !important;
    align-items: stretch !important;
  }
  
  #silktide-wrapper #silktide-modal {
    width: calc(100% - 16px) !important;
    max-width: none !important;
    margin: 8px !important;
  }
}

/* Ensure backdrop has proper styling */
#silktide-wrapper #silktide-backdrop {
  background-color: rgba(0, 0, 0, 0.4) !important;
}
