/* Gift cards: buy page (giftcards/buy + livewire/buy-gift-card) and the order status page. Site tokens from site.css. */

.gc-hero{position:relative;background:radial-gradient(ellipse at 75% 0%,#2c4d8f 0%,var(--navy) 45%,var(--night) 100%);color:#fff;padding:46px 0 120px;overflow:hidden}
.gc-hero--short{padding-bottom:110px}
.gc-back{display:inline-flex;align-items:center;gap:4px;font-weight:700;font-size:14px;opacity:.75;margin-bottom:18px}
.gc-back:hover{opacity:1}
.gc-back svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.gc-kicker{display:block;font-family:Bangers,cursive;letter-spacing:1px;font-size:22px;color:var(--yellow);transform:rotate(-2deg);transform-origin:left}
.gc-hero h1{font-size:clamp(34px,5vw,58px);line-height:1.05;margin:4px 0 14px}
.gc-lead{max-width:680px;font-size:18px;opacity:.85}
.gc-lead p{margin:0 0 10px}.gc-lead p:last-child{margin:0}
.gc-lead ul,.gc-lead ol{margin:0 0 10px;padding-left:22px}
.gc-hero__wave{position:absolute;left:0;right:0;bottom:-1px;line-height:0}
.gc-hero__wave svg{width:100%;height:80px}
.gc-how{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:28px;max-width:900px}
.gc-how li{display:flex;gap:12px;align-items:flex-start;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);border-radius:18px;padding:14px}
.gc-how__n{flex:none;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--yellow);color:var(--deep);font-weight:700}
.gc-how b{display:block;font-size:15px}
.gc-how span{font-size:13px;opacity:.75;line-height:1.4}

.gc{padding:10px 0 90px}
.gc-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:22px;align-items:start}
.gc-form{display:grid;gap:16px}
.gc-box{border:0;margin:0;background:#fff;border-radius:26px;padding:24px;box-shadow:0 14px 34px -20px rgba(32,60,117,.4);min-width:0}
.gc-h{display:flex;align-items:center;gap:10px;font-weight:700;font-size:19px;color:var(--navy);margin-bottom:14px;padding:0}
.gc-num{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--yellow);color:var(--deep);font-size:15px;box-shadow:0 3px 0 #d8913a}
.gc-amounts{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:14px 12px;padding:6px 0 6px}
/* amounts as stickers (concept «Uzlīmes»): pastel die-cut stickers with a white edge, a little tilted;
   the chosen one straightens up, grows and gets a dark ring with a red tick */
.gc-amounts{gap:16px 14px;padding:10px 4px 6px}
.gc-amount{--c:#ffc35c;--tilt:-4deg;position:relative;height:88px;display:grid;place-items:center;border:5px solid #fff;border-radius:24px;padding:0;cursor:pointer;
  background:var(--c);color:var(--deep);font-family:'Baloo 2',Comfortaa,sans-serif;font-weight:800;font-size:30px;line-height:1;
  transform:rotate(var(--tilt));box-shadow:0 8px 18px -8px rgba(29,33,71,.35);transition:transform .3s cubic-bezier(.22,1.4,.36,1),box-shadow .2s}
.gc-amount:nth-child(4n+2){--c:#ffb3c7;--tilt:3deg}
.gc-amount:nth-child(4n+3){--c:#9cc8ff;--tilt:-2deg}
.gc-amount:nth-child(4n+4){--c:#7fd6b4;--tilt:4deg}
.gc-amount span{position:relative}
.gc-amount:hover{transform:rotate(0) scale(1.05)}
.gc-amount:focus-visible{outline:3px solid var(--navy);outline-offset:3px}
.gc-amount.on{transform:rotate(0) scale(1.08);box-shadow:0 0 0 4px var(--deep),0 14px 24px -10px rgba(29,33,71,.5)}
.gc-amount.on::after{content:"";position:absolute;top:-16px;right:-16px;width:34px;height:34px;border-radius:50%;border:3px solid #fff;
  background:var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/18px no-repeat;animation:gcPop .45s var(--ease) both}
.gc-amount--own{--c:#fff;--tilt:-1deg;border:3px dashed #a9b0cc;box-shadow:none;color:var(--navy);font-family:inherit;font-weight:700;font-size:15px;line-height:1.2;padding:0 8px}
.gc-amount--own.on{border-style:solid;border-color:#fff}
@keyframes gcPop{0%{transform:scale(0) rotate(-40deg)}70%{transform:scale(1.15) rotate(8deg)}100%{transform:scale(1) rotate(0)}}
@media (prefers-reduced-motion:reduce){.gc-amount,.gc-amount:hover,.gc-amount.on{transform:none;transition:none}.gc-amount.on::after,.gc-card__amount{animation:none}}
.gc-own{margin-top:14px;max-width:260px}
.gc-own__in{position:relative;display:block}
.gc-own__in input{padding-right:36px!important;font-size:20px!important;font-weight:700!important}
.gc-own__in b{position:absolute;right:14px;top:50%;transform:translateY(-50%);color:var(--navy)}
.gc-row2{display:grid;grid-template-columns:auto minmax(0,1fr);gap:16px;margin-top:16px;align-items:start}
.gc-f{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:700;color:var(--navy)}
.gc-f small{font-weight:400;opacity:.6}
.gc-f input{box-sizing:border-box;height:52px;font:inherit;font-weight:400;font-size:16px;color:var(--deep);border:2px solid #e3e5ee;border-radius:14px;padding:0 14px;background:#fff;width:100%;transition:border-color .15s}
.gc-f input:focus{outline:0;border-color:var(--yellow)}
.gc-f em{font-style:normal;color:var(--red);font-size:13px}
/* same 52px height as the recipient input next to it */
.gc-qty{box-sizing:border-box;height:52px;display:flex;align-items:center;gap:6px;background:#f5f6fb;border:2px solid #f5f6fb;border-radius:14px;padding:4px}
.gc-qty button{width:40px;height:40px;border:0;border-radius:11px;background:#fff;font:inherit;font-size:20px;font-weight:700;color:var(--navy);cursor:pointer}
.gc-qty button:disabled{opacity:.35;cursor:default}
.gc-qty b{min-width:28px;text-align:center;font-size:18px;color:var(--deep)}
.gc-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.gc-check{display:flex;gap:10px;align-items:flex-start;font-size:14px;margin-top:16px;cursor:pointer}
.gc-check input{width:20px;height:20px;accent-color:var(--red);flex:none}
.gc-err{color:var(--red);font-weight:700;font-size:13px;margin-top:6px}

.gc-side{display:grid;gap:16px;position:sticky;top:90px}
.gc-card{position:relative;transform:rotate(-2deg);aspect-ratio:210/148;border-radius:22px;overflow:hidden;background:radial-gradient(ellipse at 80% 0%,#2c4d8f 0%,var(--navy) 55%,var(--night) 100%);color:#fff;padding:22px;display:flex;flex-direction:column;box-shadow:0 24px 50px -22px rgba(16,20,60,.7);transition:transform .4s var(--ease)}
.gc-card:hover{transform:rotate(-.5deg) translateY(-3px)}
.gc-card::after{content:"";position:absolute;left:-10%;right:-10%;bottom:-38%;height:60%;border-radius:50%;background:var(--deep)}
.gc-card__moon{position:absolute;right:20px;top:18px;width:44px;height:44px;border-radius:50%;background:#fff6d8;box-shadow:0 0 40px 10px rgba(249,184,94,.25)}
.gc-card__logo{position:relative;height:clamp(52px,6vw,68px);width:auto;align-self:flex-start;filter:drop-shadow(0 3px 6px rgba(0,0,0,.35))}
.gc-card__kicker{position:relative;margin-top:12px;color:var(--yellow);font-weight:700;font-size:12px;letter-spacing:1px;text-transform:uppercase}
.gc-card__amount{position:relative;font-family:'Baloo 2',Comfortaa,sans-serif;font-weight:800;font-size:clamp(40px,5vw,60px);line-height:1;margin-top:4px;animation:gcCardPop .45s cubic-bezier(.22,1.4,.36,1)}
@keyframes gcCardPop{0%{transform:scale(.85);opacity:.4}60%{transform:scale(1.06)}100%{transform:scale(1);opacity:1}}
.gc-card__for{position:relative;font-size:14px;opacity:.85}
.gc-card__code{position:relative;z-index:1;margin-top:auto;align-self:flex-start;background:#fff;color:var(--navy);font-weight:700;letter-spacing:2px;border-radius:8px;padding:4px 10px;font-size:14px}
.gc-card__valid{position:relative;z-index:1;margin-top:8px;align-self:flex-start;padding:4px 10px;border-radius:999px;background:rgba(249,184,94,.18);color:#ffe2b0;font-size:13px;font-weight:700}
.gc-card__valid b{color:#fff}
.gc-validity{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:14px 0 0;font-size:14px;font-weight:700;color:var(--navy)}
.gc-validity svg{width:18px;height:18px;fill:none;stroke:var(--red);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.gc-validity b{color:var(--red)}
.gc-validity span{font-weight:400;color:#6b6f86}
.gc-card__qty{position:absolute;z-index:1;right:18px;bottom:16px;font-family:Bangers,cursive;font-size:30px;color:var(--yellow)}
.gc-sum{background:#fff;border-radius:22px;padding:20px;box-shadow:0 14px 34px -20px rgba(32,60,117,.4)}
.gc-sum__total{display:flex;justify-content:space-between;align-items:baseline;font-weight:700;color:var(--navy)}
.gc-sum__total b{font-size:30px;color:var(--red)}
.gc-sum small{display:block;font-size:12px;opacity:.6;margin-top:12px;line-height:1.5}
.gc-btn{display:inline-flex;align-items:center;justify-content:center;width:100%;margin-top:14px;background:var(--red);color:#fff;border:0;font:inherit;font-weight:700;font-size:18px;padding:15px 20px;border-radius:16px;cursor:pointer;box-shadow:0 5px 0 #a8302f;transition:transform .15s,box-shadow .15s}
.gc-btn:hover{transform:translateY(2px);box-shadow:0 3px 0 #a8302f}
.gc-btn:disabled{opacity:.7}
.gc-off{margin-top:12px;font-size:14px;color:var(--red);font-weight:700}

.gc-status{display:grid;gap:24px;justify-items:center}
.gc-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;width:100%}
.gc-card--sm{padding:18px}
.gc-card.is-off{filter:grayscale(.6);opacity:.75}
.gc-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:18px}
.gc-actions .gc-btn{width:auto;margin:0}
.gc-link{font-weight:700;color:var(--navy)}

@media (max-width:960px){
  .gc-grid{grid-template-columns:1fr}
  .gc-side{position:static;order:-1}
  .gc-how{grid-template-columns:1fr}
}
@media (max-width:560px){
  .gc-hero{padding:30px 0 100px}
  .gc-box{padding:18px;border-radius:20px}
  .gc-fields,.gc-row2{grid-template-columns:1fr}
  .gc-amounts{grid-template-columns:repeat(3,1fr)}
}
