:root {
    color-scheme: light;
    --color-brand: #003399;
    --color-brand-hover: #002873;
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;
    --color-danger-bg: #fef2f2;
    --color-danger-text: #b91c1c;
    --color-danger-border: #fecaca;
    --color-warning-bg: #fefce8;
    --color-warning-text: #a16207;
    --color-warning-border: #fde68a;
    --color-success-bg: #f0fdf4;
    --color-success-text: #15803d;
    --color-success-border: #bbf7d0;
    --color-info-bg: #eff6ff;
    --color-info-text: #1d4ed8;
    --color-info-border: #bfdbfe;
    --color-cta: #ff0033;
    --color-cta-hover: #d4002b;
    --font-sans: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
}

a {
    color: var(--color-brand);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1 {
    font-size: 1.25rem;
    margin: 0;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

p {
    line-height: 1.6;
    color: var(--color-text-muted);
    margin: 0;
}

/* Centered card layout: login, denied */
body.page-login,
body.page-denied {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.card {
    max-width: 26rem;
}

body.page-login p,
body.page-denied p {
    font-size: 1.125rem;
    margin: 0 0 1.75rem;
}

body.page-login h1,
body.page-denied h1 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
}

.pin {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.badge-pill {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.4rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.google-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.4rem;
    background: var(--color-brand);
    color: #ffffff;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.google-btn:hover {
    background: var(--color-brand-hover);
    text-decoration: none;
}

/* Admin layout: dashboard, user form, users index, order receipt */
body.page-dashboard,
body.page-user-form,
body.page-users-index,
body.page-order-view {
    padding: 2rem;
}

body.page-dashboard header,
body.page-dashboard main,
body.page-user-form header,
body.page-user-form main,
body.page-users-index header,
body.page-users-index main,
body.page-order-view header,
body.page-order-view main {
    margin-left: auto;
    margin-right: auto;
}

body.page-dashboard header,
body.page-dashboard main {
    max-width: 48rem;
}

body.page-user-form header,
body.page-user-form main {
    max-width: 32rem;
}

body.page-users-index header,
body.page-users-index main {
    max-width: 56rem;
}

body.page-order-view header,
body.page-order-view main {
    max-width: 32rem;
}

body.page-dashboard header,
body.page-user-form header,
body.page-users-index header,
body.page-order-view header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

/* Order receipt */
.receipt {
    margin-top: 1.5rem;
    padding: 2rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 0.6rem;
}

.receipt-header {
    text-align: center;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px dashed var(--color-border);
}

.receipt-brand {
    margin: 0 0 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-brand);
}

.receipt-header h2 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--color-text);
}

.receipt-meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px dashed var(--color-border);
    font-size: 0.9rem;
}

.receipt-meta div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.receipt-meta span {
    color: var(--color-text-muted);
}

.receipt-section {
    margin-bottom: 1.25rem;
}

.receipt-section h3 {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.receipt-section p {
    margin: 0;
    color: var(--color-text);
    font-size: 0.9rem;
    line-height: 1.5;
}

.receipt-internal {
    padding-top: 1rem;
    border-top: 1px dashed var(--color-border);
}

.receipt-items {
    margin-bottom: 1.25rem;
}

.receipt-items th:last-child,
.receipt-items td:last-child {
    text-align: right;
}

.receipt-totals {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-top: 1rem;
    margin-bottom: 1.25rem;
    border-top: 1px dashed var(--color-border);
    font-size: 0.9rem;
}

.receipt-totals div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.receipt-totals span {
    color: var(--color-text-muted);
}

.receipt-total-line {
    padding-top: 0.4rem;
    margin-top: 0.15rem;
    border-top: 1px solid var(--color-border);
    font-size: 1rem;
}

.receipt-total-line span,
.receipt-total-line strong {
    color: var(--color-text);
}

nav a {
    font-size: 0.9rem;
    margin-left: 1rem;
}

nav a:first-child {
    margin-left: 0;
}

nav a[aria-current="page"] {
    font-weight: 600;
    text-decoration: none;
}

main {
    color: var(--color-text);
}

.errors,
.notice {
    background: var(--color-danger-bg);
    color: var(--color-danger-text);
    border: 1px solid var(--color-danger-border);
    padding: 0.75rem 1rem;
    border-radius: 0.4rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.errors ul {
    margin: 0;
    padding-left: 1.2rem;
}

.add-btn,
button {
    display: inline-block;
    padding: 0.55rem 1.2rem;
    background: var(--color-brand);
    color: #ffffff;
    border: none;
    border-radius: 0.4rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
}

.add-btn {
    margin-bottom: 1.25rem;
}

.orders-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.orders-toolbar .add-btn,
.orders-toolbar button {
    margin-bottom: 0;
}

.in-person-date-filter {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.in-person-date-filter label {
    margin-bottom: 0;
}

.in-person-date-filter input[type="date"] {
    width: auto;
    margin-top: 0;
}

.in-person-date-filter button {
    margin-bottom: 0;
}

.orders-toolbar button svg {
    width: 1rem;
    height: 1rem;
    vertical-align: -0.15em;
    margin-right: 0.3rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.add-btn:hover,
button:hover {
    background: var(--color-brand-hover);
    text-decoration: none;
}

label {
    display: block;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--color-text);
}

label.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

input[type="email"],
input[type="text"],
input[type="number"],
input[type="date"],
select,
textarea {
    display: block;
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.5rem 0.6rem;
    border-radius: 0.35rem;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 0.9rem;
    font-family: inherit;
}

textarea {
    resize: vertical;
}

.static-value {
    display: block;
    margin-top: 0.35rem;
    color: var(--color-text-muted);
}

.actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.cancel {
    font-size: 0.9rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th,
td {
    text-align: left;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

th {
    color: var(--color-text-muted);
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge.superuser {
    background: var(--color-brand);
    color: #ffffff;
}

.badge.admin {
    background: var(--color-border);
    color: var(--color-text-muted);
}

.badge.status-pending {
    background: var(--color-danger-bg);
    color: var(--color-danger-text);
    border: 1px solid var(--color-danger-border);
}

.badge.status-paid {
    background: var(--color-warning-bg);
    color: var(--color-warning-text);
    border: 1px solid var(--color-warning-border);
}

.badge.status-verified {
    background: var(--color-info-bg);
    color: var(--color-info-text);
    border: 1px solid var(--color-info-border);
}

.badge.status-complete {
    background: var(--color-success-bg);
    color: var(--color-success-text);
    border: 1px solid var(--color-success-border);
}

.badge.disputed {
    background: var(--color-danger-bg);
    color: var(--color-danger-text);
    border: 1px solid var(--color-danger-border);
    margin-left: 0.35rem;
}

.badge.fulfilled {
    background: var(--color-success-bg);
    color: var(--color-success-text);
    border: 1px solid var(--color-success-border);
}

.row-actions a,
.row-actions button {
    color: var(--color-brand);
    background: none;
    border: none;
    padding: 0;
    margin-right: 0.75rem;
    font-size: 0.85rem;
    font-weight: normal;
    font-family: inherit;
    cursor: pointer;
    text-decoration: underline;
}

.row-actions button.danger {
    color: var(--color-danger-text);
}

.row-actions.icon-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.row-actions .icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 6px;
    background: none;
    color: var(--color-text-muted);
    cursor: pointer;
    text-decoration: none;
    line-height: 0;
}

.row-actions .icon-btn svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.row-actions .icon-btn:hover,
.row-actions .icon-btn:focus-visible {
    background: var(--color-border);
    color: var(--color-brand);
}

.row-actions .icon-btn.danger:hover,
.row-actions .icon-btn.danger:focus-visible {
    background: var(--color-danger-bg);
    color: var(--color-danger-text);
}

.pin-thumb {
    display: block;
    width: 3rem;
    height: 3rem;
    object-fit: cover;
    border-radius: 0.35rem;
    border: 1px solid var(--color-border);
}

.pin-photo-preview {
    display: block;
    width: 8rem;
    height: 8rem;
    object-fit: cover;
    border-radius: 0.35rem;
    border: 1px solid var(--color-border);
    margin: 0.35rem 0 0.75rem;
}

#order-items {
    margin-top: 0.35rem;
}

.order-item-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.order-item-row select {
    flex: 1;
    margin-top: 0;
}

.order-item-row input[type="number"] {
    width: 5.5rem;
    margin-top: 0;
}

.order-item-row .remove-item-row {
    flex-shrink: 0;
    background: none;
    color: var(--color-danger-text);
    padding: 0.4rem 0.6rem;
}

.order-item-row .remove-item-row:hover {
    background: var(--color-danger-bg);
}

.add-btn.secondary,
button.secondary {
    background: var(--color-surface);
    color: var(--color-brand);
    border: 1px solid var(--color-border);
    margin-top: 0.25rem;
    margin-bottom: 1rem;
}

.add-btn.secondary:hover,
button.secondary:hover {
    background: var(--color-bg);
}

/* Storefront */
body.page-storefront {
    display: block;
}

.storefront-header {
    text-align: center;
    padding: 3.5rem 1.5rem 2.5rem;
    background: var(--color-brand);
    color: #ffffff;
}

.storefront-header .eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.storefront-header h1 {
    margin: 0 0 1rem;
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #ffffff;
}

.storefront-header .lede {
    max-width: 40rem;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.1rem;
}

main {
    max-width: 64rem;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.shop-section {
    margin-bottom: 4rem;
}

.empty-state {
    text-align: center;
    font-size: 1.1rem;
    padding: 3rem 1rem;
}

.shop-info {
    max-width: 42rem;
    margin: 0 auto 2rem;
    text-align: center;
    color: var(--color-text-muted);
}

.pin-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.pin-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 0.6rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1 1 15rem;
    max-width: 19rem;
}

.pin-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 10rem;
    background: var(--color-bg);
}

.pin-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pin-card-placeholder {
    font-size: 2.5rem;
}

.pin-card-body {
    padding: 1rem 1.1rem 1.25rem;
}

.pin-card-body h3 {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
    color: var(--color-text);
}

.pin-card-description {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.pin-card-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
}

.pin-card-footer button {
    width: 100%;
    background: var(--color-cta);
    text-transform: uppercase;
}

.pin-card-footer button:hover {
    background: var(--color-cta-hover);
}

.pin-card-footer button:disabled {
    background: var(--color-cta);
    opacity: 0.55;
    cursor: default;
}

.pin-card-percent-sold {
    width: 100%;
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
    color: var(--color-text-muted);
}

.why-section {
    max-width: 42rem;
    margin: 0 auto;
    text-align: center;
}

.why-section h2 {
    font-size: 1.5rem;
    margin: 0 0 1.25rem;
    color: var(--color-text);
}

.why-section p {
    text-align: left;
    margin: 0 0 1rem;
}

.previous-pins-section {
    max-width: 42rem;
    margin: 4rem auto 0;
    text-align: center;
}

.previous-pins-section h2 {
    font-size: 1.5rem;
    margin: 0 0 1.25rem;
    color: var(--color-text);
}

.previous-pins-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.previous-pin-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    padding: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
}

.previous-pin-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.previous-pin-placeholder {
    font-size: 1.5rem;
}

.previous-pin-thumb:hover,
.previous-pin-thumb:focus-visible {
    border-color: var(--color-brand);
}

.pin-modal {
    position: relative;
    max-width: 26rem;
    width: calc(100% - 2rem);
    padding: 0;
    border: none;
    border-radius: 0.6rem;
    overflow: hidden;
    background: var(--color-surface);
    color: var(--color-text);
}

.pin-modal::backdrop {
    background: rgba(15, 23, 42, 0.6);
}

.pin-modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 999px;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    color: var(--color-text);
}

.pin-modal-close:hover {
    background: #ffffff;
}

.pin-modal-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 16rem;
    background: var(--color-bg);
}

.pin-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pin-modal-body {
    padding: 1.25rem 1.5rem 1.5rem;
    text-align: left;
}

.pin-modal-body h3 {
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
    color: var(--color-text);
}

.storefront-footer {
    border-top: 1px solid var(--color-border);
    padding: 2rem 1.5rem 3rem;
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.storefront-footer p {
    font-size: 0.8rem;
    margin: 0 0 1rem;
}

.storefront-footer .copyright {
    margin: 0;
    color: var(--color-text-muted);
}

.dashboard-totals {
    margin-top: 2rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 0.6rem;
    padding: 1.5rem;
}

.dashboard-totals h2 {
    margin: 0 0 1.25rem;
    font-size: 1.05rem;
    color: var(--color-text);
}

.totals-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 2rem;
}

.totals-column h3 {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-text-muted);
}

.totals-list {
    margin: 0;
}

.totals-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--color-border);
}

.totals-row dt {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.totals-row dd {
    margin: 0;
    font-weight: 500;
}

.totals-subtotal {
    border-bottom: none;
    font-weight: 600;
}

.totals-grand {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 2px solid var(--color-border);
    font-size: 1.3rem;
    font-weight: 700;
}

.totals-negative {
    color: var(--color-danger-text);
}

/* ── Cart ── */

.storefront-header {
    position: relative;
}

.cart-toggle {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.cart-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
}

.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: var(--color-cta);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
}

.cart-modal {
    position: relative;
    max-width: 30rem;
    width: calc(100% - 2rem);
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    padding: 2rem;
    border: none;
    border-radius: 0.6rem;
    background: var(--color-surface);
    color: var(--color-text);
}

.cart-modal::backdrop {
    background: rgba(15, 23, 42, 0.6);
}

.cart-modal .cart-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
}

.cart-modal h2 {
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
    color: var(--color-text);
}

.cart-step-sub {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
}

.cart-progress {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.cart-progress span {
    height: 4px;
    flex: 1;
    border-radius: 2px;
    background: var(--color-border);
    transition: background 0.2s;
}

.cart-progress span.done {
    background: var(--color-brand);
}

.cart-step {
    display: none;
}

.cart-step.active {
    display: block;
}

.cart-modal-footer {
    margin-top: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.cart-modal .btn-back {
    background: none;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-family: inherit;
    font-size: 0.9rem;
    padding: 0.6rem 1.25rem;
    border-radius: 0.4rem;
    cursor: pointer;
}

.cart-modal .btn-back:hover {
    border-color: #999;
    background: none;
}

.cart-modal .btn-next {
    font-size: 0.95rem;
    padding: 0.65rem 1.75rem;
}

.cart-modal .btn-next:disabled {
    opacity: 0.4;
    cursor: default;
}

/* Step 1: cart items */

.cart-item-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
}

.cart-item-thumb {
    flex: 0 0 3.25rem;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.4rem;
    overflow: hidden;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-thumb-placeholder {
    font-size: 1.25rem;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    margin: 0 0 0.15rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
}

.cart-item-meta {
    margin: 0;
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.qty-btn {
    width: 1.9rem;
    height: 1.9rem;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 0.4rem;
    background: #ffffff;
    color: var(--color-text);
    font-size: 1.05rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    border-color: var(--color-brand);
    color: var(--color-brand);
    background: #ffffff;
}

.qty-display {
    min-width: 1.25rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
}

.cart-item-remove {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.2rem;
    line-height: 1;
    padding: 0.25rem;
    cursor: pointer;
}

.cart-item-remove:hover {
    background: none;
    color: var(--color-danger-text);
}

.cart-empty-note {
    text-align: center;
    padding: 1.5rem 0;
    color: var(--color-text-muted);
}

.field-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 0.4rem;
    margin-top: 1.25rem;
}

.donation-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 0.4rem;
    overflow: hidden;
    max-width: 11rem;
}

.donation-input-wrap .dollar {
    padding: 0.6rem 0.75rem;
    background: var(--color-bg);
    color: var(--color-text-muted);
    font-size: 1rem;
    border-right: 1px solid var(--color-border);
}

.donation-input-wrap input {
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 0.6rem 0.75rem;
    width: 100%;
    font-family: inherit;
    margin: 0;
}

.donation-input-wrap.error {
    border-color: var(--color-danger-border);
}

.min-note {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin-top: 0.35rem;
}

.field-error {
    font-size: 0.78rem;
    color: var(--color-danger-text);
    margin-top: 0.35rem;
    min-height: 1.1em;
}

/* Step 2: delivery options */

.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.delivery-option {
    border: 2px solid var(--color-border);
    border-radius: 0.4rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.delivery-option:hover {
    border-color: var(--color-brand);
}

.delivery-option.selected {
    border-color: var(--color-brand);
    background: #eef2ff;
}

.delivery-option.disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.delivery-option.disabled:hover {
    border-color: var(--color-border);
}

.delivery-option strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: var(--color-text);
}

.delivery-option p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* Step 3: contact + address fields */

.cart-modal .form-field {
    margin-bottom: 1.1rem;
}

.cart-modal .form-field:last-of-type {
    margin-bottom: 0;
}

.cart-modal .text-input {
    margin-top: 0.35rem;
}

.cart-modal .address-row {
    display: flex;
    gap: 0.75rem;
}

.cart-modal .address-row .form-field {
    flex: 1;
    margin-top: 0;
}

.cart-modal .address-row .form-field.zip {
    flex: 0 0 6rem;
}

/* Step 4: order review */

.review-section {
    margin-bottom: 1.25rem;
}

.review-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.review-info {
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.7;
}

.review-divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 1.1rem 0;
}

.review-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    font-size: 0.95rem;
    margin-bottom: 0.45rem;
}

.review-line .label {
    color: var(--color-text);
}

.review-line .amount {
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.review-line.fee .label,
.review-line.fee .amount {
    color: var(--color-text-muted);
    font-size: 0.88rem;
}

.review-line.total {
    margin-top: 0.6rem;
}

.review-line.total .label,
.review-line.total .amount {
    font-weight: bold;
    font-size: 1.05rem;
}

.cart-muted-note {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.btn-confirm {
    width: 100%;
    background: var(--color-cta);
    text-transform: uppercase;
    font-size: 1rem;
    padding: 0.75rem 1.75rem;
    margin-top: 1.5rem;
}

.btn-confirm:hover:not(:disabled) {
    background: var(--color-cta-hover);
}

.btn-confirm:disabled {
    opacity: 0.5;
    cursor: default;
}

/* Step 5: PayPal */

#cartPaypalButtonContainer {
    margin-top: 1.25rem;
}

.cart-alt-pay-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.6rem;
}

.cart-alt-pay-buttons > div {
    width: 100%;
}

.apple-pay-button {
    -webkit-appearance: -apple-pay-button;
    -apple-pay-button-type: pay;
    -apple-pay-button-style: black;
    width: 100%;
    height: 44px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.paypal-loading {
    text-align: center;
    padding: 1.5rem 0;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.spinner {
    display: inline-block;
    width: 1.1rem;
    height: 1.1rem;
    margin-right: 0.5rem;
    vertical-align: -0.2rem;
    border: 2px solid var(--color-border);
    border-top-color: var(--color-text-muted);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Step 6: confirmation */

.confirm-check {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.confirm-title {
    text-align: center;
    margin-bottom: 0.5rem;
}

.confirm-sub {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
}

.confirm-summary {
    background: var(--color-bg);
    border-radius: 0.4rem;
    padding: 0.9rem 1.1rem;
    font-size: 0.88rem;
    line-height: 1.8;
    color: var(--color-text);
}

.btn-close-done {
    width: 100%;
    margin-top: 1.5rem;
    text-transform: uppercase;
}
