/* Gift card page, October 2026: dinners or any amount ("green and paper").
   Used by /gift-card/ and /pt/gift-card/ with js/gift-card-dinners.js. Everything is scoped to main.gcd
   so the site header and footer are untouched. The success pages still use css/gift-card-2026.css.
   Order on every screen: opening photo with the heading on it, choosing (green band), your gift + form + pay
   (paper band), using the card. From 960px: heading on the right of the photo, the two course groups side by
   side, and the paper band in two columns with "your gift" staying in view on the left. */

.gcd{
  --off:#F8F6F3;      /* page ground */
  --green:#2D4535;    /* choosing band, headings, pay button */
  --mid:#496E52;      /* separators on green */
  --paper:#F6F3EC;    /* selected rows, summary and form band */
  --white:#FFFFFF;    /* fields, text on green */
  --sage:#DCE6DA;     /* notes and controls on green */
  --ink:#111110;
  --grey:#65655F;
  --terra:#8B4A2A;    /* errors */
  --serif:'Cormorant Garamond',Georgia,'Times New Roman',serif;
  --sans:'Inter',-apple-system,BlinkMacSystemFont,'Helvetica Neue',Arial,sans-serif;
  --gut:20px;
  display:block;background:var(--off);color:var(--ink);font-family:var(--sans);font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased;
}
body{background:#F8F6F3}
/* venn-header-system.css sets overflow-x:hidden on body, which turns body into a scroll box and stops position:sticky
   ("your gift" on computers). clip hides sideways overflow the same way without that. Older browsers keep hidden. */
html body{overflow-x:clip}
.gcd *,.gcd *::before,.gcd *::after{box-sizing:border-box}
.gcd [hidden]{display:none!important}
.gcd .sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.gcd h1,.gcd h2,.gcd h3{font-family:var(--serif);font-weight:300;line-height:1.1;margin:0;text-wrap:balance;letter-spacing:0;text-transform:none}
.gcd p{margin:0}
.gcd figure{margin:0}
.gcd fieldset{border:0;margin:0;padding:0;min-width:0}
.gcd legend{padding:0}
.gcd a{color:inherit}

/* opening: text on the photo */
.gcd .top{position:relative;display:flex;flex-direction:column;justify-content:flex-end;min-height:clamp(440px,74svh,620px);padding:0 var(--gut) 30px;overflow:hidden;background:#111110;color:#fff}
.gcd .top__photo{position:absolute;inset:0}
.gcd .top__photo picture{display:block;width:100%;height:100%}
.gcd .top__photo img{width:100%;height:100%;object-fit:cover;object-position:48% 38%;display:block}
.gcd .top__photo::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,rgba(17,17,16,0) 28%,rgba(17,17,16,.5) 58%,rgba(17,17,16,.9) 100%)}
.gcd .top__text{position:relative;z-index:1;display:flex;flex-direction:column;gap:10px;max-width:34rem}
.gcd .top h1{color:#fff;font-size:44px}
.gcd .top h1 em{font-style:italic}
.gcd .top p{color:rgba(255,255,255,.92);font-size:16px;line-height:24px}

/* green band: choosing */
.gcd .choose{background:var(--green);color:var(--white);padding:36px var(--gut) 32px}
.gcd .choose__in{max-width:1000px;margin:0 auto;display:flex;flex-direction:column;gap:24px}
.gcd .choose h2{font-size:28px;color:var(--white)}
.gcd .choose :focus-visible{outline:2px solid var(--sage);outline-offset:3px}
.gcd .intro{font-size:14px;line-height:20px;color:var(--sage)}
.gcd .body{display:flex;flex-direction:column;gap:24px}
.gcd .body--amount{gap:20px}

/* pantry strip under the heading */
.gcd .pantry{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:-8px 0 0}
.gcd .pantry img{width:100%;height:auto;aspect-ratio:1;object-fit:cover;display:block}
.gcd .pantry img:nth-child(5){display:none}

/* segmented controls on green */
.gcd .seg{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--sage);width:100%;max-width:360px}
.gcd .seg label{position:relative;display:flex;align-items:center;justify-content:center;min-height:48px;padding:0 10px;cursor:pointer;font-size:15px;color:var(--white);text-align:center}
.gcd .seg label + label{border-left:1px solid var(--sage)}
.gcd .seg input{position:absolute;inset:0;width:100%;height:100%;opacity:0;margin:0;cursor:pointer}
.gcd .seg label:has(input:checked){background:var(--paper);color:var(--green);font-weight:500}
.gcd .seg label:has(input:focus-visible){outline:2px solid var(--sage);outline-offset:3px;z-index:1}
.gcd .seg--small{max-width:300px}
.gcd .seg--small label{min-height:44px;font-size:14px}

.gcd .rows{margin-top:10px;border-top:1px solid var(--mid)}
.gcd .row{display:grid;grid-template-columns:22px minmax(0,1fr);column-gap:14px;align-items:center;min-height:56px;padding:12px;border-bottom:1px solid var(--mid);cursor:pointer}
.gcd .row__top{display:flex;align-items:baseline;gap:8px;min-width:0}
.gcd .row__name{flex:0 1 auto;min-width:0;font-family:var(--serif);font-size:21px;line-height:1.2}
/* "com harmonização sem álcool" can need two lines on small phones: break it evenly, a little smaller */
.gcd .row__name{text-wrap:balance}
@media (max-width:480px){.gcd .row__name{font-size:19px}}
.gcd .row__lead{flex:1 1 0;min-width:0;border-bottom:1px dotted var(--sage);opacity:.7;transform:translateY(-5px)}
.gcd .row__price{flex:none;font-size:17px;font-variant-numeric:tabular-nums;white-space:nowrap}
.gcd .row:has(input:checked){background:var(--paper);color:var(--ink)}
.gcd .row:has(input:checked) .row__lead{border-color:var(--grey)}

/* dinner: people, courses, pairing, then the total (11 Oct 2026) */
.gcd .body--dinner{gap:22px}
.gcd .ctl__label{display:flex;justify-content:space-between;align-items:baseline;gap:12px;width:100%;margin-bottom:10px;font-size:15px;font-weight:500;color:var(--white)}
.gcd .ctl__add{font-size:14px;font-weight:400;color:var(--sage);text-align:right}
.gcd .ctl .rows{margin-top:0}
.gcd .ctl__help{margin-top:10px;font-size:14px;line-height:20px;color:var(--sage)}
.gcd .total{display:flex;flex-direction:column;gap:2px;border-top:1px solid var(--mid);padding-top:18px}
.gcd .total__what{font-family:var(--serif);font-size:22px;line-height:1.25;text-wrap:balance}
.gcd .total__amt{font-size:20px;font-weight:500;font-variant-numeric:tabular-nums;margin-top:4px}
.gcd .total__vat{font-size:14px;line-height:20px;color:var(--sage)}

/* radios drawn on native inputs */
.gcd .choose input[type=radio]{appearance:none;-webkit-appearance:none;margin:0;width:22px;height:22px;border:1.5px solid var(--sage);border-radius:50%;background:transparent;display:inline-grid;place-content:center;cursor:pointer;flex:none}
.gcd .choose input[type=radio]::before{content:"";width:10px;height:10px;border-radius:50%;background:var(--green);transform:scale(0)}
.gcd .choose input[type=radio]:checked{border-color:var(--green);background:var(--white)}
.gcd .choose input[type=radio]:checked::before{transform:scale(1)}

.gcd .notes{display:flex;flex-direction:column;gap:6px;font-size:14px;line-height:20px;color:var(--sage)}
.gcd .notes details{margin-top:2px}
.gcd .notes summary{cursor:pointer;padding:12px 0;margin:-12px 0;color:var(--white);text-decoration:underline;text-underline-offset:3px;width:fit-content}
.gcd .notes details p{margin-top:6px}

/* amounts on green */
.gcd .tiles{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--mid);border-left:1px solid var(--mid)}
.gcd .tile{display:flex;align-items:center;gap:14px;min-height:56px;padding:12px 14px;border-right:1px solid var(--mid);border-bottom:1px solid var(--mid);cursor:pointer;font-size:18px;font-variant-numeric:tabular-nums}
.gcd .tile:has(input:checked),.gcd .other:has(input:checked){background:var(--paper);color:var(--ink)}
.gcd .other{display:flex;align-items:center;gap:14px;min-height:56px;padding:12px 14px;border:1px solid var(--mid);border-top:0;cursor:pointer;font-family:var(--serif);font-size:21px}
.gcd .amtfield{display:flex;flex-direction:column;gap:8px;margin-top:4px}
.gcd .amtfield label{font-size:14px;font-weight:500}
.gcd .amtin{position:relative;max-width:220px}
.gcd .amtin input{padding-left:34px}
.gcd .amtin__cur{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--grey);pointer-events:none}
.gcd .amtin.is-after input{padding-left:14px;padding-right:34px}
.gcd .amtin.is-after .amtin__cur{left:auto;right:14px}

/* fields */
.gcd .inp,.gcd textarea{width:100%;font:inherit;font-size:16px;color:var(--ink);background:var(--white);border:1px solid var(--grey);border-radius:0;padding:12px 14px;min-height:48px;margin:0;-webkit-appearance:none;appearance:none}
.gcd textarea{min-height:96px;resize:vertical;line-height:1.5}
.gcd .inp:focus,.gcd textarea:focus{outline:2px solid var(--green);outline-offset:1px}
.gcd .choose .inp:focus{outline-color:var(--sage)}
.gcd .inp:disabled{background:transparent;border-style:dashed;border-color:var(--sage)}
.gcd .help{font-size:14px;line-height:20px;color:var(--grey)}
.gcd .choose .help{color:var(--sage)}
.gcd .err{font-size:14px;line-height:20px;color:var(--terra);display:flex;gap:8px;align-items:flex-start}
.gcd .err::before{content:"!";flex:none;width:18px;height:18px;border-radius:50%;background:var(--terra);color:#fff;font-size:12px;font-weight:500;display:grid;place-content:center;margin-top:1px}
.gcd .choose .err{background:var(--paper);padding:8px 10px;width:fit-content}
.gcd [aria-invalid="true"]{border-color:var(--terra)!important;box-shadow:inset 0 0 0 1px var(--terra)}

/* paper band: your gift, form, pay */
.gcd .give{background:var(--paper);padding:32px var(--gut) 40px}
.gcd .give__in{max-width:640px;margin:0 auto;display:flex;flex-direction:column;gap:32px}
.gcd .give :focus-visible{outline:2px solid var(--green);outline-offset:3px}
.gcd .give h2{font-size:28px;color:var(--green)}
.gcd .sum{display:flex;flex-direction:column;gap:6px;border-top:1px solid var(--green);border-bottom:1px solid var(--green);padding:18px 0 20px}
.gcd .sum h2{margin-bottom:6px}
.gcd .sum__expl,.gcd .sum__valid{font-size:14px;line-height:20px;color:var(--grey)}

/* the card they receive */
.gcd .gcard{width:100%;max-width:360px;aspect-ratio:1.6;display:grid;grid-template-columns:38% 1fr;background:var(--green);color:var(--paper);border-radius:8px;overflow:hidden;box-shadow:0 12px 28px rgba(17,17,16,.18);margin:6px 0 14px}
.gcd .gcard__ph img{width:100%;height:100%;object-fit:cover;display:block}
.gcd .gcard__body{display:flex;flex-direction:column;padding:14px 16px;min-width:0}
.gcd .gcard__logo{font-family:var(--serif);font-size:30px;line-height:1;font-weight:300}
.gcd .gcard__for{font-family:var(--serif);font-style:italic;font-size:21px;line-height:1.15;margin-top:auto;overflow-wrap:anywhere}
.gcd .gcard__amt{font-size:17px;font-weight:500;font-variant-numeric:tabular-nums;margin-top:4px}
.gcd .gcard__from{font-size:12.5px;color:var(--sage);margin-top:2px;overflow-wrap:anywhere}

/* choosing the dish on the card: six photos, the chosen one ringed */
/* their message, as it will read in the email */
/* the buyer's message on the card drawing, as a quote (page preview only; the email sets it out in full) */
.gcd .gcard__msg{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;margin-top:6px;font-family:var(--serif);font-style:italic;font-size:13px;line-height:1.25;color:var(--paper);opacity:.92;overflow-wrap:anywhere}
@media (min-width:960px){.gcd .gcard__msg{font-size:15.5px;line-height:1.3;margin-top:8px}}
@media (max-width:359px){.gcd .gcard__msg{font-size:12px;-webkit-line-clamp:3}.gcd .gcard__for{font-size:18px}}
/* choosing the dish on the card */
.gcd .pick{display:flex;flex-direction:column;gap:8px;margin:0 0 12px}
.gcd .pick__label{font-size:14px;font-weight:500;color:var(--ink)}
.gcd .pick__row{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;max-width:400px}
.gcd .pick__opt{position:relative;display:block;aspect-ratio:1;cursor:pointer;border-radius:6px;overflow:hidden;min-width:0}
.gcd .pick__opt input{position:absolute;inset:0;width:100%;height:100%;opacity:0;margin:0;cursor:pointer;z-index:1}
.gcd .pick__opt img{width:100%;height:100%;object-fit:cover;display:block}
.gcd .pick__opt:has(input:checked){outline:2px solid var(--green);outline-offset:2px}
.gcd .pick__opt:has(input:focus-visible){outline:2px solid var(--ink);outline-offset:3px}
.gcd .pick__opt:not(:has(input:checked)) img{opacity:.82}
.gcd .pick__opt:hover img{opacity:1}
.gcd .who{display:flex;flex-direction:column;gap:12px}
.gcd .fields{display:flex;flex-direction:column;gap:20px;margin-top:8px}
.gcd .field{display:flex;flex-direction:column;gap:8px}
.gcd .field label{font-size:14px;font-weight:500}
.gcd .field label span{font-weight:400;color:var(--grey)}
.gcd .count{font-size:14px;color:var(--grey)}
.gcd .count.is-over{color:var(--terra)}
.gcd .errsum{border:1.5px solid var(--terra);background:var(--white);padding:14px 16px;display:flex;flex-direction:column;gap:6px}
.gcd .errsum p{font-weight:500;color:var(--terra);font-size:15px}
.gcd .errsum ul{margin:0;padding-left:18px;font-size:14px}
.gcd .errsum a{color:var(--terra)}
.gcd .cond{display:flex;flex-direction:column;gap:4px;font-size:14px;line-height:20px;color:var(--ink)}
.gcd .paywrap{display:flex;flex-direction:column;gap:10px}
.gcd .pay{font:inherit;font-size:15px;width:100%;min-height:54px;border:0;border-radius:0;background:var(--green);color:var(--white);cursor:pointer;padding:12px 16px;-webkit-appearance:none;appearance:none}
.gcd .pay:hover{background:#243A2C}
.gcd .pay[aria-busy="true"]{cursor:progress;opacity:.85}
.gcd .using{border-top:1px solid rgba(17,17,16,.16);padding-top:16px}
.gcd .using summary{cursor:pointer;padding:6px 0;font-family:var(--serif);font-size:22px;color:var(--green)}
.gcd .using div{display:flex;flex-direction:column;gap:8px;margin-top:10px;font-size:14px;line-height:20px}

@media (min-width:960px){
  .gcd{--gut:40px}
  .gcd .top{min-height:560px;align-items:flex-end;padding:0 max(var(--gut),calc((100% - 1000px) / 2)) 64px}
  .gcd .top__photo img{object-position:50% 50%}
  .gcd .top__photo::after{background:linear-gradient(to left,rgba(17,17,16,.88) 0%,rgba(17,17,16,.6) 38%,rgba(17,17,16,0) 62%)}
  .gcd .top__text{max-width:27rem}
  .gcd .top h1{font-size:58px}
  .gcd .pantry{margin:-6px 0 4px;grid-template-columns:repeat(5,1fr);gap:8px}
  .gcd .pantry img:nth-child(5){display:block}
  .gcd .choose{padding-top:44px;padding-bottom:48px}
  .gcd .choose h2,.gcd .give h2{font-size:34px}
  .gcd .tiles{grid-template-columns:repeat(4,1fr)}
  .gcd .body--amount{max-width:640px}
  /* green band on computers: the five photos across the top, the heading under them, then the choices in two
     columns matching the paper band below (dinner/amount, people, courses on the left; pairing on the right), and the
     total across the full width underneath. Nothing sticks, so nothing moves while scrolling. */
  .gcd .choose__in{display:grid;grid-template-columns:minmax(0,400px) minmax(0,1fr);column-gap:80px;row-gap:24px;align-items:start}
  .gcd .choose__in > .pantry{grid-column:1 / -1;grid-row:1;margin:0 0 8px}
  .gcd .choose__in > h2{grid-column:1 / -1;grid-row:2}
  .gcd .choose__in > fieldset{grid-column:1;grid-row:3}
  .gcd .body--dinner{display:contents}
  .gcd .body--dinner > .ctl:nth-child(1){grid-column:1;grid-row:4}
  .gcd .body--dinner > .ctl:nth-child(2){grid-column:1;grid-row:5}
  .gcd .body--dinner > .ctl:nth-child(3){grid-column:2;grid-row:3 / span 3}
  .gcd .choose__in > .body--amount{grid-column:1 / -1;grid-row:4 / span 2}
  .gcd .choose__in > .total{grid-column:1 / -1;grid-row:6;margin-top:8px}
  .gcd .choose__in > .notes{grid-column:1 / -1;grid-row:7}
  .gcd .give{padding-top:48px;padding-bottom:56px}
  /* paper band: your gift on the left (stays in view below the site header), form and payment on the right */
  .gcd .give__in{max-width:1000px;display:grid;grid-template-columns:minmax(0,400px) minmax(0,1fr);column-gap:80px;row-gap:32px;align-items:start}
  .gcd .give__in > .sum{grid-column:1;grid-row:1 / span 6;position:sticky;top:calc(var(--gc-head,64px) + 24px);border-bottom:0}
  .gcd .give__in > :not(.sum){grid-column:2}
  .gcd .give__in > .who{border-top:1px solid var(--green);padding-top:18px}
  .gcd .gcard{max-width:400px}
}
@media (prefers-reduced-motion:reduce){.gcd *{transition:none!important}}
