.commerce-page { max-width: 82rem; }
[data-admin-link][hidden], [data-customer-only][hidden],
[data-account-auth][hidden], [data-account-profile][hidden],
.account-popover > [hidden] { display: none !important; }
html[data-account-role=pending] #home { visibility: hidden; }
html[data-account-role=admin] .storefront-cart,
html[data-account-role=admin] .storefront-social,
html[data-account-role=admin] #storefront-main,
html[data-account-role=admin] #storefront-checkout,
html[data-account-role=admin] #storefront-orders,
html[data-account-role=admin] #storefront-account,
html[data-account-role=admin] #storefront-info,
html[data-account-role=admin] #storefront-privacy,
html[data-account-role=admin] #storefront-offer { display: none !important; }
.storefront[data-commerce-page=checkout] > .storefront-title img { height: 7rem; }
.storefront[data-commerce-page=admin] > .storefront-title, .storefront[data-commerce-page=orders] > .storefront-title { display: none; }
.commerce-page { padding-top: 2.5rem; }
.commerce-page[hidden], .commerce-page [hidden], #storefront-orders [hidden] { display: none !important; }
.commerce-page h1 { margin-bottom: 2.5rem; }
.commerce-page h2 { margin: 0 0 .5rem; font-size: 1.4rem; letter-spacing: -.035em; line-height: 1.25; }
.commerce-page h3, .customer-order-list h3 { margin: 0; font-size: 1.15rem; }
.commerce-page p, .customer-order-list p { line-height: 1.55; }
.commerce-back { display: inline-block; margin-bottom: 1.75rem; color: inherit; font-size: .95rem; text-underline-offset: .25em; }
.commerce-eyebrow { margin: 0 0 .7rem; font-size: .875rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(20rem, .85fr); align-items: start; gap: clamp(1.25rem, 3vw, 3rem); }
.checkout-fields { display: grid; gap: 1.25rem; }
.commerce-card { border: 1px solid #21284224; border-radius: 1rem; background: #fff; padding: clamp(1.25rem, 2.6vw, 2rem); }
.commerce-section-heading { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.75rem; }
.commerce-section-heading p { margin: 0; color: #596078; font-size: .95rem; }
.checkout-name-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.commerce-field { display: flex; flex-direction: column; gap: .55rem; font-size: .95rem; font-weight: 600; margin: 0 0 1.15rem; }
.commerce-field:last-child { margin-bottom: 0; }
.commerce-field input, .commerce-field textarea, .admin-search input, .admin-order select { width: 100%; min-height: 3.1rem; box-sizing: border-box; padding: .8rem .9rem; border: 1px solid #9296a6; border-radius: .45rem; color: #212842; background: #fff; font: 400 1rem/1.4 Manrope, Arial, sans-serif; }
.commerce-field textarea { resize: vertical; }
.commerce-field input::placeholder, .commerce-field textarea::placeholder, .admin-search input::placeholder { color: #6a6f80; opacity: 1; }
.commerce-page :focus-visible, .customer-order-list :focus-visible { outline: 2px solid #212842; outline-offset: 3px; }
.commerce-field input[aria-invalid=true], .commerce-field textarea[aria-invalid=true] { border-color: #b33240; }
.commerce-help { display: block; margin: 0; color: #596078; font-size: .875rem; font-weight: 400; line-height: 1.55; }
.commerce-field-error { color: #a52b36; font-size: .875rem; font-weight: 500; line-height: 1.4; }
.commerce-field-error:empty { display: none; }
.checkout-summary { position: sticky; top: 6rem; background: #f7f3eb; }
.checkout-summary > h2 { margin-bottom: 1.5rem; }
.checkout-item { padding: 1.25rem 0; border-bottom: 1px solid #21284224; }
.checkout-item:first-child { padding-top: 0; }
.checkout-item-title { display: flex; justify-content: space-between; align-items: start; gap: 1rem; font-size: 1rem; }
.checkout-item-title strong { font-weight: 650; }
.checkout-item-title span { white-space: nowrap; }
.checkout-item .commerce-field { margin-top: 1rem; margin-bottom: 0; }
.checkout-item-controls { display: flex; align-items: center; gap: .8rem; margin-top: .75rem; }
.checkout-item-controls button { width: 2.5rem; height: 2.5rem; background: #fff; border: 1px solid #9296a6; border-radius: .4rem; color: #212842; font-size: 1.2rem; cursor: pointer; }
.checkout-item-controls output { min-width: 1.5rem; text-align: center; }
.checkout-totals { margin: 1.5rem 0; }
.checkout-totals > div { display: flex; justify-content: space-between; gap: 1rem; margin: .8rem 0; }
.checkout-totals dd { margin: 0; white-space: nowrap; }
.checkout-totals .checkout-total { padding-top: 1.1rem; border-top: 1px solid #21284224; font-size: 1.4rem; font-weight: 700; }
.commerce-primary, .commerce-secondary, .checkout-cart-link { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: .8rem 1.25rem; border: 1px solid #212842; border-radius: .4rem; font: 600 .95rem/1.3 Manrope, Arial, sans-serif; text-decoration: none; text-align: center; cursor: pointer; }
.commerce-primary, .checkout-cart-link { background: #212842; color: #fff; }
.commerce-primary:hover, .checkout-cart-link:hover { background: #343e60; }
.commerce-secondary { background: #fff; color: #212842; }
.commerce-secondary:hover { background: #f0e7d5; }
.commerce-page button:disabled { cursor: default; opacity: .55; }
.checkout-cart-link, .checkout-summary > .commerce-primary { width: 100%; box-sizing: border-box; }
.commerce-notice { padding: .85rem 1rem; border-radius: .45rem; background: #e8e3d9; color: #3a4053; font-size: .875rem; }
.commerce-legal { font-size: .875rem; color: #596078; margin-bottom: 0; }
.commerce-legal a, .commerce-page a:not(.commerce-primary), .customer-order-list a { color: inherit; text-underline-offset: .2em; }
.commerce-status { margin: 1rem 0 0; color: #93402f; font-size: .95rem; }
.commerce-status:empty { display: none; }
.commerce-empty { padding: 3rem 1.5rem; background: #f7f3eb; border: 1px solid #21284224; border-radius: 1rem; text-align: center; }
.commerce-empty p { max-width: 32rem; margin: 1rem auto 1.5rem; color: #596078; }
.checkout-confirmation { max-width: 46rem; }
.checkout-confirmation h2 { font-size: 1.8rem; margin-top: 1rem; }
.order-badge { display: inline-flex; border-radius: 2rem; padding: .35rem .75rem; background: #efe4c8; color: #654f21; font-size: .875rem; font-weight: 600; }
.order-badge[data-payment=paid] { background: #e0ede4; color: #265f3b; }
.order-badge[data-state=closed] { background: #ececf0; color: #53596c; }
.confirmation-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.admin-heading h1 { margin-bottom: 1rem; }
.admin-updated { color: #596078; font-size: .875rem; margin: .5rem 0 1.5rem; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 1.5rem; }
.admin-tabs button { display: inline-flex; align-items: center; gap: .7rem; min-height: 3rem; border: 1px solid #b4b7c0; border-radius: .5rem; padding: .7rem 1rem; background: #fff; color: #212842; font: 600 .9rem/1.4 Manrope, Arial, sans-serif; cursor: pointer; }
.admin-tabs button[aria-pressed=true] { background: #212842; color: #fff; border-color: #212842; }
.admin-tabs span { min-width: 1.5rem; text-align: center; padding: .1rem .35rem; border-radius: .3rem; background: #f0e7d5; color: #212842; }
.admin-search { max-width: 42rem; margin: 0 0 1.25rem; }
.admin-search label { display: block; margin-bottom: .5rem; font-size: .95rem; font-weight: 600; }
.admin-search > div { display: flex; gap: .65rem; }
.admin-search input { min-width: 0; }
.admin-order-list { margin-top: 1.5rem; display: grid; gap: 1rem; }
.admin-order header, .customer-order header { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: 1.25rem; }
.order-date { color: #596078; font-size: .875rem; margin: .5rem 0 0; }
.order-recipient { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2rem; margin: 0; }
.order-recipient > div:last-child { grid-column: 1 / -1; }
.order-recipient dt { color: #596078; font-size: .875rem; margin-bottom: .3rem; }
.order-recipient dd { margin: 0; font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; }
.order-lines { list-style: none; padding: 0; margin: 1.5rem 0; }
.order-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-top: 1px solid #21284224; line-height: 1.5; font-size: .95rem; }
.order-lines small { display: block; color: #596078; font-size: .875rem; }
.order-lines li > strong { flex-shrink: 0; }
.order-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border-top: 1px solid #21284224; padding-top: 1rem; }
.order-footer > strong { font-size: 1.25rem; }
.admin-order-actions { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.admin-payment-check { display: flex; align-items: center; gap: .5rem; max-width: 17rem; font-size: .875rem; line-height: 1.4; }
.admin-payment-check input { width: 1.15rem; height: 1.15rem; accent-color: #212842; flex: 0 0 auto; }
.admin-order-actions select { width: auto; padding-right: 2.25rem; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3 5 4 4 4-4' fill='none' stroke='%23212842' stroke-width='1.5'/%3E%3C/svg%3E"); background-position: right .85rem center; background-repeat: no-repeat; }
.admin-pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1.5rem; font-size: .875rem; }
.customer-order-list { display: grid; gap: 1.25rem; font-family: Manrope, Arial, sans-serif; }
#storefront-orders { max-width: 65rem; }
.commerce-inline-link { display: inline-block; margin: 1rem 0; color: inherit; }
@media (max-width: 800px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
  .checkout-page { max-width: 48rem; }
}
@media (max-width: 480px) {
  .checkout-name-grid { grid-template-columns: 1fr; gap: 0; }
  .admin-heading { align-items: start; }
  .admin-heading > button { padding-inline: .8rem; }
  .admin-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
  .admin-tabs button { justify-content: space-between; padding: .65rem; font-size: .875rem; }
  .order-recipient { grid-template-columns: 1fr; }
  .admin-order header, .customer-order header { flex-direction: column; }
  .admin-pagination { flex-wrap: wrap; gap: .75rem; }
  .admin-order-actions, .admin-order-actions select, .admin-order-actions button { width: 100%; }
  .admin-search > div { gap: .4rem; }
  .admin-search button { padding-inline: .8rem; }
}

/* Explicit, unselected privacy choices before recipient data. */
.checkout-privacy { margin: 0 0 24px; }
.checkout-privacy h2 { margin-top: 0; }
.checkout-privacy p { max-width: 76ch; line-height: 1.7; }
.checkout-privacy a { color: inherit; text-underline-offset: 3px; }
.checkout-privacy-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.checkout-privacy-actions .commerce-secondary { white-space: normal; text-align: center; }
.checkout-privacy-actions button[aria-pressed="true"] { background: #212842; color: #f0e7d5; border-color: #212842; }
.checkout-contract-choice { margin-top: 16px; padding: 16px; background: #f5f4f0; border-left: 2px solid #212842; }
fieldset.checkout-fields { min-width: 0; padding: 0; margin: 0; border: 0; }
.checkout-fields:disabled input, .checkout-fields:disabled textarea { background: #f4f4f5; }
@media (max-width: 480px) {
  .checkout-privacy-actions > * { max-width: 100%; }
  .checkout-privacy-actions [data-privacy-continue] { width: 100%; }
}

.checkout-privacy p > a { display: inline-block; max-width: 100%; }
.checkout-privacy [data-privacy-status] { color: #212842b8; font-size: 14px; }

@media (max-width: 1050px) {
  .checkout-layout { grid-template-columns: minmax(0, 1fr); }
  .checkout-summary { position: static; }
  .commerce-page { padding-inline: clamp(16px, 4vw, 32px); }
  .commerce-card, .order-summary-lines li > div { min-width: 0; }
  .order-summary-lines li { flex-wrap: wrap; }
}
@media (pointer: coarse) {
  .commerce-field input, .commerce-field textarea, .admin-search input, .admin-order select { font-size: max(16px, 1rem); }
  .commerce-back { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (max-width: 359px) {
  .commerce-card { padding: 16px; }
  .admin-search > div { flex-wrap: wrap; }
  .admin-search button { width: 100%; }
}
