:root {
    --shop-blue: #045796;
    --shop-blue-dark: #034a80;
    --shop-red: #f20d13;
    --shop-ink: #20242a;
    --shop-muted: #68727d;
    --shop-bg: #f1f1f1;
    --shop-line: #d3dce4;
    --shop-white: #fff;
    --shop-radius: 6px;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.shop-titlebar .sailing-shell { gap: 32px; }
.shop-titlebar i { width: 58px; text-align: center; font-size: 42px; }

.shop-flow {
    padding-block: 38px 72px;
    color: var(--shop-ink);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

.shop-card,
.shop-cart-card,
.shop-empty-card {
    border: 1px solid var(--shop-line);
    border-radius: var(--shop-radius);
    background: var(--shop-white);
    box-shadow: 0 4px 14px rgba(24, 48, 68, .1);
}

.shop-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px 18px;
    border-radius: var(--shop-radius);
    font-weight: 600;
}
.shop-alert--success { color: #0f6136; background: #e4f6ec; }
.shop-alert--error { color: #8c2420; background: #fff0ef; }
.shop-alert ul { margin: 5px 0 0 18px; padding: 0; font-weight: 400; }

.shop-button {
    min-height: 46px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    padding: 11px 22px;
    border: 1px solid transparent;
    border-radius: var(--shop-radius);
    cursor: pointer;
    font: 700 16px/1.2 "Trebuchet MS", Arial, sans-serif;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.shop-button:hover { transform: translateY(-1px); }
.shop-button--primary { color: #fff; background: var(--shop-blue); }
.shop-button--primary:hover { background: var(--shop-blue-dark); }
.shop-button--secondary { color: var(--shop-blue); border-color: var(--shop-blue); background: #fff; }
.shop-button--secondary:hover { color: #fff; background: var(--shop-blue); }
.shop-button--wide { width: 100%; }
.shop-text-link { color: var(--shop-blue); font-weight: 700; }
.shop-text-link:hover { text-decoration: underline; }

/* Cart */
.shop-cart-card { overflow: hidden; }
.shop-cart-list { padding: 10px 30px 0; }
.shop-cart-head,
.shop-cart-row {
    display: grid;
    grid-template-columns: minmax(340px, 1.7fr) minmax(100px, .55fr) 120px minmax(120px, .65fr) 34px;
    gap: 20px;
    align-items: center;
}
.shop-cart-head {
    padding: 18px 0 14px;
    color: var(--shop-muted);
    border-bottom: 1px solid var(--shop-line);
    font: 700 14px/1.2 "Trebuchet MS", Arial, sans-serif;
    text-transform: uppercase;
}
.shop-cart-row { padding: 24px 0; border-bottom: 1px solid var(--shop-line); }
.shop-cart-product { min-width: 0; display: flex; align-items: center; gap: 18px; }
.shop-cart-image {
    width: 118px;
    height: 88px;
    flex: 0 0 118px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: var(--shop-radius);
    color: var(--shop-blue);
    background: #e8eef3;
    font-size: 32px;
}
.shop-cart-image img { width: 100%; height: 100%; object-fit: cover; }
.shop-cart-name { display: block; color: var(--shop-blue-dark); font: 700 17px/1.35 "Trebuchet MS", Arial, sans-serif; }
.shop-cart-product small { display: block; margin-top: 5px; color: var(--shop-muted); }
.shop-cart-quantity { display: grid; grid-template-columns: 30px 54px 30px; align-items: center; transition: opacity .15s ease; }
.shop-cart-quantity.is-loading { opacity: .55; pointer-events: none; }
.shop-cart-quantity button { height: 42px; padding: 0; border: 0; color: var(--shop-blue-dark); background: transparent; cursor: pointer; font: 700 19px/1 "Trebuchet MS", Arial, sans-serif; }
.shop-cart-quantity button:hover { color: var(--shop-red); }
.shop-cart-quantity input { width: 54px; min-height: 42px; padding: 0 4px; border: 1px solid transparent; border-radius: var(--shop-radius); text-align: center; appearance: textfield; }
.shop-cart-quantity input:focus { border-color: var(--shop-blue); outline: 2px solid rgba(4, 87, 150, .14); }
.shop-cart-quantity input::-webkit-inner-spin-button,
.shop-cart-quantity input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.shop-cart-line-total { color: var(--shop-blue-dark); }
.shop-cart-remove { border: 0; color: #a5afb7; background: transparent; cursor: pointer; font-size: 19px; }
.shop-cart-remove:hover { color: var(--shop-red); }
.shop-cart-actions { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px 30px; background: var(--shop-bg); }
.shop-cart-summary { width: min(470px, 100%); margin-left: auto; padding: 24px 30px 30px; }
.shop-cart-summary > div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--shop-line); }
.shop-cart-summary__total { margin-bottom: 18px; font: 700 20px/1.3 "Trebuchet MS", Arial, sans-serif; }
.shop-empty-card { padding: 65px 30px; text-align: center; }
.shop-empty-card > i { color: var(--shop-blue); font-size: 52px; }
.shop-empty-card h2 { margin: 18px 0 8px; }
.shop-empty-card p { margin: 0 auto 24px; color: var(--shop-muted); }

/* Checkout */
.shop-checkout { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(360px, .82fr); gap: 24px; align-items: start; }
.shop-checkout-main,
.shop-checkout-side { display: grid; gap: 24px; }
.shop-checkout-side { position: sticky; top: 104px; }
.shop-fieldset,
.shop-payment-card { min-width: 0; margin: 0; padding: 26px 28px 30px; }
.shop-fieldset legend,
.shop-payment-card legend,
.shop-card h2 { padding: 0 7px; font: 700 23px/1.2 "Trebuchet MS", Arial, sans-serif; }
.shop-fieldset legend i { margin-right: 8px; color: var(--shop-blue); }
.shop-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.shop-field { display: grid; gap: 7px; margin: 0; }
.shop-field--wide { grid-column: 1 / -1; }
.shop-field > span { font-weight: 600; }
.shop-field b,
.shop-consent b { color: var(--shop-red); }
.shop-field input,
.shop-field select,
.shop-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #b9c7d3;
    border-radius: var(--shop-radius);
    color: var(--shop-ink);
    background: #fff;
    font: 16px/1.4 "Segoe UI", Tahoma, Arial, sans-serif;
}
.shop-field input:focus,
.shop-field select:focus,
.shop-field textarea:focus { border-color: var(--shop-blue); outline: 2px solid rgba(4, 87, 150, .14); }
.shop-note-card { padding: 24px 28px 28px; }
.shop-note-card h2 { margin: 0 0 18px; padding: 0; }
.shop-note-card h2 i { margin-right: 7px; color: var(--shop-blue); }
.shop-note-card textarea { min-height: 120px; resize: vertical; }
.shop-order-card { padding: 25px 28px; }
.shop-order-card h2 { margin: 0 0 22px; padding: 0; }
.shop-order-heading,
.shop-order-item,
.shop-order-total { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; }
.shop-order-heading { padding-bottom: 10px; color: var(--shop-muted); border-bottom: 1px solid var(--shop-line); font-weight: 700; }
.shop-order-item { padding: 16px 0; border-bottom: 1px solid var(--shop-line); }
.shop-order-item small { display: block; color: var(--shop-muted); }
.shop-voucher { display: grid; gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--shop-line); }
.shop-voucher > label { font: 700 15px/1.2 "Trebuchet MS", Arial, sans-serif; }
.shop-voucher__controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.shop-voucher__controls input { min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid #b9c7d3; border-radius: var(--shop-radius); font: 16px/1.3 "Segoe UI", Tahoma, Arial, sans-serif; text-transform: uppercase; }
.shop-voucher__controls input:focus { border-color: var(--shop-blue); outline: 2px solid rgba(4, 87, 150, .14); }
.shop-voucher__error { color: #8c2420; }
.shop-voucher__remove { justify-self: start; padding: 0; border: 0; color: #8c2420; background: transparent; cursor: pointer; font-weight: 600; }
.shop-order-subtotal,
.shop-order-discount { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; padding-top: 14px; }
.shop-order-discount { color: #0f6136; }
.shop-order-total { padding-top: 18px; font: 700 19px/1.3 "Trebuchet MS", Arial, sans-serif; }
.shop-payment-option { display: flex; flex-direction: row; align-items: flex-start; gap: 11px; margin: 5px 0 18px; padding: 16px; border: 1px solid var(--shop-line); border-radius: var(--shop-radius); }
.shop-payment-option:has(input:checked) { border-color: var(--shop-blue); background: #f1f7fb; }
.shop-payment-option input,
.shop-consent input { width: 18px; height: 18px; min-height: 0; flex: 0 0 auto; accent-color: var(--shop-blue); }
.shop-payment-option small { display: block; margin-top: 7px; color: var(--shop-muted); line-height: 1.45; }
.shop-consent { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; margin: 20px 0; }
.shop-consent a { color: var(--shop-blue); text-decoration: underline; }
.shop-privacy-note { margin: 16px 0 0; color: var(--shop-muted); font-size: 13px; }

/* Thank you and order detail */
.shop-thanks { display: grid; gap: 24px; }
.shop-thanks-intro { display: flex; align-items: center; gap: 20px; margin: 0; padding: 22px 26px; border-radius: var(--shop-radius); color: #0d5d34; background: #e4f6ec; }
.shop-thanks-intro > i { width: 48px; height: 48px; display: grid; flex: 0 0 48px; place-items: center; border-radius: 50%; color: #fff; background: #16894e; font-size: 23px; }
.shop-thanks-intro h2 { margin: 0 0 3px; font-size: 24px; }
.shop-thanks-intro p { margin: 0; }
.shop-order-meta { display: grid; grid-template-columns: repeat(4, 1fr); padding: 23px 28px; }
.shop-order-meta > div { padding: 4px 22px; border-right: 1px solid var(--shop-line); }
.shop-order-meta > div:first-child { padding-left: 0; }
.shop-order-meta > div:last-child { padding-right: 0; border: 0; }
.shop-order-meta span { display: block; margin-bottom: 5px; color: var(--shop-muted); font-size: 13px; }
.bank-payment-card { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 40px; align-items: center; padding: 30px; }
.shop-kicker { margin: 0; color: var(--shop-blue); font: 700 14px/1.2 "Trebuchet MS", Arial, sans-serif; text-transform: uppercase; }
.bank-payment-card h2 { margin: 4px 0 10px; }
.bank-payment-card dl { display: grid; gap: 0; margin: 20px 0 0; }
.bank-payment-card dl div { display: grid; grid-template-columns: 155px minmax(0, 1fr); gap: 18px; padding: 8px 0; border-bottom: 1px solid var(--shop-line); }
.bank-payment-card dt { color: var(--shop-muted); }
.bank-payment-card dd { margin: 0; overflow-wrap: anywhere; }
.bank-payment-qr { display: grid; justify-items: center; gap: 10px; text-align: center; }
.bank-payment-qr img { width: 260px; height: 260px; padding: 8px; border: 1px solid var(--shop-line); border-radius: var(--shop-radius); background: #fff; }
.shop-thanks-items { padding: 26px 30px; }
.shop-thanks-items h2 { margin: 0 0 15px; padding: 0; }
.shop-thanks-item { display: grid; grid-template-columns: minmax(0, 1fr) 90px 130px; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--shop-line); }
.shop-thanks-item small { display: block; color: var(--shop-muted); }
.shop-thanks-item strong { text-align: right; }
.shop-thanks-total { display: flex; justify-content: flex-end; gap: 60px; padding: 20px 0 0; font: 700 21px/1.3 "Trebuchet MS", Arial, sans-serif; }
.shop-thanks-discount { display: flex; justify-content: flex-end; gap: 60px; padding: 16px 0 0; color: #0f6136; font-weight: 700; }
.shop-thanks-actions { display: flex; justify-content: space-between; gap: 16px; }

@media (max-width: 900px) {
    .shop-cart-head { display: none; }
    .shop-cart-row { grid-template-columns: minmax(0, 1fr) auto; gap: 12px 20px; }
    .shop-cart-product { grid-column: 1 / -1; }
    .shop-cart-price::before,
    .shop-cart-line-total::before { content: attr(data-label) ": "; color: var(--shop-muted); font-weight: 400; }
    .shop-cart-quantity { grid-row: 2; }
    .shop-cart-remove { grid-column: 2; grid-row: 2; }
    .shop-cart-line-total { grid-column: 1 / -1; }
    .shop-checkout { grid-template-columns: 1fr; }
    .shop-checkout-side { position: static; }
    .shop-order-meta { grid-template-columns: 1fr 1fr; }
    .shop-order-meta > div:nth-child(2) { border-right: 0; }
    .shop-order-meta > div:nth-child(n+3) { margin-top: 16px; }
}

@media (max-width: 640px) {
    .shop-titlebar .sailing-shell { gap: 18px; }
    .shop-titlebar i { width: 42px; font-size: 33px; }
    .shop-flow { padding-block: 24px 52px; }
    .shop-cart-list { padding-inline: 18px; }
    .shop-cart-image { width: 88px; height: 70px; flex-basis: 88px; }
    .shop-cart-actions { align-items: stretch; flex-direction: column; padding-inline: 18px; }
    .shop-cart-summary { padding: 20px 18px 24px; }
    .shop-form-grid { grid-template-columns: 1fr; }
    .shop-field--wide { grid-column: auto; }
    .shop-fieldset,
    .shop-payment-card,
    .shop-note-card,
    .shop-order-card { padding: 22px 18px; }
    .shop-order-meta { grid-template-columns: 1fr; padding: 12px 20px; }
    .shop-order-meta > div,
    .shop-order-meta > div:first-child,
    .shop-order-meta > div:last-child { margin: 0; padding: 12px 0; border-right: 0; border-bottom: 1px solid var(--shop-line); }
    .shop-order-meta > div:last-child { border-bottom: 0; }
    .bank-payment-card { grid-template-columns: 1fr; padding: 22px 18px; }
    .bank-payment-card dl div { grid-template-columns: 1fr; gap: 2px; }
    .bank-payment-qr img { width: min(260px, 100%); height: auto; }
    .shop-thanks-item { grid-template-columns: 1fr auto; }
    .shop-thanks-item > span:nth-child(2) { grid-column: 1; color: var(--shop-muted); }
    .shop-thanks-item strong { grid-column: 2; grid-row: 1 / 3; align-self: center; }
    .shop-thanks-actions { flex-direction: column-reverse; }
    .shop-thanks-actions .shop-button { width: 100%; }
    .shop-voucher__controls { grid-template-columns: 1fr; }
}
