/* --- Silktide Cookie UI (clean) --- */
#silktide-wrapper{
  --primaryColor: var(--brand-gold, #d4c04a);
  --backgroundColor: var(--brand-red, #b71c1c);
  --textColor: #fff; /* white text requested */
  --cookieIconColor: var(--brand-gold, #d4c04a);
  --cookieIconBackgroundColor: var(--brand-red, #b71c1c);
  z-index: 99990;
}

/* Banner & modal containers */
#silktide-banner,
#silktide-modal{
  background: var(--backgroundColor) !important;
  color: var(--textColor) !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.25) !important;
  border: 1px solid rgba(212,192,74,.25) !important;
  max-width: 680px;
  padding: 24px 28px !important;
  margin: 16px !important;
  line-height: 1.5 !important;
}

/* Banner specific spacing */
#silktide-banner {
  padding: 20px 24px 24px 24px !important;
}

/* Modal specific spacing */
#silktide-modal {
  padding: 28px 32px !important;
}

/* Content spacing inside banner and modal */
#silktide-banner p, #silktide-modal p {
  margin: 12px 0 16px 0 !important;
}

#silktide-banner h1, #silktide-modal h1 {
  margin: 0 0 16px 0 !important;
  padding: 0 !important;
}

/* Button container spacing */
#silktide-banner .st-buttons,
#silktide-modal .st-buttons {
  margin-top: 20px !important;
  display: flex !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

/* Mobile responsive adjustments for cookie banner and modal */
@media (max-width: 768px) {
  #silktide-banner {
    margin: 8px !important;
    max-width: calc(100vw - 32px) !important;
    left: 8px !important;
    right: 8px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
  }
  
  #silktide-modal {
    margin: 8px !important;
    max-width: calc(100vw - 16px) !important;
    max-height: calc(100vh - 16px) !important;
    border-radius: 12px !important;
  }
  
  #silktide-banner h1, #silktide-modal h1 {
    font-size: 18px !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
  }
  
  #silktide-wrapper p {
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin: 6px 0 !important;
  }
  
  #silktide-wrapper .st-button {
    font-size: 14px !important;
    padding: 10px 16px !important;
    margin: 4px !important;
  }
}

@media (max-width: 480px) {
  #silktide-banner {
    margin: 4px !important;
    max-width: calc(100vw - 16px) !important;
    left: 4px !important;
    right: 4px !important;
    padding: 12px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
  }
  
  #silktide-modal {
    margin: 4px !important;
    max-width: calc(100vw - 8px) !important;
    max-height: calc(100vh - 8px) !important;
    padding: 12px !important;
    border-radius: 8px !important;
  }
  
  #silktide-banner h1, #silktide-modal h1 {
    font-size: 16px !important;
    line-height: 1.2 !important;
    margin-bottom: 6px !important;
  }
  
  #silktide-wrapper p {
    font-size: 13px !important;
    line-height: 1.3 !important;
    margin: 4px 0 !important;
  }
  
  #silktide-wrapper .st-button {
    font-size: 13px !important;
    padding: 8px 12px !important;
    margin: 2px !important;
  }
}
#silktide-banner h1, #silktide-modal h1,
#silktide-wrapper p, #silktide-wrapper li{
  color:#fff !important;
}
#silktide-wrapper a{
  color:#fff !important;
  text-decoration: underline;
}
#silktide-wrapper a:hover{ color: var(--brand-gold,#d4c04a) !important; }

/* Buttons */
#silktide-wrapper .st-button{
  border-radius: 24px !important;
  font-weight:600 !important;
}
#silktide-wrapper .st-button--primary{
  background: var(--brand-gold,#d4c04a) !important;
  color: var(--brand-red,#b71c1c) !important;
  border-color: var(--brand-gold,#d4c04a) !important;
}
#silktide-wrapper .st-button--secondary{
  background: transparent !important;
  border: 1px solid #fff !important;
  color:#fff !important;
}

/* Respect configured positions; do NOT globally force fixed/coords */
#silktide-cookie-icon.topRight{ top:10px; right:10px; }
@media (max-width: 768px){
  #silktide-cookie-icon.topRight{
    top: 86px; /* below sticky header */
    right: 8px;
    width: 32px; height: 32px;
  }
}

/* Space above mobile sticky booking if banner is bottomRight */
@media (max-width:768px){
  #silktide-banner.bottomRight{ bottom: 88px; }
}

/* Accessibility & focus */
#silktide-wrapper :focus-visible{
  outline:2px solid var(--brand-gold,#d4c04a);
  outline-offset:2px;
}

/* Privacy Popup Styles */
.privacy-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  backdrop-filter: blur(2px);
}

.privacy-popup-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.privacy-popup-container {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 500px;
  height: 90%;
  max-height: 700px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.4s ease;
  position: relative;
}

@keyframes slideUp {
  from {
    transform: translateY(50px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Privacy Popup Header */
.privacy-popup-header {
  background: linear-gradient(135deg, #b71c1c 0%, #8b0000 100%);
  color: #fff;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 15px 15px 0 0;
  flex-shrink: 0;
}

.privacy-popup-header h3 {
  margin: 0;
  font-size: 20px;
  color: #d4c04a;
  font-weight: bold;
}

.privacy-popup-close {
  background: none;
  border: none;
  color: #d4c04a;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.privacy-popup-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

/* Privacy Popup Content */
.privacy-popup-content {
  flex: 1;
  overflow-y: auto;
  padding: 25px 30px;
  line-height: 1.6;
  color: #2d2d2d;
}

.privacy-popup-content::-webkit-scrollbar {
  width: 8px;
}

.privacy-popup-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.privacy-popup-content::-webkit-scrollbar-thumb {
  background: #b71c1c;
  border-radius: 4px;
}

.privacy-popup-content::-webkit-scrollbar-thumb:hover {
  background: #8b0000;
}

.privacy-popup-content h3 {
  color: #b71c1c;
  font-size: 18px;
  margin-top: 25px;
  margin-bottom: 12px;
  border-bottom: 2px solid #d4c04a;
  padding-bottom: 5px;
  font-weight: bold;
}

.privacy-popup-content h3:first-child {
  margin-top: 0;
}

.privacy-popup-content ul {
  margin: 15px 0;
  padding-left: 20px;
}

.privacy-popup-content li {
  margin: 8px 0;
}

.privacy-popup-content strong {
  color: #b71c1c;
  font-weight: 600;
}

.privacy-popup-content p {
  margin: 12px 0;
}

.privacy-update {
  text-align: center;
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid #eee;
  color: #666;
  font-style: italic;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .privacy-popup-container {
    width: 95%;
    height: 95%;
    max-width: none;
    max-height: none;
  }
  
  .privacy-popup-header {
    padding: 15px 20px;
  }
  
  .privacy-popup-header h3 {
    font-size: 18px;
  }
  
  .privacy-popup-close {
    width: 30px;
    height: 30px;
    font-size: 20px;
  }
  
  .privacy-popup-content {
    padding: 20px;
  }
  
  .privacy-popup-content h3 {
    font-size: 16px;
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .privacy-popup-container {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
  
  .privacy-popup-header {
    border-radius: 0;
    padding: 15px;
  }
  
  .privacy-popup-content {
    padding: 15px;
  }
}
