.sv-consent, .sv-support, .sv-privacy-settings, .sv-support-fallback, .sv-support-menu {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-sizing: border-box;
}

/* ========================================================
   Consent Preferences Banner
   ======================================================== */
.sv-consent {
  position: fixed;
  z-index: 2147483000;
  bottom: 16px;
  right: 16px;
  width: min(440px, calc(100vw - 32px));
  background: #fdfcf9;
  color: #242621;
  border: 1px solid #aa823c;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
  padding: 18px;
  text-align: left;
  font-size: 13.5px;
  line-height: 1.5;
}
.sv-consent[hidden], .sv-support-fallback[hidden], .sv-support-menu[hidden] {
  display: none !important;
}
.sv-consent p {
  margin: 0 0 12px;
}
.sv-consent div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.sv-consent button {
  background: #242621;
  color: #ffffff;
  border: 1px solid #aa823c;
  border-radius: 20px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 500;
  transition: opacity 0.15s ease;
}
.sv-consent button:hover {
  opacity: 0.9;
}
.sv-consent button[data-choice=denied] {
  background: transparent;
  color: #242621;
}
.sv-consent a {
  color: #79591f;
  text-decoration: underline;
  font-size: 12px;
  margin-left: auto;
}

/* ========================================================
   Floating Support Pill Button with Bounce Animation
   ======================================================== */
@keyframes sv-bounce-click {
  0%   { transform: scale(1); }
  25%  { transform: scale(0.90) translateY(2px); }
  55%  { transform: scale(1.10) translateY(-6px); }
  75%  { transform: scale(0.96) translateY(2px); }
  100% { transform: scale(1) translateY(0); }
}

.sv-support {
  position: fixed;
  z-index: 9990;
  bottom: calc(20px + env(safe-area-inset-bottom));
  left: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1a1c19;
  color: #ffffff;
  border: 1px solid #aa823c;
  border-radius: 24px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.sv-support:hover {
  background: #242621;
  border-color: #d9b676;
}
.sv-support.sv-bounce {
  animation: sv-bounce-click 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sv-support .sv-support-icon {
  font-size: 16px;
  color: #d9b676;
  line-height: 1;
}

/* ========================================================
   Slick 3-Choice Popover Menu (Chat, WhatsApp, Email)
   ======================================================== */
@keyframes sv-menu-pop {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.92);
  }
  65% {
    opacity: 1;
    transform: translateY(-4px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.sv-support-menu {
  position: fixed;
  left: 20px;
  bottom: calc(76px + env(safe-area-inset-bottom));
  z-index: 10001;
  width: 290px;
  background: #181a17;
  color: #fdfcf9;
  border: 1px solid rgba(170, 130, 60, 0.4);
  border-radius: 18px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(217, 182, 118, 0.15);
  padding: 14px;
  box-sizing: border-box;
  animation: sv-menu-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transform-origin: bottom left;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sv-support-menu-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sv-support-menu-intro {
  display: flex;
  flex-direction: column;
}
.sv-support-menu-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #d9b676;
  font-weight: 700;
  margin-bottom: 2px;
}
.sv-support-menu-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #fdfcf9;
  letter-spacing: -0.01em;
}
.sv-support-menu-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  border-radius: 6px;
  transition: color 0.15s ease;
}
.sv-support-menu-close:hover {
  color: #ffffff;
}

.sv-support-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sv-support-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  min-height: 52px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #fdfcf9;
  text-decoration: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.sv-support-opt:hover,
.sv-support-opt:focus-visible {
  background: rgba(170, 130, 60, 0.16);
  border-color: rgba(170, 130, 60, 0.45);
  transform: translateX(3px);
  outline: none;
}

.sv-support-opt:active {
  transform: scale(0.98);
}

.sv-support-opt-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.sv-icon-chat {
  background: rgba(217, 182, 118, 0.16);
  color: #d9b676;
}
.sv-icon-whatsapp {
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
}
.sv-icon-email {
  background: rgba(255, 255, 255, 0.08);
  color: #e5e5e5;
}

.sv-support-opt-body {
  flex: 1;
  min-width: 0;
}
.sv-support-opt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.sv-support-opt-row strong {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
}
.sv-support-opt-body small {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sv-status-pill.online {
  font-size: 10px;
  font-weight: 600;
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
  padding: 2px 7px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sv-status-pill.online::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 6px rgba(37, 211, 102, 0.8);
}

.sv-opt-arrow {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* ========================================================
   Fallback Banner
   ======================================================== */
.sv-support-fallback {
  position: fixed;
  left: 20px;
  bottom: calc(72px + env(safe-area-inset-bottom));
  z-index: 9991;
  max-width: 320px;
  border: 1px solid #aa823c;
  border-radius: 12px;
  background: #fdfcf9;
  color: #242621;
  padding: 10px 14px;
  font-size: 12.5px;
  line-height: 1.5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sv-support-fallback a {
  color: #79591f;
  font-weight: 600;
  text-decoration: underline;
}
.sv-fallback-close {
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #666;
  padding: 0 4px;
  line-height: 1;
}

/* ========================================================
   Floating Privacy Settings (Desktop Only)
   ======================================================== */
.sv-privacy-settings {
  position: fixed;
  right: 18px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 9980;
  border: 1px solid rgba(170, 130, 60, 0.4);
  border-radius: 14px;
  background: rgba(253, 252, 249, 0.92);
  backdrop-filter: blur(4px);
  color: #4a4d46;
  font-size: 11px;
  padding: 6px 10px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.sv-privacy-settings:hover {
  color: #242621;
  border-color: #aa823c;
}

/* Footer trigger button for Privacy Settings */
.sv-footer-privacy {
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  display: inline;
}
.sv-footer-privacy:hover {
  text-decoration: underline;
}

/* ========================================================
   SUPPRESS Tawk Default Floating Round Launcher
   ======================================================== */
#tawk-bubble-container,
.tawk-bubble-container,
.tawk-min-container,
div[id^="tawk-bubble"],
iframe[id^="tawk-bubble"],
.tawk-button,
div[class*="tawk-min"],
div[class*="tawk-bubble"],
div[class*="tawk-button"],
div[id*="tawk-chat-widget"],
iframe[title*="chat widget"][style*="bottom:"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Focus styles */
.sv-consent button:focus-visible,
.sv-support:focus-visible,
.sv-privacy-settings:focus-visible,
.sv-support-opt:focus-visible {
  outline: 2px solid #aa823c;
  outline-offset: 2px;
}

/* Backdrop scrim for mobile bottom sheet */
.sv-support-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  transition: opacity 0.25s ease;
}
.sv-support-backdrop[hidden] {
  display: none !important;
}

/* ========================================================
   Responsive Discipline (< 768px): Dashboard UI System standard
   ======================================================== */
@media (max-width: 768px) {
  /* HIDE floating privacy settings on mobile to prevent blocking content */
  .sv-privacy-settings {
    display: none !important;
  }

  /* Compact 44px circular floating action button on bottom-right (thumb reach) */
  .sv-support {
    left: auto !important;
    right: 18px !important;
    bottom: calc(18px + env(safe-area-inset-bottom)) !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: grid !important;
    place-items: center !important;
    background: #171815 !important;
    border: 1px solid rgba(217, 182, 118, 0.45) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(217, 182, 118, 0.2) !important;
    z-index: 9990 !important;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease, visibility 0.2s ease !important;
  }
  .sv-support .sv-support-text {
    display: none !important;
  }
  .sv-support .sv-support-icon {
    font-size: 19px !important;
    color: #d9b676 !important;
    line-height: 1 !important;
    margin: 0 !important;
  }
  .sv-support.sv-hide-for-nav,
  body.menu-open .sv-support,
  body.nav-open .sv-support {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    transform: scale(0.7) translateY(12px) !important;
  }

  /* Native Mobile Bottom Sheet Drawer */
  .sv-support-menu {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 20px 20px 0 0 !important;
    border: 1px solid rgba(217, 182, 118, 0.25) !important;
    border-bottom: none !important;
    background: #161815 !important;
    padding: 12px 18px calc(20px + env(safe-area-inset-bottom)) !important;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.6) !important;
    z-index: 10001 !important;
    animation: sv-sheet-slide-up 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    transform-origin: bottom center !important;
  }
  .sv-support-menu:before {
    content: '';
    display: block;
    width: 38px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.22);
    margin: 0 auto 12px;
  }
  .sv-support-menu-header {
    margin-bottom: 10px !important;
    padding-bottom: 8px !important;
  }
  .sv-support-menu-title {
    font-size: 15px !important;
  }
  .sv-support-opt {
    min-height: 50px !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
  }
  .sv-support-opt-icon {
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
  }
  .sv-support-opt-row strong {
    font-size: 13px !important;
  }
  .sv-support-opt-body small {
    font-size: 11px !important;
  }
  .sv-consent {
    bottom: calc(14px + env(safe-area-inset-bottom));
    right: 14px;
    left: 14px;
    width: auto;
    padding: 14px;
    font-size: 12.5px;
  }
  .sv-support-fallback {
    left: 14px;
    right: 14px;
    max-width: calc(100vw - 28px);
    bottom: calc(72px + env(safe-area-inset-bottom));
  }
}

@keyframes sv-sheet-slide-up {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
