/* Shared presentation only: public-page navigation and contact links. */
/* Override the legacy mobile background rule, which also uses !important. */
.site-topbar { background: #fff !important; backdrop-filter: none; }
.site-topbar .site-menu-toggle,
.site-topbar .site-mobile-link { display: none; }
.site-topbar .site-nav-services { display: block; }
.site-header-balance {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid transparent;
  font-size: 14px;
  white-space: nowrap;
  visibility: hidden;
  pointer-events: none;
}
.site-header-balance span:last-child {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.footer .site-contact-col { min-width: 0; }
.footer .site-contact-col .site-messengers {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.footer .site-contact-col .site-messengers li { margin: 0; }
.footer .site-contact-col .site-messenger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 8px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.footer .site-contact-col .site-telegram { color: #229ed9; }
.footer .site-contact-col .site-whatsapp { color: #25d366; }
.footer .site-contact-col .site-contact-icon {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}
.site-office-grid { display: grid; gap: 14px; }
.site-office { display: grid; align-content: start; gap: 6px; min-width: 0; }
.site-office-mobile-name,
.site-office-mobile-address,
.site-office-mobile-label { display: none; }
.site-office-map-links { display: grid; gap: 6px; justify-items: start; }
.footer .site-contact-col .site-office-link {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  width: fit-content;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 12px;
  color: #333;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}
.footer .site-contact-col .site-google { background: #ffda16; }
.footer .site-contact-col .site-yandex {
  display: none;
  background: #fff;
  border: 1px solid #e8e5dc;
}
.site-map-symbol { display: none; }
.site-office-link img { display: block; flex: 0 0 20px; width: 20px; height: 20px; border-radius: 5px; }
.site-messenger:hover, .site-office-link:hover { filter: brightness(.93); }
.site-topbar a:focus-visible,
.site-menu-toggle:focus-visible,
.site-contact-col a:focus-visible { outline: 2px solid #333; outline-offset: 3px; }

@media (max-width: 1000px) {
  .site-topbar .topbar-inner { flex-wrap: nowrap; }
  .site-topbar .topbar-left { flex: 1; }
  .site-topbar .topbar-actions { display: none; }
  .site-topbar .site-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 96px;
    min-height: 44px;
    margin-left: auto;
    padding: 9px 12px;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    background: #fff;
    color: #333;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .site-topbar .topbar-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    margin: 0;
    padding: 10px 16px 16px;
    border-bottom: 1px solid #e8e8e8;
    background: #fff;
    box-shadow: 0 12px 20px rgba(0,0,0,.08);
  }
  .site-topbar.site-menu-open .topbar-nav { display: flex; }
  .site-topbar .topbar-nav a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    opacity: 1;
  }
  .site-topbar .topbar-nav a.site-nav-services { display: flex; }
  .site-topbar .topbar-nav a.active,
  .site-topbar .topbar-nav a[aria-current="page"] { background: #fff9df; }
  .site-topbar .topbar-nav a.active::after { left: 12px; right: 12px; width: auto; bottom: 3px; }
}

@media (max-width: 900px) {
  .footer .site-contact-col { width: 100%; }
  .footer .site-contact-col .site-messengers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
    margin-bottom: 18px;
  }
  .footer .site-contact-col .site-messengers li {
    display: flex;
    min-width: 0;
    margin: 0;
  }
  .footer .site-contact-col .site-messenger {
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 10px 8px;
    border: 1px solid currentColor;
    border-radius: 13px;
    font-size: 15px;
    line-height: 1;
  }
  .footer .site-contact-col .site-telegram { background: #f0f9fd; }
  .footer .site-contact-col .site-whatsapp { background: #f0fdf4; }
  .footer .site-contact-col .site-office-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .footer .site-contact-col .site-office {
    gap: 0;
    padding: 15px;
    border: 1px solid #ebe7dc;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(17, 24, 39, .055);
  }
  .footer .site-contact-col .site-office-mobile-name {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #111827;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
  }
  .footer .site-contact-col .site-office-mobile-address {
    display: block;
    margin: 7px 0 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.45;
  }
  .footer .site-contact-col .site-office-map-links {
    gap: 8px;
    margin-top: 13px;
  }
  .footer .site-contact-col .site-office-link {
    justify-content: flex-start;
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.25;
  }
  .footer .site-contact-col .site-yandex { display: flex; }
  .footer .site-contact-col .site-office-desktop-icon,
  .footer .site-contact-col .site-office-desktop-label { display: none; }
  .footer .site-contact-col .site-office-mobile-label { display: inline; }
  .footer .site-contact-col .site-map-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
  }
  .footer .site-contact-col .site-map-google { color: #4285f4; }
  .footer .site-contact-col .site-map-yandex {
    color: #fc3f1d;
    background: #fff3f0;
  }
  .footer .site-contact-col > .site-footer-address { display: none; }
  .footer .footer-bottom {
    font-size: 0;
    text-align: center;
  }
  .footer .footer-bottom::before {
    content: "© 2026 One2Cash";
    font-size: 13px;
  }
  .footer .footer-bottom > * { display: none; }
}

@media (max-width: 360px) {
  .footer .site-contact-col .site-messengers { gap: 8px; }
  .footer .site-contact-col .site-messenger { gap: 7px; padding-inline: 6px; font-size: 14px; }
  .footer .site-contact-col .site-office-grid { gap: 10px; }
  .footer .site-contact-col .site-office-link { font-size: 13px; }
}

.site-footer-address {
  margin: 10px 0 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.45;
}

/* Desktop contact layout. */
@media (min-width: 901px) {
  .footer .footer-top:has(.site-contact-col) {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 32px;
  }
  .footer .footer-cols:has(> .site-contact-col) {
    grid-template-columns: minmax(155px, .8fr) minmax(250px, 1.2fr) minmax(440px, 2fr);
  }
  .footer .site-contact-col .site-messengers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 4px;
  }
  .footer .site-contact-col .site-messengers li { display: flex; min-width: 0; }
  .footer .site-contact-col .site-messenger {
    min-height: 20px;
    padding: 0;
    gap: 6px;
    color: #111827;
    font-weight: 400;
    line-height: 20px;
  }
  .footer .site-contact-col .site-contact-icon {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }
  .footer .site-contact-col .site-telegram .site-contact-icon { color: #229ed9; }
  .footer .site-contact-col .site-whatsapp .site-contact-icon { color: #25d366; }
  .footer .site-contact-col .site-office-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
  }
  .footer .site-contact-col .site-office {
    gap: 0;
    min-width: 0;
  }
  .footer .site-contact-col .site-office-mobile-name {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 8px;
    color: #111827;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
  }
  .footer .site-contact-col .site-office-map-links {
    width: 168px;
    max-width: 100%;
    gap: 6px;
  }
  .footer .site-contact-col .site-office-link {
    justify-content: flex-start;
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    gap: 8px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
  }
  .footer .site-contact-col .site-google {
    background: #ffda16;
    border: 1px solid #ffda16;
  }
  .footer .site-contact-col .site-yandex {
    display: flex;
    background: #fff;
    border: 1px solid #e2ded3;
  }
  .footer .site-contact-col .site-office-desktop-icon,
  .footer .site-contact-col .site-office-desktop-label { display: none; }
  .footer .site-contact-col .site-office-mobile-label { display: inline; }
  .footer .site-contact-col .site-google .site-office-mobile-label,
  .footer .site-contact-col .site-yandex > span:last-child { font-size: 0; }
  .footer .site-contact-col .site-google .site-office-mobile-label::after {
    content: "Google Maps";
    font-size: 13px;
  }
  .footer .site-contact-col .site-yandex > span:last-child::after {
    content: "Яндекс Карты";
    font-size: 13px;
  }
  .footer .site-contact-col .site-map-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
  }
  .footer .site-contact-col .site-map-google { color: #4285f4; }
  .footer .site-contact-col .site-map-yandex {
    color: #fc3f1d;
    background: #fff3f0;
  }
  .footer .site-contact-col .site-office-link:hover,
  .footer .site-contact-col .site-office-link:focus-visible {
    text-decoration: none;
    transform: translateY(-1px);
  }
  .footer .site-contact-col > .site-footer-address { display: none; }
  .footer .footer-bottom::after {
    content: "179, 450 Soi Hat Surin 4, Choeng Thale, Phuket, 83110";
    display: block;
    margin-top: 7px;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
  }
}

/* Unified action buttons. Keep layout, typography and ordinary text links unchanged. */
:is(
  .contact-cta .btn,
  .calc-submit,
  .calc-switch,
  .office-calc-submit,
  .office-calc-switch,
  .info-cta a,
  .office-location-link,
  .privacy-article .privacy-contact-list a,
  .footer .site-contact-col .site-office-link
) {
  --one2-button-bg: #fff;
  --one2-button-border: #f5c400;
  --one2-button-text: #111;
  background: var(--one2-button-bg);
  color: var(--one2-button-text);
  border: 1px solid var(--one2-button-border);
  box-shadow: none;
  filter: none;
  transition: background-color .16s ease, border-color .16s ease;
  -webkit-tap-highlight-color: rgba(255, 212, 0, .3);
}

@media (hover: hover) and (pointer: fine) {
  :is(
  .contact-cta .btn,
  .calc-submit,
  .calc-switch,
  .office-calc-submit,
  .office-calc-switch,
  .info-cta a,
  .office-location-link,
  .privacy-article .privacy-contact-list a,
  .footer .site-contact-col .site-office-link
):not(:disabled):not([aria-disabled="true"]):hover {
    --one2-button-bg: #ffd400;
    --one2-button-border: #ffd400;
  }
}

:is(
  .contact-cta .btn,
  .calc-submit,
  .calc-switch,
  .office-calc-submit,
  .office-calc-switch,
  .info-cta a,
  .office-location-link,
  .privacy-article .privacy-contact-list a,
  .footer .site-contact-col .site-office-link
):not(:disabled):not([aria-disabled="true"]):is(:active, :focus-visible) {
  --one2-button-bg: #ffd400;
  --one2-button-border: #ffd400;
}

:is(
  .contact-cta .btn,
  .calc-submit,
  .calc-switch,
  .office-calc-submit,
  .office-calc-switch,
  .info-cta a,
  .office-location-link,
  .privacy-article .privacy-contact-list a,
  .footer .site-contact-col .site-office-link
):not(:disabled):not([aria-disabled="true"]):active { transition-duration: 0s; }
:is(
  .contact-cta .btn,
  .calc-submit,
  .calc-switch,
  .office-calc-submit,
  .office-calc-switch,
  .info-cta a,
  .office-location-link,
  .privacy-article .privacy-contact-list a,
  .footer .site-contact-col .site-office-link
):focus-visible { outline: 2px solid #333; outline-offset: 4px; }

:is(
  .contact-cta .btn,
  .calc-submit,
  .calc-switch,
  .office-calc-submit,
  .office-calc-switch,
  .info-cta a,
  .office-location-link,
  .privacy-article .privacy-contact-list a,
  .footer .site-contact-col .site-office-link
):is(:disabled, [aria-disabled="true"]) {
  --one2-button-bg: #f4f1e7;
  --one2-button-border: #e5e7eb;
  --one2-button-text: #8b8b83;
  cursor: not-allowed;
}

/* Keep the main action yellow; show a lightweight glass highlight on interaction. */
#normalCalc .calc-submit {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: box-shadow .2s ease;
}
#normalCalc .calc-submit:not(:disabled):not([aria-disabled="true"]) {
  --exchange-glass-opacity: 0;
  --exchange-glass-shadow: 0 16px 40px rgba(255, 208, 0, .55);
  background: var(--yellow, #ffd400);
  color: #000;
  border: none;
  box-shadow: var(--exchange-glass-shadow);
}
#normalCalc .calc-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, .08) 50%, transparent 51%),
    linear-gradient(115deg, transparent 22%, rgba(255, 255, 255, .4) 43%, transparent 65%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .65), inset 0 -2px 5px rgba(177, 125, 0, .12);
  opacity: var(--exchange-glass-opacity, 0);
  transition: opacity .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  #normalCalc .calc-submit:not(:disabled):not([aria-disabled="true"]):hover {
    --exchange-glass-opacity: 1;
    --exchange-glass-shadow: 0 18px 44px rgba(255, 196, 0, .6);
  }
}
#normalCalc .calc-submit:not(:disabled):not([aria-disabled="true"]):is(:focus-visible, :active) {
  --exchange-glass-opacity: 1;
  --exchange-glass-shadow: 0 18px 44px rgba(255, 196, 0, .6);
}
#normalCalc .calc-submit:active::before { transition-duration: 0s; }
@media (prefers-reduced-motion: reduce) {
  #normalCalc .calc-submit,
  #normalCalc .calc-submit::before { transition: none; }
}

/* On desktop, footer messengers remain text links with their original layout. */
@media (max-width: 900px) {
  .footer .site-contact-col .site-messenger {
  --one2-button-bg: #fff;
  --one2-button-border: #f5c400;
  --one2-button-text: #111;
  background: var(--one2-button-bg);
  color: var(--one2-button-text);
  border: 1px solid var(--one2-button-border);
  box-shadow: none;
  filter: none;
  transition: background-color .16s ease, border-color .16s ease;
  -webkit-tap-highlight-color: rgba(255, 212, 0, .3);
  }
  .footer .site-contact-col .site-messenger:is(:active, :focus-visible) {
    --one2-button-bg: #ffd400;
    --one2-button-border: #ffd400;
  }
  .footer .site-contact-col .site-messenger:active { transition-duration: 0s; }
  .footer .site-contact-col .site-messenger:focus-visible { outline: 2px solid #333; outline-offset: 4px; }
  .footer .site-contact-col .site-telegram .site-contact-icon { color: #229ed9; }
  .footer .site-contact-col .site-whatsapp .site-contact-icon { color: #25d366; }
}

@media (max-width: 900px) and (hover: hover) and (pointer: fine) {
  .footer .site-contact-col .site-messenger:hover {
    --one2-button-bg: #ffd400;
    --one2-button-border: #ffd400;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(
  .contact-cta .btn,
  .calc-submit,
  .calc-switch,
  .office-calc-submit,
  .office-calc-switch,
  .info-cta a,
  .office-location-link,
  .privacy-article .privacy-contact-list a,
  .footer .site-contact-col .site-office-link
),
  .footer .site-contact-col .site-messenger { transition: none; }
}
