/* Gift card design: one file used by the shop, the confirmation page and the gift page.
   Three designs per occasion: a full-cover illustration (lettering on the empty side) or a
   code-drawn pattern with centred lettering ('bold' sticker or 'stamp' label) and doodles.
   Logo in a cream pill, amount on a cream tag. Colours come from card.js (--gcf/--gce/--gci).
   Sizes use container units, so the card scales from the 132px shop strip to full width.
   Arabic text never gets letter-spacing (it breaks the letters apart). */
.gc-card{
  --gcf:#8f1b22;--gce:#fff;--gci:#7a1418;
  position:relative;container-type:inline-size;aspect-ratio:1.586;border-radius:18px;overflow:hidden;isolation:isolate;
  direction:ltr;text-align:left;background:#f3e6d6;color:var(--gci);
  font-family:'Montserrat','Thmanyah',-apple-system,'Segoe UI',Arial,sans-serif;
  box-shadow:0 22px 44px -16px rgba(30,10,12,.42),0 6px 14px -6px rgba(30,10,12,.22);
}
/* The illustration covers the whole card; the subject sits on the left. */
/* The drawing starts below the logo pill so the pill never covers it; its top edge fades
   into the card colour (set to the drawing's background in card.js). */
.gc-cover{position:absolute;left:0;right:0;bottom:0;top:12.5cqw;width:100%;height:calc(100% - 12.5cqw);object-fit:contain;object-position:0% 100%;opacity:0;z-index:0;
  -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 5cqw),linear-gradient(to left,transparent 0,#000 14cqw);-webkit-mask-composite:source-in;
  mask-image:linear-gradient(to bottom,transparent 0,#000 5cqw),linear-gradient(to left,transparent 0,#000 14cqw);mask-composite:intersect;}
.gc-cover.ok{opacity:1;animation:gcFade .7s ease-out both;}
.gc-still .gc-cover.ok{animation:none;}
@keyframes gcFade{from{opacity:0;transform:scale(1.04);}to{opacity:1;transform:none;}}

.gc-in{position:absolute;inset:0;padding:4.6cqw 5cqw 4.4cqw;display:flex;flex-direction:column;z-index:2;}
/* Logo: always in a cream pill in the top left, same size on every design. */
.gc-top{display:flex;justify-content:flex-start;}
.gc-logo-pill{display:inline-flex;align-items:center;padding:1.1cqw 2.2cqw;border-radius:99px;background:rgba(255,250,240,.92);box-shadow:0 .5cqw 1.4cqw rgba(0,0,0,.08);}
.gc-logo{height:4.4cqw;width:auto;display:block;}

/* Code-drawn designs: pattern background and doodles. */
.gc-pat{position:absolute;inset:0;z-index:0;}
.gc-card:not(.gc-still) .gc-pat{animation:gcFade .6s ease-out both;}
.gc-doodles{position:absolute;inset:0;z-index:1;pointer-events:none;}
.gc-doodles svg{position:absolute;transform:rotate(var(--r,0deg));filter:drop-shadow(0 .4cqw 0 rgba(0,0,0,.12));}
.gc-card:not(.gc-still) .gc-doodles svg{animation:gcDood .6s cubic-bezier(.22,1,.36,1) both;}
@keyframes gcDood{from{opacity:0;transform:rotate(var(--r,0deg)) scale(.3);}to{opacity:1;transform:rotate(var(--r,0deg)) scale(1);}}

/* Big sticker lettering on the empty right side. */
.gc-words{flex:1;min-height:0;margin-left:44%;padding-bottom:2cqw;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;}
.gc-occ{font-family:'Thmanyah','Montserrat',sans-serif;font-weight:700;font-size:8.4cqw;line-height:1.38;letter-spacing:0;direction:rtl;
  color:var(--gcf);-webkit-text-stroke:1.5cqw var(--gce);paint-order:stroke fill;text-wrap:balance;
  filter:drop-shadow(0 .7cqw 0 rgba(0,0,0,.14));transform:rotate(-3deg);}
.gc-occ.gc-long{font-size:6.2cqw;-webkit-text-stroke-width:1.2cqw;}
/* Pattern designs: lettering centred on the card. */
.gc-type .gc-words{margin-left:0;padding:0 6cqw;}
.gc-type .gc-occ{font-size:11cqw;}
.gc-type .gc-occ.gc-long{font-size:7.6cqw;}
/* Stamp look: lettering on a cream label with a stitched border. */
.gc-stamp .gc-occ{-webkit-text-stroke:0;filter:none;background:#fffaf0;padding:1cqw 4.4cqw 1.4cqw;border-radius:3cqw;
  outline:.45cqw dashed var(--gcf);outline-offset:-1.6cqw;box-shadow:0 1cqw 0 rgba(0,0,0,.14);}
.gc-stamp .gc-occ-en{margin-top:2.6cqw;}
.gc-dark.gc-type .gc-occ-en{text-shadow:0 .3cqw 0 rgba(0,0,0,.25);}
.gc-occ-en{font-family:'Missing Lovely','Montserrat',sans-serif;font-size:4.4cqw;line-height:1.1;margin-top:1.6cqw;color:var(--gci);transform:rotate(-3deg);}
.gc-card:not(.gc-still) .gc-occ{animation:gcPop .7s cubic-bezier(.22,1,.36,1) .15s both;}
.gc-card:not(.gc-still) .gc-occ-en{animation:gcPop .7s cubic-bezier(.22,1,.36,1) .3s both;}
@keyframes gcPop{from{opacity:0;transform:rotate(-3deg) scale(.6);}to{opacity:1;transform:rotate(-3deg) scale(1);}}

/* Bottom: names on the left, a cream tag with the amount on the right. */
.gc-bottom{display:flex;justify-content:space-between;align-items:flex-end;gap:2.4cqw;}
.gc-names{min-width:0;max-width:52%;font-size:2.7cqw;font-weight:600;line-height:1.3;padding:1cqw 2.2cqw;border-radius:99px;
  background:rgba(255,250,240,.88);color:#3b2a26;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;unicode-bidi:plaintext;}
.gc-names:empty{visibility:hidden;}
.gc-names.is-ar{font-family:'Thmanyah','Montserrat',sans-serif;font-size:3cqw;letter-spacing:0;}
.gc-tag{flex-shrink:0;display:flex;flex-direction:column;align-items:flex-end;gap:.6cqw;padding:1.6cqw 2.6cqw 1.4cqw;border-radius:2.4cqw;
  background:#fffaf0;color:#3b1a16;box-shadow:0 .8cqw 0 rgba(0,0,0,.12);transform:rotate(2deg);}
.gc-label{display:flex;gap:1.8cqw;align-items:center;font-size:1.7cqw;color:#a2793a;white-space:nowrap;}
.gc-label .gc-en{letter-spacing:.28em;font-weight:600;}
.gc-label .gc-ar{font-family:'Thmanyah',sans-serif;font-weight:700;font-size:2.2cqw;letter-spacing:0;direction:rtl;}
.gc-amt{display:flex;align-items:baseline;gap:.8cqw;white-space:nowrap;line-height:1;}
.gc-cur{font-size:2cqw;letter-spacing:.14em;font-weight:600;color:#a2793a;}
.gc-num{font-size:6.2cqw;font-weight:700;letter-spacing:-.01em;color:#7a1418;}
.gc-code{font-family:"Courier New",monospace;letter-spacing:.06em;font-size:1.9cqw;opacity:.6;white-space:nowrap;direction:ltr;}

/* Soft light passing over the card now and then. */
.gc-sheen{position:absolute;inset:0;z-index:3;pointer-events:none;mix-blend-mode:soft-light;
  background:linear-gradient(105deg,transparent 35%,rgba(255,255,255,.6) 50%,transparent 65%) no-repeat;background-size:300% 100%;background-position:150% 0;
  animation:gcSheen 7s ease-in-out 1.6s infinite;}
@keyframes gcSheen{0%{background-position:150% 0}30%,100%{background-position:-50% 0}}
@media (prefers-reduced-motion:reduce){.gc-cover.ok,.gc-occ,.gc-occ-en,.gc-sheen,.gc-pat,.gc-doodles svg{animation:none!important}}
.ar,[lang="ar"]{letter-spacing:0 !important;}
