/* AVIATRIP-CURRENCY-SWITCH-V1027 — GEL / USD switch in the header */
.at-cur {
  --at-cur-w: 122px;
  --at-cur-h: 40px;
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  flex: 0 0 auto;
  box-sizing: border-box;
  width: var(--at-cur-w);
  height: var(--at-cur-h);
  padding: 3px;
  border: 1px solid var(--header-line, #d9e4f1);
  border-radius: 14px;
  background: #fff;
  color: var(--header-ink, #102343);
  isolation: isolate;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.at-cur:hover { border-color: #7aaeff; background: #fff; box-shadow: 0 6px 18px rgba(16, 77, 183, .1); }

.at-cur__opt {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  margin: 0;
  padding: 0 6px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #50668a;
  font: inherit;
  font-size: .76rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color .3s ease;
}
.at-cur__opt:hover { color: #104db7; }
.at-cur__opt[aria-pressed="true"] { color: #fff; cursor: default; }
.at-cur[data-currency="USD"] .at-cur__opt[aria-pressed="true"] { color: #2a1a02; }
.at-cur__opt:focus-visible { outline: 2px solid #0754da; outline-offset: 2px; }
.at-cur__sym { display: inline-block; font-size: 1.04rem; font-weight: 800; line-height: 1; }
.at-cur__code { font-size: .7rem; letter-spacing: .05em; }

/* The sliding thumb: blue for lari, gold for dollar */
.at-cur__thumb {
  position: absolute;
  z-index: 1;
  top: 3px;
  bottom: 3px;
  inset-inline-start: 3px;
  width: calc(50% - 3px);
  border-radius: 11px;
  pointer-events: none;
  transform: translateX(0);
  transition: transform .55s cubic-bezier(.34, 1.56, .64, 1);
}
.at-cur__thumb::before,
.at-cur__thumb > i {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.at-cur__thumb::before {
  background: linear-gradient(135deg, #3584ff 0%, #0f5be0 48%, #0845b1 100%);
  box-shadow: 0 6px 14px rgba(8, 69, 177, .32), inset 0 1px 0 rgba(255, 255, 255, .38);
}
.at-cur__thumb > i {
  opacity: 0;
  background: linear-gradient(135deg, #ffe9a8 0%, #f5c862 50%, #dca03a 100%);
  box-shadow: 0 6px 14px rgba(196, 136, 32, .34), inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: opacity .35s ease;
}
.at-cur__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, .7) 50%, transparent 68%) no-repeat;
  background-size: 250% 100%;
  background-position: 130% 0;
  opacity: 0;
}
.at-cur[data-currency="USD"] .at-cur__thumb { transform: translateX(100%); }
.at-cur[data-currency="USD"] .at-cur__thumb > i { opacity: 1; }
[dir="rtl"] .at-cur[data-currency="USD"] .at-cur__thumb { transform: translateX(-100%); }

/* Phone: a single coin that flips between ₾ and $ */
.at-cur__coin { display: none; }
.at-cur__coin-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.34, 1.4, .64, 1); }
.at-cur[data-currency="USD"] .at-cur__coin-inner { transform: rotateY(180deg); }
.at-cur__face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.16rem;
  font-weight: 800;
  line-height: 1;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.at-cur__face--gel {
  color: #fff;
  background: radial-gradient(circle at 32% 26%, #5c9dff 0%, #1462ea 52%, #0845b1 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3), inset 0 -3px 6px rgba(0, 22, 74, .35);
}
.at-cur__face--usd {
  color: #2a1a02;
  background: radial-gradient(circle at 32% 26%, #fff3c4 0%, #f3c45a 52%, #c88b25 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45), inset 0 -3px 6px rgba(120, 70, 0, .3);
  transform: rotateY(180deg);
}

/* Screen readers hear the new currency; nothing extra is shown on screen */
.at-cur__sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Prices converted on the page */
.at-money { white-space: nowrap; }

@media (prefers-reduced-motion: no-preference) {
  .at-cur.is-switching .at-cur__thumb::before,
  .at-cur.is-switching .at-cur__thumb > i { animation: at-cur-squash .5s cubic-bezier(.3, .7, .3, 1); }
  .at-cur.is-switching .at-cur__thumb::after { animation: at-cur-sheen .75s ease .12s; }
  .at-cur.is-switching .at-cur__opt[aria-pressed="true"] .at-cur__sym { animation: at-cur-pop .5s cubic-bezier(.3, 1.6, .5, 1); }
  .at-cur.is-switching .at-cur__coin { animation: at-cur-hop .7s cubic-bezier(.3, .7, .3, 1); }
  .at-money--in { animation: at-money-in .5s ease both; }
}
@keyframes at-cur-squash { 0% { transform: scale(1); } 35% { transform: scale(1.16, .84); } 70% { transform: scale(.96, 1.05); } 100% { transform: scale(1); } }
@keyframes at-cur-sheen { from { opacity: 1; background-position: 130% 0; } to { opacity: 1; background-position: -30% 0; } }
@keyframes at-cur-pop { from { transform: scale(.55) rotate(-14deg); } to { transform: none; } }
@keyframes at-cur-hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-4px); } }
@keyframes at-money-in { from { opacity: 0; filter: blur(3px); } to { opacity: 1; filter: none; } }

@media (prefers-reduced-motion: reduce) {
  .at-cur, .at-cur__opt, .at-cur__thumb, .at-cur__thumb > i, .at-cur__coin-inner { transition: none; }
}

/* Laptop widths where the menu is tight: symbols only */
@media (min-width: 1111px) and (max-width: 1320px) {
  .at-cur { --at-cur-w: 80px; }
  .at-cur__code { display: none; }
}
/* Tablet and phone header */
@media (max-width: 1110px) {
  .at-cur { --at-cur-h: 44px; --at-cur-w: 124px; }
}
@media (max-width: 599px) {
  .at-cur { --at-cur-w: 84px; }
  .at-cur__code { display: none; }
}
@media (max-width: 440px) {
  .at-cur { --at-cur-w: 44px; padding: 0; border: 0; background: none; display: inline-block; }
  .at-cur:hover { background: none; box-shadow: none; }
  .at-cur__opt, .at-cur__thumb { display: none; }
  .at-cur__coin {
    position: relative;
    display: block;
    width: 40px;
    height: 40px;
    margin: 2px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    cursor: pointer;
    perspective: 320px;
    -webkit-tap-highlight-color: transparent;
    filter: drop-shadow(0 5px 10px rgba(8, 40, 110, .22));
  }
  .at-cur__coin:focus-visible { outline: 2px solid #0754da; outline-offset: 2px; }
}
@media (max-width: 365px) {
  .at-cur { --at-cur-w: 40px; }
  .at-cur__coin { width: 36px; height: 36px; }
  .at-cur__face { font-size: 1.04rem; }
}
