/* Tamarind Holiday mobile stability fix — 23 August 2026. */

/* A Zoho style node must remain non-visual. A previous broad selector exposed
   its CSS as page text on mobile. */
style[data-id="zsalesiq"],
style[id^="zsiq"],
style[id*="zsiq"] {
  display: none !important;
}

.payment-card-brands,
.payment-card-logos {
  box-sizing: border-box !important;
  background: #fff !important;
  height: auto !important;
  max-width: 486px !important;
  overflow: hidden !important;
  width: min(100%, 486px) !important;
}

.payment-card-logos img {
  display: block !important;
  height: auto !important;
  inset: auto !important;
  margin: 0 !important;
  max-width: 100% !important;
  object-fit: contain !important;
  position: static !important;
  width: 100% !important;
}

.desktop-whatsapp-float {
  align-items: center;
  background: #20ad63;
  border: 2px solid #fff;
  border-radius: 50%;
  bottom: 104px;
  box-shadow: 0 12px 32px rgba(4, 48, 36, .28);
  color: #fff;
  display: flex;
  height: 58px;
  justify-content: center;
  position: fixed;
  right: 18px;
  transition: transform .2s ease, background .2s ease;
  width: 58px;
  z-index: 2147482985;
}

.desktop-whatsapp-float:hover {
  background: #168f50;
  transform: translateY(-2px);
}

.desktop-whatsapp-float svg {
  fill: none;
  height: 28px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 28px;
}

@media (min-width: 621px) {
  .enquiry-panel {
    bottom: 24px !important;
    right: 330px !important;
  }
}

@media (max-width: 620px) {
  html {
    min-height: 100% !important;
    overflow-x: clip !important;
    overflow-y: auto !important;
    overscroll-behavior-y: auto !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch;
  }

  body {
    min-height: 100% !important;
    overflow-x: clip !important;
    overflow-y: auto !important;
    overscroll-behavior-y: auto !important;
    padding-bottom: calc(70px + env(safe-area-inset-bottom)) !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch;
  }

  body.email-modal-open:has(.email-enquiry-backdrop) {
    overflow-y: hidden !important;
  }

  .email-enquiry-backdrop {
    align-items: flex-start !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    padding: 12px !important;
    -webkit-overflow-scrolling: touch;
  }

  .email-enquiry-modal {
    max-height: none !important;
    min-height: min-content;
    overflow: visible !important;
  }

  .contact-page,
  .contact-layout,
  .contact-form,
  #enquiry-form {
    overflow: visible !important;
    touch-action: pan-y !important;
  }

  .footer-payment-inner {
    align-items: stretch !important;
  }

  .payment-card-brands,
  .payment-card-logos {
    max-width: 100% !important;
    width: 100% !important;
  }

  #zsiqwidget {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  div#zsiq_float,
  div#zsiq_floatmain,
  div.zsiq_floatmain,
  div[data-id="zsalesiq"] {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  div#zsiq_float {
    bottom: calc(82px + env(safe-area-inset-bottom)) !important;
    left: auto !important;
    position: fixed !important;
    right: 12px !important;
    transform: scale(.92) !important;
    transform-origin: right bottom !important;
    z-index: 2147482990 !important;
  }

  .tamarind-zoho-status {
    appearance: none;
    background: #fff;
    border: 0;
    border-radius: 11px;
    bottom: calc(94px + env(safe-area-inset-bottom));
    box-shadow: 0 7px 22px rgba(7, 42, 35, .22);
    color: #313735;
    cursor: pointer;
    display: grid;
    font-family: Arial, Helvetica, sans-serif;
    gap: 3px;
    max-width: calc(100vw - 108px);
    padding: 10px 13px;
    position: fixed;
    right: 76px;
    text-align: left;
    width: 190px;
    z-index: 2147482989;
  }

  .tamarind-zoho-status::after {
    border-bottom: 7px solid transparent;
    border-left: 8px solid #fff;
    border-top: 7px solid transparent;
    content: "";
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
  }

  .tamarind-zoho-status strong {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.15;
  }

  .tamarind-zoho-status span {
    color: #6b716f;
    font-size: 11px;
    line-height: 1.25;
  }

  .featured-offer {
    height: 46px !important;
    max-width: calc(100vw - 16px) !important;
    right: 8px !important;
    top: 78px !important;
    width: 118px !important;
  }

  .featured-offer > img {
    height: 46px !important;
    width: 37px !important;
  }

  .featured-offer > div {
    padding: 4px 6px !important;
  }

  .featured-offer small {
    font-size: 4.7px !important;
  }

  .featured-offer strong {
    font-size: 8px !important;
    margin: 2px 0 !important;
  }

  .featured-offer span {
    font-size: 5px !important;
  }

  .featured-offer svg {
    height: 8px !important;
    width: 8px !important;
  }

  .desktop-whatsapp-float {
    display: none !important;
  }
}

@media (min-width: 621px) {
  .tamarind-zoho-status {
    display: none !important;
  }
}

/*
 * Header conversion cleanup — 23 August 2026
 * Keep the Tailor Made navigation and all enquiry/contact paths, but remove
 * the duplicate "Plan my tour" CTA from the desktop header and mobile menu.
 */
.nav-mobile-cta,
.header-actions > a.button.button-small[href*="/tailor-made#trip-planner"] {
  display: none !important;
}
