/* AnotherV · cart page, on top of room.css.
   A payment surface: the panels are more opaque than the glass elsewhere (design rule: payment and
   long-reading surfaces stay legible).  Prices in the plain body sans (Vivi: a serif price looks
   expensive).  Panels 24, inner tiles 16, anything you press is a pill. */

.cart-head { padding-bottom: 12px; }
.cart-grid { display: grid; gap: 14px; align-items: start; }
.solid { isolation: isolate; }
.solid::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; background: rgb(250 247 241 / 0.62); }

/* the item */
.item { padding: 10px; display: grid; gap: 16px; }
.item-row { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; }
.item-thumb { width: 76px; height: 76px; border-radius: var(--r-tile); object-fit: cover; background: #CFCAC1; }
.item-name { margin: 0; font-family: var(--f-display); font-weight: 300; font-size: 26px; line-height: 1.05; }
.item-sub { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-2); }
.price { font-family: var(--f-body); font-weight: 400; font-size: 20px; line-height: 1; letter-spacing: -0.01em; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.remove { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: var(--r-pill); cursor: pointer;
          background: transparent; color: var(--ink-2); font-size: 17px; transition: background-color 300ms var(--ease); }
.remove:hover { background: var(--glass-inner); color: var(--ink); }
.item-side { display: grid; justify-items: end; gap: 8px; }

/* license: two tiles */
.licenses { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.licenses legend { padding: 0; margin: 0 0 8px 4px; }
.lic { position: relative; display: grid; gap: 6px; padding: 14px 14px 13px; border-radius: var(--r-inner); cursor: pointer;
       background: var(--glass-inner); box-shadow: var(--glass-inner-shadow); transition: box-shadow 300ms var(--ease), background-color 300ms var(--ease); }
.lic input { position: absolute; opacity: 0; pointer-events: none; }
.lic-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lic-name { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-forma); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.lic-name i { font-size: 16px; }
.lic-note { font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.lic .tick { width: 18px; height: 18px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px rgb(42 33 27 / 0.35); display: grid; place-items: center; flex: none; }
.lic .tick::after { content: ""; width: 8px; height: 8px; border-radius: var(--r-pill); background: transparent; transition: background-color 200ms var(--ease); }
.lic:has(input:checked) { background: var(--cream); box-shadow: 0 2px 4.7px rgb(0 0 0 / 0.14), inset 0 0 0 1px rgb(42 33 27 / 0.55); }
.lic:has(input:checked) .tick::after { background: var(--pill-dark); }
.lic:has(input:focus-visible) { outline: 1.5px solid rgb(42 33 27 / 0.7); outline-offset: 3px; }

/* what you get */
.gets { margin: 0; padding: 4px 4px 0; list-style: none; display: grid; gap: 10px; }
.gets li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; font-size: 14px; line-height: 1.45; }
.gets i { width: 30px; height: 30px; display: grid; place-items: center; font-size: 16px; border-radius: var(--r-pill);
          background: var(--glass-inner); box-shadow: var(--glass-inner-shadow); }
.hint { display: grid; grid-template-columns: 20px 1fr; gap: 10px; margin: 0; padding: 12px 14px; border-radius: var(--r-inner);
        font-size: 13px; line-height: 1.45; color: var(--ink-2); box-shadow: inset 0 0 0 0.5px rgb(42 33 27 / 0.25); }
.hint i { font-size: 17px; color: var(--ink); line-height: 1.2; }

/* pay */
.pay { padding: 20px 18px 18px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--f-forma); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); padding-left: 4px; }
.field input { height: 46px; padding: 0 18px; border: 0; border-radius: var(--r-pill); font-size: 15px; background: rgb(255 255 255 / 0.7);
               box-shadow: inset 0 0 0 0.5px rgb(42 33 27 / 0.35); }
.field input:focus { outline: none; box-shadow: inset 0 0 0 1.5px rgb(42 33 27 / 0.7); }
.field input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px #A3452F; }
.field .help { font-size: 12.5px; color: var(--ink-2); padding-left: 4px; }
.field .error { font-size: 12.5px; color: #8E3A27; padding-left: 4px; }
.field .error:empty { display: none; }
.sum { display: grid; gap: 8px; margin: 0; padding: 14px 4px 0; border-top: 0.5px solid rgb(42 33 27 / 0.25); }
.sum div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; }
.sum .muted { color: var(--ink-2); font-size: 13px; }
.sum .total { padding-top: 6px; font-size: 15px; }
.sum .total .price { font-size: 24px; }
.pay .btn { height: 48px; font-size: 13px; }
.pay .status-line:empty { display: none; }
.pay .status-line { margin: 0; }
.fine { margin: 0; font-size: 12px; line-height: 1.5; color: var(--ink-2); text-align: center; }
.fine a { text-decoration: underline; text-decoration-thickness: 0.5px; text-underline-offset: 0.25em; }
.lock { display: inline-flex; align-items: center; gap: 6px; justify-content: center; font-size: 12px; color: var(--ink-2); }

/* empty cart */
.empty { padding: 34px 22px; display: grid; justify-items: center; gap: 14px; text-align: center; }
.empty i.big { font-size: 34px; color: var(--ink-2); }
.empty .hand { max-width: none; }
.text-btn { background: none; border: 0; padding: 0; cursor: pointer; font-size: 13px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 900px) {
  .cart-grid { grid-template-columns: 7fr 5fr; gap: 28px; }
  .pay { position: sticky; top: 76px; }
}
.cart-head .rule { bottom: 34px; }
