.shop-form {
  --shop-pad: clamp(22px, 2.4vw, 38px);
  --shop-gap: clamp(15px, 1.8vw, 28px);
  color: var(--ink, #2d241d);
  background: rgba(255, 250, 244, .62);
  border: 1px solid #f1ddc8;
  border-radius: clamp(18px, 1.6vw, 26px);
  padding: clamp(20px, 1.75vw, 28px) var(--shop-pad) clamp(22px, 2vw, 32px);
  margin: 0;
  min-width: 0;
}
.shop-form * { box-sizing: border-box; }
.shop-form [hidden] { display: none !important; }
.shop-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.shop-form fieldset + fieldset, .shop-chosen + fieldset { margin-top: var(--shop-gap); }
.shop-form legend, .shop-form h2 {
  padding: 0;
  margin: 0 0 clamp(8px, .9vw, 14px);
  font: inherit;
  font-size: clamp(20px, 1.95vw, 30px);
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: -.02em;
}
.shop-form input, .shop-form button, .shop-action {
  font: inherit;
  color: inherit;
  letter-spacing: -.015em;
}
.shop-form button, .shop-action {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.shop-amount { display: flex; align-items: center; gap: clamp(12px, 2.05vw, 32px); }
.shop-form input {
  display: block;
  background: #fffaf4;
  border: 1.5px solid #dfcbb9;
  border-radius: clamp(10px, 1vw, 16px);
  padding: .1em clamp(15px, 1.8vw, 28px);
}
.shop-number {
  flex: 1 1 41%;
  min-width: 0;
  width: 0;
  height: clamp(58px, 5.5vw, 84px);
  font-size: clamp(32px, 3.45vw, 54px) !important;
  font-weight: 800 !important;
  line-height: 1.05;
}
.shop-presets { flex: 1.45 1 59%; display: flex; gap: clamp(6px, .68vw, 11px); }
.shop-target { display: flex; gap: clamp(8px, .75vw, 12px); }
.shop-presets button, .shop-target button {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 0;
  min-height: clamp(46px, 4.35vw, 67px);
  padding: .25em .55em;
  border: 1px solid transparent;
  border-radius: clamp(10px, 1.15vw, 18px);
  background: #fbefdf;
  font-weight: 800;
  font-size: clamp(17px, 1.85vw, 28px);
  white-space: nowrap;
}
.shop-presets button { flex: 1 1 0; }
.shop-target button { min-width: clamp(122px, 13vw, 202px); }
.shop-presets button[aria-pressed="true"], .shop-target button[aria-pressed="true"] {
  color: white; background: var(--blue, #0646f5);
}
.shop-form .shop-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  max-width: 100%;
  min-width: min(100%, clamp(275px, 27.6vw, 426px));
  min-height: clamp(54px, 4.9vw, 76px);
  margin-top: clamp(20px, 2.45vw, 38px);
  padding: .35em clamp(20px, 2vw, 32px);
  border: 0;
  border-radius: clamp(12px, 1.22vw, 19px);
  background: var(--blue, #0646f5);
  color: white;
  font-size: clamp(22px, 2.22vw, 34px);
  font-weight: 900;
  text-decoration: none;
  line-height: 1.12;
}
.shop-action svg, .shop-check { width: 1.14em; height: 1.14em; fill: none; stroke: currentColor; stroke-width: 2.45; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.shop-username:not(:first-child) { margin-top: 12px; }
.shop-username input { width: min(100%, 34rem); min-height: clamp(50px, 4.35vw, 67px); font-size: clamp(18px, 1.65vw, 25px); }
.shop-form input[aria-invalid="true"] { border-color: #ad462d; }
.shop-error { margin: .5em 0 0; line-height: 1.4; font-size: 1rem; color: #903423; }
.shop-form.shop-catalog { padding: clamp(14px, 1.24vw, 19px) clamp(14px, 1.24vw, 19px) clamp(18px, 1.36vw, 21px); }
.shop-gifts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, .8vw, 13px) clamp(9px, 1.05vw, 17px); }
.shop-form .shop-gift {
  display: flex; align-items: center; text-align: left;
  gap: clamp(8px, 1.35vw, 21px);
  min-width: 0;
  min-height: clamp(56px, 4.72vw, 73px);
  padding: 4px clamp(11px, 1.95vw, 30px);
  border: 1.5px solid #f1ddc8; border-radius: clamp(13px, 1.65vw, 26px);
  background: #fdf4e8;
  font-size: clamp(18px, 2vw, 31px);
  font-weight: 900;
  line-height: 1.15;
}
.shop-gift img { width: clamp(34px, 3.6vw, 55px); height: auto; flex: none; }
.shop-gift .shop-check { color: var(--blue, #0646f5); margin-left: auto; display: none; width: .85em; min-width: 18px; }
.shop-gift[aria-pressed="true"] { border-color: var(--blue, #0646f5); box-shadow: inset 0 0 0 .6px var(--blue, #0646f5); background: #fffbf6; }
.shop-gift[aria-pressed="true"] .shop-check { display: block; }
.shop-catalog .shop-action { min-width: min(100%, clamp(290px, 31.2vw, 480px)); min-height: clamp(52px, 4.4vw, 68px); margin-top: clamp(16px, 1.55vw, 24px); }
.shop-chosen { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: clamp(24px, 2.4vw, 36px); }
.shop-chosen img { width: 56px; height: 56px; }
.shop-review dl { margin: 1rem 0; max-width: 48rem; }
.shop-review dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .75rem; padding: .7rem 0; border-bottom: 1px solid #ead7c1; }
.shop-review dd { margin: 0; font-weight: 850; overflow-wrap: anywhere; }
.shop-review dt, .shop-review p { color: var(--muted, #685240); }
.shop-review p { font-size: clamp(16px, 1.4vw, 21px); max-width: 46rem; line-height: 1.5; }
.shop-review .shop-action { margin-top: 8px; }
@media (hover: hover) and (pointer: fine) {
  .shop-presets button:not([aria-pressed=true]):hover, .shop-target button:not([aria-pressed=true]):hover, .shop-gift:not([aria-pressed=true]):hover { border-color: #aaa9cf; color:var(--blue); }
}
@media (max-width: 1100px) {
  .shop-form .shop-gift { padding-inline: 10px; gap: 7px; }
  .shop-gift .shop-check { width: .76em; min-width: 13px; }
}
@media (min-width: 801px) and (max-width: 950px) {
  .shop-form .shop-gift { font-size: 16px; }
  .shop-gift img { width: 27px; }
}
@media (max-width: 800px) {
  .shop-form { padding: 18px; }
  .shop-amount { flex-wrap: wrap; gap: 9px; }
  .shop-number { flex-basis: 100%; width: 100%; }
  .shop-presets { flex-basis: 100%; }
  .shop-form .shop-action { width: 100%; }
  .shop-target button { flex: 1; min-width: 0; }
  .shop-gifts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-gift img { width: 35px; }
  .shop-form .shop-gift { min-height: 52px; font-size: clamp(16px, 2.9vw, 21px); }
}
@media (max-width: 460px) {
  .shop-form { padding: 15px; }
  .shop-presets button { font-size: clamp(14px, 4vw, 17px); padding-inline: .2em; }
  .shop-form.shop-catalog { padding: 10px; }
  .shop-gifts { gap: 6px; }
  .shop-form .shop-gift { padding-inline: 6px; gap: 4px; }
  .shop-gift img { width: 27px; }
  .shop-gift[aria-pressed="true"] .shop-check { width: 12px; min-width: 12px; }
  .shop-form .shop-action { min-width: 0; }
}
@media (max-width: 359px) {
  .shop-form .shop-gift { font-size: .88rem; }
  .shop-gift img { width: 23px; }
}

body:has(.shop-catalog) #hero { display:none; }
.shop-form.shop-catalog {
  display:grid; grid-template-columns:minmax(0,1.08fr) minmax(0,1fr); align-items:start;
  gap:clamp(18px,2vw,32px); padding:0; background:transparent; border:0;
}
.gift-list { min-width:0; }
.gift-list header { padding:.75rem .2rem 1.4rem; }
.gift-list header h2 { font-size:clamp(26px,2.7vw,44px); line-height:1.08; letter-spacing:-.035em; margin:0; }
.gift-list header p { color:var(--muted); margin:.4rem 0 0; font-size:1.2rem; font-weight:650; }
.shop-catalog .shop-gifts { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.62rem; }
.shop-catalog .shop-gift {
  gap:.6rem; padding:.55rem .75rem; min-height:3.55rem; border-radius:1.1rem;
  font-size:clamp(15px,1.42vw,23px); letter-spacing:-.019em;
}
.shop-catalog .shop-gift img { width:2.3rem; height:2.3rem; object-fit:contain; }
.shop-catalog .shop-gift .shop-check { min-width:0; width:.82em; }
.gift-detail {
  overflow:hidden; display:grid; grid-template-columns:minmax(0,1fr); align-content:start;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
}
.gift-portrait { width:100%; aspect-ratio:1.63; overflow:hidden; background:#f5e2cb; }
.gift-info { display:flex; gap:.75rem; align-items:baseline; justify-content:space-between; flex-wrap:wrap; padding:1.35rem 1.45rem .9rem;}
.gift-info h3 { margin:0; font-weight:950; letter-spacing:-.035em; font-size:2.2rem; line-height:1.1; }
.gift-price { font-size:1.28rem; font-weight:800; color:var(--muted); }
.gift-retry { padding:0; background:none; border:0; color:var(--blue) !important; text-decoration:underline; }
.shop-catalog .gift-detail .shop-action {
  min-width:0; width:auto; margin:0 1.4rem 1.4rem; min-height:3.35rem;
  padding:.6rem .75rem; border-radius:.9rem; font-size:1.45rem;
}
.shop-catalog .shop-action:disabled { background:#e3d7ca; color:#625348; cursor:default; }
.draft-status:not(:empty) { margin:.7rem 0; color:var(--muted); }
@media(max-width:800px){
  .shop-form.shop-catalog { display:block; }
  .gift-list header { padding:.35rem .25rem .85rem; }
  .gift-list header h2 { font-size:1.55rem; }
  .gift-list header p { font-size:.98rem; }
  .shop-catalog .shop-gifts { gap:.4rem; }
  .shop-catalog .shop-gift { min-height:44px; padding:.4rem .5rem; font-size:1rem; }
  .shop-catalog .shop-gift img { width:1.75rem; height:1.75rem; }
  .gift-detail { grid-column:1/-1; grid-template-columns:minmax(0,38%) minmax(0,1fr); gap:0; min-height:8rem; scroll-margin-block-end:calc(4.5rem + env(safe-area-inset-bottom)); }
  .gift-portrait { grid-row:1/3; height:100%; aspect-ratio:auto; min-height:8rem; }
  .gift-info { align-self:end; display:block; padding:.65rem .8rem .45rem; }
  .gift-info h3 { font-size:1.32rem; }
  .gift-price { font-size:.97rem; margin-top:.1rem; }
  .shop-catalog .gift-detail .shop-action { margin:0 .7rem .7rem; min-height:2.65rem; font-size:.96rem; padding:.45rem .3rem; gap:.15em; }
}
.shop-range,.shop-options summary,.shop-resume {font-size:.94rem;}
.shop-range {margin:0 0 8px;color:#725d49;}
.shop-options {margin:12px 0 18px;}
.shop-options summary {cursor:pointer;font-weight:700;}
.shop-options details>label {display:flex;align-items:center;gap:9px;font-weight:650;margin-top:12px;}
.shop-options input[type=checkbox] {width:19px;height:19px;margin:0;accent-color:#1649f5;}
.shop-options input[type=text] {display:block;margin-top:10px;max-width:100%;padding:9px 13px;border:1px solid #dfc5ae;border-radius:12px;background:#fffaf4;}
.shop-form .shop-native,.shop-form .shop-native-link,.shop-resume {display:inline-flex;align-items:center;margin:8px 8px 0 0;padding:8px 3px;border:none;background:transparent;color:#374e86;font:inherit;font-weight:700;cursor:pointer;text-decoration:underline;text-underline-offset:3px;}
.shop-form [hidden] {display:none!important;}
.shop-resume {display:block;margin:0 0 13px;}
.shop-address-book {display:flex;gap:5px;flex-wrap:wrap;margin:8px 0 0;}
.shop-address-book button {background:transparent;border:1px solid #dbc4ad;border-radius:12px;color:#503c2b;padding:5px 8px;cursor:pointer;}
.shop-username:has(.shop-address-book){display:block;}

.shop-estimate{display:flex;align-items:baseline;gap:.4rem 1rem;flex-wrap:wrap;min-width:0;margin:.8rem 0 1.35rem;padding:.65rem 0 .75rem;border-bottom:1px solid #eadaca}
.shop-estimate .estimate-label{font-weight:750;color:#6e5542}
.estimate-value{position:relative;margin-left:auto;overflow:hidden;text-align:right}
.shop-estimate output{display:block;color:#725c4b;font-size:.95rem}
.estimate-outgoing{position:absolute;inset:0;pointer-events:none;white-space:nowrap}
.estimate-value:has(output.is-amount){white-space:nowrap}
.shop-estimate .is-amount{font-weight:900;font-variant-numeric:tabular-nums;letter-spacing:-.035em;font-size:clamp(23px,2.1vw,32px);color:#30241a;line-height:1.15}
.shop-estimate .estimate-retry{background:transparent;border:0;text-decoration:underline;text-underline-offset:.2em;color:#143eb4;font-size:.88rem;padding:4px 0}
#mobile-shop-session{display:none}
@media(max-width:740px){
 body:has(.product-form) .stage{padding-inline:.8rem}
 body:has(.product-form) .stage-head{display:none}
 body:has(.product-form) .mobile-head{gap:.55rem;padding:1rem 1.05rem .85rem}
 body:has(.product-form) .mobile-head .wordmark{margin-right:auto}
 body:has(.product-form) #mobile-shop-session{display:inline-flex;align-items:center;min-height:38px}
 body:has(.product-form) .mobile-support{padding:0;display:grid;place-items:center;width:40px;height:40px;border:0;background:transparent}
 body:has(.product-form) .mobile-support span{display:none}
 .shop-form.product-form{padding:.3rem .35rem 0;border:0;background:transparent}
 .product-form fieldset{position:relative}
 .product-form legend{font-size:1.14rem;margin-bottom:.65rem;max-width:100%}
 .product-form .shop-range{color:#755f4e;font-size:.84rem;margin:0 0 6px}
 .product-form .shop-number{min-height:62px;font-size:36px!important;background:#fffcf7}
 .product-form .shop-presets button,.product-form .shop-target button{min-height:44px;border-radius:11px;font-size:1rem;background:#f5e9da;color:#584330}
 .product-form .shop-presets [aria-pressed=true],.product-form .shop-target [aria-pressed=true]{border:1px solid #315be0;background:#fffaf3;color:#103dcb}
 .product-form .shop-action{min-height:52px;font-size:20px}
 .product-form .shop-estimate{margin:.28rem 0 1.15rem;padding:.62rem 0 .75rem}
}
