/* Shared interface. The printable artwork keeps its own styling. */
@media screen {
  :root, .amg {
    color-scheme:light;
    --paper:#f4f4f7; --surface:white; --ink:#222126; --muted:#5e5d66;
    --line:#e2e2e8; --line-strong:#97969e;
    --wine:#681e38; --wine-dark:#481329; --focus:#245fc2;
    --amg-paper:var(--paper); --amg-surface:var(--surface); --amg-ink:var(--ink);
    --amg-line:var(--line); --amg-muted:var(--muted); --amg-wine:var(--wine); --amg-focus:var(--focus);
    --amg-sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
    --lift:0 2px 5px #17102304,0 10px 32px #20142f06;
  }
  html body, body .amg {background:var(--paper); color:var(--ink); font-family:var(--amg-sans); -webkit-text-size-adjust:100%}
  body>header {min-height:62px; padding-block:8px; border:0}
  body>header strong {font:800 1rem var(--amg-sans);letter-spacing:.15em}
  body>header a {text-decoration:none;display:inline-flex;align-items:center;min-height:44px;gap:8px}
  body>header a::after {content:"";width:6px;height:6px;border:solid currentColor;border-width:2px 2px 0 0;transform:rotate(45deg)}
  body>main {padding-top:2px;padding-bottom:max(30px,env(safe-area-inset-bottom))}
  body .amg {margin-block:0}
  .gift-intro,.amg__hero {padding:clamp(18px,3vw,34px);background:white;color:var(--ink);border-radius:24px;box-shadow:var(--lift)}
  .gift-intro {margin:0 0 12px;gap:16px}
  .gift-intro h1,.amg h1 {font-family:var(--amg-sans);font-weight:750;color:var(--wine-dark);font-size:clamp(2rem,4.5vw,3.5rem);letter-spacing:-.047em;text-wrap:balance;line-height:1.07}
  .gift-intro p,.amg .amg__intro {color:var(--muted);font-size:1rem;line-height:1.4}
  .gift-intro .hero-photo {border-radius:16px}
  .gift-paths {max-width:none;background:#e8e8ee;padding:4px;gap:4px;border-radius:18px}
  .gift-paths a {font-size:.94rem;min-height:46px;border-radius:14px;border:0;box-shadow:0 1px 3px #14101c15}
  h2,.amg h2 {font-weight:730;font-size:clamp(1.34rem,3vw,1.95rem);letter-spacing:-.03em;text-wrap:balance;line-height:1.17}
  .section,.summary,.option-panel,.option-panel[open],.amg .amg__choose,.amg .amg__use {
    background:white;border:1px solid var(--line);border-radius:22px;box-shadow:var(--lift)
  }
  .options {gap:12px}
  .option-panel {padding-inline:clamp(14px,2.2vw,24px)}
  .option-panel>summary {display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:58px;list-style:none;letter-spacing:-.02em}
  .option-panel>summary::-webkit-details-marker {display:none}
  .option-panel>summary::after {content:"";flex:none;width:8px;height:8px;margin-right:5px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg)}
  .option-panel[open]>summary::after {transform:rotate(225deg)}
  .ideas {padding-block:18px}
  #budget-choices {padding:4px;background:#efeff3;border-radius:16px;gap:3px}
  #budget-choices button {min-height:44px;border:0;border-radius:12px;background:transparent;color:var(--ink);font-weight:600;white-space:nowrap}
  #budget-choices button:is(.active,[aria-pressed=true]) {background:white;color:var(--wine);box-shadow:0 1px 4px #14101c25}
  .idea {background:#f9f9fb;border-radius:17px}
  .idea-number {background:white;border:1px solid var(--line)}
  .idea button.idea-action,.idea a.idea-action,.section button,.amg .amg__button {border-radius:15px;min-height:48px}
  button,select,input,textarea {font-family:var(--amg-sans)}
  .card {border-radius:18px;background:white;box-shadow:var(--lift)}
  .filters button,.summary button,.card .caption button,#more {border-radius:13px;min-height:44px}
  .filters button {border-radius:24px}
  #more {width:100%}
  .section .recipient-block,#rate:not(:empty),.recipient-review,.amg .amg__preview,.gift-credit {
    background:var(--paper);border:1px solid var(--line);border-radius:16px
  }
  #rate:not(:empty),.section [role=status] {color:var(--wine-dark)}
  .fields select,.fields input,.amg .gift-field :is(textarea,input[type=text]),#gift-budget {min-height:48px;border-radius:12px;min-width:0;font-size:max(1rem,16px)}
  .section .receipt-line {font-variant-numeric:tabular-nums}
  #demoCart,#paybutton,#payment .flow-primary {width:100%;min-height:54px;border-radius:16px}
  .amg .amg__option span {border-radius:15px}
  .amg__option input:not(:checked)+span {background:#f7f7fa;border-color:#d4d4dd}
  .amg__checkout,.gallery {border-radius:24px;box-shadow:0 25px 80px #21152735}
  .amg__checkout::backdrop,.gallery::backdrop {background:#15132166;backdrop-filter:blur(5px)}
  #jump[hidden] {display:none}
}
@media screen and (max-width:670px) {
  body .amg {padding:14px 12px max(30px,env(safe-area-inset-bottom))}
  .amg .amg__choose {padding:20px 16px}
  .gift-intro {padding:16px;gap:12px}
  .gift-intro h1 {font-size:clamp(1.55rem,6.8vw,2.2rem)}
  .gift-intro p {font-size:.93rem}
  #jump.shortcut {position:sticky;inset:auto;top:max(6px,env(safe-area-inset-top));margin:0 0 12px;width:100%;max-width:none;min-height:48px;border-radius:15px;box-shadow:0 5px 16px #26122129}
  #products button,#more {scroll-margin-top:80px}
  #methods {display:grid;grid-template-columns:minmax(0,1fr)}
  #methods button {min-width:0;height:auto;white-space:normal;overflow-wrap:anywhere;text-wrap:balance}
}
@media screen and (max-width:360px) {
  #budget-choices {flex-wrap:wrap}
  #budget-choices button {font-size:.86rem}
  .idea-title {grid-template-columns:auto 1fr}
  .idea-title strong {grid-column:2}
}
@media (prefers-reduced-motion:reduce) {
  html {scroll-behavior:auto!important}
}

/* Mark the chosen gift value with the same tick used for the Christmas budget. */
.amg__option input[name="valore"]:not(#gift-custom):checked + span::before {
  content:"";width:.52em;height:.3em;flex-shrink:0;margin:-.2em .32em 0 0;
  border:solid currentColor;border-width:0 0 2px 2px;transform:rotate(-45deg);
}
#gift-custom:not(:checked) + span {background:white;color:#681e38}
