.commerce-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.commerce-skip {
    position: absolute;
    z-index: 1;
    top: 8px;
    left: 12px;
    padding: 8px 14px;
    background: white;
    transform: translateY(-160%);
}
.commerce-skip:focus { transform: none; }

body:is(.cart-page, .checkout-page, .account-page) { background: #f8f6f1; }
body:is(.cart-page, .checkout-page, .account-page) main.commerce-body {
    --commerce-ink: #171815;
    --commerce-text: #62645e;
    --commerce-action: #46584c;
    --commerce-summary: #eae5da;
    --commerce-line: #deddd9;
    --commerce-pad: clamp(10px, 1.8vw, 15px);
    width: 100%;
    max-width: 676px;
    min-height: 65vh;
    margin: 0 auto;
    padding: 9px 15px 48px;
    color: var(--commerce-ink);
    font: 14px/1.45 Arial, sans-serif;
}
.commerce-body .page-heading { margin: 17px 0 10px; }
body:is(.cart-page, .checkout-page, .account-page) main.commerce-body h1,
.commerce-body h2, .commerce-body h3 {
    color: inherit;
    font-family: Arial, sans-serif;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0;
}
body:is(.cart-page, .checkout-page, .account-page) main.commerce-body h1 {
    font-size: clamp(20px, 3.5vw, 23px);
    margin: 0;
}
.commerce-body :is(h2,h3,p) { margin: 0; }
.commerce-body h2 { font-size: 15px; }
.commerce-body h3 { font-size: 14px; }
.commerce-body .commerce-progress { display: block; }
.commerce-body .commerce-progress ol {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--commerce-text);
    font-size: 11px;
}
.commerce-progress li { display: flex; align-items: center; gap: 8px; }
.commerce-progress li + li::before { content: '›'; color: var(--commerce-text); font-size: 14px; }
.commerce-progress a { color: var(--commerce-action); }
.commerce-progress [aria-current] { color: var(--commerce-ink); font-weight: 700; }
.commerce-back { display: inline-block; margin-bottom: 6px; color: var(--commerce-action); font-size: 12px; }
.commerce-body :is(a,button,input,summary):focus-visible {
    outline: 2px solid var(--commerce-action);
    outline-offset: 3px;
}
body:is(.cart-page, .checkout-page) .commerce-body .commerce-layout,
.commerce-body .account-forms {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}
.commerce-body .panel,
.commerce-body .bag-list, .commerce-body .notice, .commerce-body .empty-state {
    background: #fff;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
}
.commerce-body .notice, .commerce-body .empty-state {
    padding: var(--commerce-pad);
    margin-bottom: 12px;
}
.commerce-body .notice { border-left: 3px solid var(--commerce-action); }
.commerce-body .notice.error { border-left-color: #9f503c; color: #742d20; }
.commerce-body .empty-state .button { margin-top: 12px; }
.commerce-body .bag-list { padding: 0 var(--commerce-pad); min-width: 0; }
.bag-list-heading, .commerce-body .section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 12px;
    border-bottom: 1px solid var(--commerce-line);
}
.bag-list-heading { padding: 14px 0 11px; }
.bag-list-heading span, .commerce-body .section-heading span { font-size: 12px; color: var(--commerce-text); }
.commerce-body .bag-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px 12px;
    padding: 13px 0;
    margin: 0;
}
.bag-item + .bag-item { border-top: 1px solid var(--commerce-line); }
.commerce-preview {
    display: grid;
    aspect-ratio: 1;
    place-items: center;
    overflow: hidden;
    border-radius: 7px;
    background: var(--commerce-summary);
    color: var(--commerce-text);
    font: 25px/1 Georgia, serif;
}
.commerce-preview:hover { text-decoration: none; }
.commerce-body .commerce-preview img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.bag-item-info, .checkout-item-name { min-width: 0; overflow-wrap: anywhere; }
.bag-item-info .item-price { color: var(--commerce-text); margin: 3px 0; }
.bag-item-info details { margin-top: 5px; font-size: 12px; }
.bag-item-info details p { margin: 4px 0; }
.commerce-body summary { cursor: pointer; color: var(--commerce-action); }
body:not(.admin-page) .commerce-body .quiet-action {
    display: inline-block;
    min-height: auto;
    padding: 3px 0;
    background: transparent;
    border: 0;
    color: var(--commerce-text);
    font: 400 12px/1.5 Arial, sans-serif;
    text-decoration: underline;
    text-underline-offset: .22em;
}
body:not(.admin-page) .commerce-body .quiet-action:hover { background: transparent; color: var(--commerce-ink); }
body:is(.cart-page, .checkout-page) .commerce-body .order-summary {
    background: var(--commerce-summary);
    padding: var(--commerce-pad);
    border: 0;
    border-radius: 8px;
    position: static;
    grid-area: auto;
}
.commerce-body .order-summary h2 { border: 0; padding: 0; margin: 0 0 11px; }
.commerce-body .summary-total {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    border-top: 1px solid #d3ccbf;
    margin-top: 13px;
    padding-top: 13px;
}
.summary-total strong { font-size: 16px; }
body:not(.admin-page) .commerce-body :is(button,.button):not(.quiet-action) {
    display: block;
    width: 100%;
    min-height: 42px;
    padding: 11px 14px;
    color: white;
    background: var(--commerce-action);
    border: 0;
    border-radius: 6px;
    font: 600 13px/1.35 Arial, sans-serif;
    text-align: center;
}
body:not(.admin-page) .commerce-body :is(button,.button):not(.quiet-action):hover { background: #344438; }
.commerce-body .order-summary :is(.button,.checkout-submit) { margin-top: 12px; }
.commerce-body .checkout-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: start;
    gap: 9px;
    border: 0;
    padding: 9px 0;
}
.checkout-item + .checkout-item { border-top: 1px solid #d3ccbf; }
.commerce-body .checkout-item:first-of-type { padding-top: 0; }
.commerce-body .checkout-item:last-of-type { padding-bottom: 0; }
.commerce-body .checkout-item .commerce-preview img { width: 100%; height: 100%; }
.checkout-item-name strong { font-weight: 600; }
.checkout-item-name p { color: var(--commerce-text); font-size: 12px; margin-top: 3px; }
.checkout-item-price { white-space: nowrap; font-size: 13px; }
.commerce-body .checkout-layout .checkout-form,
.commerce-body .account-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 11px;
}
body.checkout-page .commerce-body .checkout-layout .checkout-form,
body.account-page .commerce-body .account-form {
    padding: var(--commerce-pad);
    margin: 0;
    max-width: none;
    grid-area: auto;
    border-radius: 8px;
    box-shadow: none;
}
.commerce-body .field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 10px;
}
.commerce-body .wide-field { grid-column: 1/-1; }
.commerce-body .field-grid > label:not(.wide-field) { grid-column: auto; }
.commerce-body :is(.field-grid,.account-form) label { margin: 0; min-width: 0; color: var(--commerce-text); font-size: 12px; font-weight: 400; }
body:is(.checkout-page, .account-page) .commerce-body :is(.field-grid,.account-form) label input:not([type=radio]) {
    display: block;
    width: 100%;
    margin-top: 4px;
    border: 1px solid var(--commerce-line);
    border-radius: 5px;
    background: #fff;
    color: var(--commerce-ink);
    min-height: 31px;
    padding: 5px 9px;
    font-size: 14px;
}
.commerce-body .document-choice { display: flex; flex-wrap: wrap; gap: 8px 15px; padding: 0; margin: 0; border: 0; }
.commerce-body .document-choice label { display: inline-flex; gap: 7px; align-items: center; color: var(--commerce-ink); font-size: 13px; }
.commerce-body .document-choice input[type=radio] {
    position: static;
    width: 16px;
    height: 16px;
    min-height: 0;
    margin: 0;
    accent-color: var(--commerce-ink);
}
.commerce-body .document-choice span { border: 0; padding: 0; }
.commerce-body .document-choice input:checked + span { background: transparent; }
.commerce-body .payment-note { color: var(--commerce-text); text-align: center; margin-top: 9px; font-size: 12px; }
.commerce-body .account-heading { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }
.commerce-body .product-note { font-size: 12px; color: var(--commerce-text); }
.commerce-body .section-heading { padding-bottom: 9px; margin-bottom: 12px; }
.commerce-body .order-list { display: grid; gap: 10px; }
body.account-page .commerce-body .order-row {
    display: block;
    max-width: none;
    padding: var(--commerce-pad);
    margin: 0;
    border-radius: 8px;
    box-shadow: none;
}
.commerce-body .order-header {
    display: grid;
    grid-template-columns: minmax(58px, 1fr) auto auto;
    align-items: center;
    gap: 6px 10px;
}
.order-reference time { display: block; font-size: 12px; color: var(--commerce-text); }
.commerce-body .order-status { font-size: 11px; background: var(--commerce-summary); color: var(--commerce-action); text-align: center; }
.commerce-body .order-status-fulfilled { background: #e9eee7; }
.commerce-body .order-price { text-align: right; white-space: nowrap; }
.commerce-body .order-row details { border-top: 1px solid var(--commerce-line); margin-top: 10px; padding-top: 8px; }
.commerce-body .download-list { margin-top: 10px; }
.commerce-body .download-list ul { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; padding: 0; margin: 7px 0 0; }
.download-list a { display: block; background: var(--commerce-summary); color: var(--commerce-action); padding: 6px 9px; border-radius: 5px; overflow-wrap: anywhere; }

@media (max-width: 480px) {
    body:is(.checkout-page, .account-page) .commerce-body :is(.field-grid,.account-form) label input:not([type=radio]) { min-height: 40px; font-size: 16px; }
}
@media (max-width: 355px) {
    .commerce-body .bag-item { grid-template-columns: 48px minmax(0, 1fr); }
    .commerce-body .bag-item .quiet-action { grid-column: 2; justify-self: start; }
    .commerce-body .order-header { grid-template-columns: minmax(0,1fr) auto; }
    .commerce-body .order-status { grid-column: 1/-1; grid-row: 2; justify-self: start; }
}
