/*! cookie-consent.css — Diwira Travel cookie consent v1 (mobile-first). All selectors are prefixed dc- */

/* ---------- shared ---------- */
#dc-banner, #dc-modal, #dc-fab { box-sizing: border-box; font-family: Inter, 'Segoe UI', Arial, sans-serif; line-height: 1.5; }
#dc-banner *, #dc-modal *, #dc-fab * { box-sizing: border-box; }
#dc-banner a, #dc-modal a { color: #a8c5a0; text-decoration: underline; }
#dc-modal a { color: #1e3d2f; }

.dc-btn {
  appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer;
  font: 600 14px/1.2 Inter, 'Segoe UI', Arial, sans-serif; letter-spacing: 0;
  padding: 11px 16px; border-radius: 10px; border: 2px solid transparent;
  min-height: 44px; flex: 1 1 0; white-space: nowrap; text-transform: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.dc-btn:focus-visible, .dc-close:focus-visible, #dc-fab:focus-visible { outline: 3px solid #f2c94c; outline-offset: 2px; }
/* Accept and Reject have the same size and weight (no dark pattern) */
.dc-btn-primary { background: #ffffff; color: #1e3d2f; border-color: #ffffff; }
.dc-btn-primary:hover { background: #e8f0e5; border-color: #e8f0e5; }
.dc-btn-outline { background: transparent; color: #ffffff; border-color: #ffffff; }
.dc-btn-outline:hover { background: rgba(255,255,255,.12); }
.dc-btn-ghost { background: transparent; color: #ffffff; border-color: rgba(255,255,255,.35); }
.dc-btn-ghost:hover { border-color: #ffffff; }

/* ---------- banner (below the chat button: z 9998 < 9999) ---------- */
#dc-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998;
  background: #1e3d2f; color: #ffffff;
  box-shadow: 0 -6px 24px rgba(0,0,0,.25);
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  animation: dc-up .25s ease-out;
}
.dc-banner-inner { max-width: 1040px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.dc-banner-text strong { display: block; font-size: 15px; margin-bottom: 2px; }
.dc-banner-text p { margin: 0; font-size: 13px; color: rgba(255,255,255,.88); }
.dc-banner-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@keyframes dc-up { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* keep the Diwira chat button above the banner while it is visible */
body.dc-banner-open #diwira-chat-btn { bottom: calc(var(--dc-banner-h, 0px) + 16px) !important; }

/* ---------- settings modal (intentionally above everything) ---------- */
#dc-modal {
  position: fixed; inset: 0; z-index: 2147483000;
  background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center;
}
.dc-modal-box {
  background: #ffffff; color: #1f2937; width: 100%; max-height: 92vh; overflow-y: auto;
  border-radius: 16px 16px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.3);
  animation: dc-up .25s ease-out;
}
.dc-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 10px; border-bottom: 1px solid #e5e7eb; }
.dc-modal-head h2 { margin: 0; font-size: 18px; font-weight: 700; color: #1e3d2f; }
.dc-close { appearance: none; background: none; border: 0; font-size: 28px; line-height: 1; color: #6b7280; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.dc-close:hover { color: #111827; background: #f3f4f6; }
.dc-modal-body { padding: 4px 20px 8px; }
.dc-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid #f0f0f0; }
.dc-row strong { font-size: 14px; color: #111827; }
.dc-row label { cursor: pointer; }
.dc-row p { margin: 4px 0 0; font-size: 13px; color: #6b7280; }
.dc-row-muted strong { color: #6b7280; }
.dc-links { font-size: 13px; margin: 12px 0 4px; color: #6b7280; }
.dc-modal-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 20px calc(18px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #e5e7eb; }
.dc-modal-actions .dc-btn-primary { background: #1e3d2f; color: #ffffff; border-color: #1e3d2f; }
.dc-modal-actions .dc-btn-primary:hover { background: #2a5340; border-color: #2a5340; }
.dc-modal-actions .dc-btn-outline { color: #1e3d2f; border-color: #1e3d2f; }
.dc-modal-actions .dc-btn-outline:hover { background: #f0f5ee; }
.dc-modal-actions .dc-btn-ghost { color: #1e3d2f; border-color: #cbd5c7; }
.dc-modal-actions .dc-btn-ghost:hover { border-color: #1e3d2f; }
body.dc-modal-open { overflow: hidden; }

/* toggle switch */
.dc-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: 0 0 auto; margin-top: 2px; }
.dc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.dc-slider { position: absolute; inset: 0; background: #d1d5db; border-radius: 26px; transition: background .2s ease; }
.dc-slider:before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #ffffff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s ease; }
.dc-switch input:checked + .dc-slider { background: #1e3d2f; }
.dc-switch input:checked + .dc-slider:before { transform: translateX(20px); }
.dc-switch input:focus-visible + .dc-slider { outline: 3px solid #f2c94c; outline-offset: 2px; }
.dc-locked input { cursor: not-allowed; }
.dc-locked .dc-slider { opacity: .6; }

/* ---------- BATCH 46C: no floating "Cookie Settings" button (Viator-style clean screen) ---------- */
#dc-fab { display: none !important; }                                  /* safety net for any cached old script */
/* small text line for pages that have no footer link of their own */
#dc-footer-link {
  box-sizing: border-box; width: 100%; margin: 0; text-align: center;
  padding: 16px 16px calc(16px + var(--dw-chat-lift, 0px));
  font: 400 12px/1.5 Inter, 'Segoe UI', Arial, sans-serif; color: #9ca3af; background: transparent;
}
#dc-footer-link a { color: #6b7280; text-decoration: underline; }
#dc-footer-link a:hover { color: #1e3d2f; }
@media print { #dc-banner, #dc-modal, #dc-fab, #dc-footer-link { display: none !important; } }

/* ---------- tablet / desktop ---------- */
@media (min-width: 768px) {
  #dc-banner { padding: 18px 24px; }
  .dc-banner-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
  .dc-banner-actions { flex-wrap: nowrap; flex: 0 0 auto; }
  .dc-btn { flex: 0 0 auto; min-width: 120px; }
  #dc-modal { align-items: center; padding: 24px; }
  .dc-modal-box { max-width: 560px; border-radius: 16px; }
  .dc-modal-actions { justify-content: flex-end; }
  #dc-fab { width: auto; padding: 0 14px; right: 28px; }
  #dc-fab .dc-fab-text { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  #dc-banner, .dc-modal-box { animation: none; }
}

/* ---------- placeholders for blocked embeds (Google Maps iframe, Elfsight reviews) ---------- */
.dc-ph {
  box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  min-height: 140px; padding: 16px; text-align: center; background: #f3f4f6; color: #4b5563;
  border: 1px dashed #cbd5c7; border-radius: 10px; font-family: Inter, 'Segoe UI', Arial, sans-serif;
}
.dc-ph p { margin: 0; font-size: 13px; line-height: 1.5; max-width: 320px; }
.dc-ph-btn {
  appearance: none; -webkit-appearance: none; cursor: pointer; margin: 0; min-height: 40px; padding: 9px 18px;
  font: 600 13px/1.2 Inter, 'Segoe UI', Arial, sans-serif; color: #ffffff; background: #1e3d2f;
  border: 2px solid #1e3d2f; border-radius: 10px; transition: background .15s ease;
}
.dc-ph-btn:hover { background: #2a5340; border-color: #2a5340; }
.dc-ph-btn:focus-visible { outline: 3px solid #f2c94c; outline-offset: 2px; }
.dm-map .dc-ph { position: absolute; inset: 0; min-height: 0; border: 0; border-radius: 0; }   /* 16:9 map boxes */
html.dc-functional [data-dc-ph] { display: none; }
html:not(.dc-functional) iframe[data-consent] { display: none; }
