/* Tweller Flow — Print Store (client UI)
   Design: Stripe-inspired, black & gold brand, mobile-first.
   Namespaces: .tf2p-* (floating store UI), .tf2-prints (public page shell) */

:root {
    --tf2p-gold: #C9A227;
    --tf2p-gold-light: #E7C55C;
    --tf2p-black: #101010;
    --tf2p-gray-700: #404040;
    --tf2p-gray-500: #737373;
    --tf2p-gray-300: #D4D4D4;
    --tf2p-gray-200: #E5E5E5;
    --tf2p-gray-100: #F5F5F5;
    --tf2p-white: #FFFFFF;
    --tf2p-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.tf2p-noscroll {
    overflow: hidden;
}

.tf2p-root {
    font-family: var(--tf2p-font);
    -webkit-font-smoothing: antialiased;
}

/* ── Backdrop ─────────────────────────────────────── */

.tf2p-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(16, 16, 16, 0.55);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 100000;
}

.tf2p-backdrop.tf2p-open {
    opacity: 1;
    pointer-events: auto;
}

/* ── Shared bits ──────────────────────────────────── */

.tf2p-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: var(--tf2p-gray-100);
    color: var(--tf2p-gray-700);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.tf2p-close:hover {
    background: var(--tf2p-gray-200);
    color: var(--tf2p-black);
}

.tf2p-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 100px;
    padding: 13px 26px;
    font-family: var(--tf2p-font);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s;
    line-height: 1.2;
}

.tf2p-btn:active {
    transform: scale(0.98);
}

.tf2p-btn--gold {
    background: var(--tf2p-gold);
    color: var(--tf2p-black);
    box-shadow: 0 2px 10px rgba(201, 162, 39, 0.35);
}

.tf2p-btn--gold:hover {
    background: var(--tf2p-gold-light);
}

.tf2p-btn--dark {
    background: var(--tf2p-black);
    color: var(--tf2p-white);
}

.tf2p-btn--dark:hover {
    background: #2A2A2A;
}

.tf2p-btn--ghost {
    background: transparent;
    color: var(--tf2p-black);
    border: 1px solid var(--tf2p-gray-300);
}

.tf2p-btn--ghost:hover {
    border-color: var(--tf2p-black);
}

.tf2p-btn--full {
    width: 100%;
}

.tf2p-btn--sm {
    padding: 8px 14px;
    font-size: 12.5px;
}

.tf2p-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.tf2p-loading {
    text-align: center;
    color: var(--tf2p-gray-500);
    font-size: 13px;
    padding: 18px 0;
}

.tf2p-error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #B91C1C;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    margin: 0 0 12px;
}

/* ── Quantity stepper ─────────────────────────────── */

.tf2p-stepper {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: var(--tf2p-gray-100);
    border-radius: 100px;
    padding: 3px;
}

.tf2p-stepper__btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: var(--tf2p-white);
    color: var(--tf2p-black);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.tf2p-stepper__btn--plus {
    background: var(--tf2p-black);
    color: var(--tf2p-white);
}

.tf2p-stepper__qty {
    min-width: 26px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--tf2p-black);
}

.tf2p-stepper--sm .tf2p-stepper__btn {
    width: 24px;
    height: 24px;
    font-size: 14px;
}

.tf2p-stepper--sm .tf2p-stepper__qty {
    min-width: 20px;
    font-size: 13px;
}

/* ── Product picker bottom sheet ──────────────────── */

.tf2p-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100001;
    background: var(--tf2p-white);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -12px 40px rgba(16, 16, 16, 0.25);
    transform: translateY(105%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
    max-height: 88vh;
    max-height: 88dvh;
}

.tf2p-sheet.tf2p-open {
    transform: translateY(0);
}

@media (min-width: 720px) {
    .tf2p-sheet {
        left: 50%;
        right: auto;
        width: 560px;
        margin-left: -280px;
    }
}

.tf2p-sheet__handle {
    width: 40px;
    height: 4px;
    border-radius: 4px;
    background: var(--tf2p-gray-300);
    margin: 10px auto 2px;
    flex-shrink: 0;
}

.tf2p-sheet__scroll {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 20px 12px;
}

.tf2p-sheet__footer {
    flex-shrink: 0;
    padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--tf2p-gray-200);
    background: var(--tf2p-white);
}

/* ── Print preview ────────────────────────────────── */

.tf2p-preview-wrap {
    margin-bottom: 18px;
}

.tf2p-preview {
    display: flex;
    justify-content: center;
    padding: 18px 10px 14px;
    background:
        radial-gradient(circle at 30% 20%, rgba(201, 162, 39, 0.06), transparent 55%),
        var(--tf2p-gray-100);
    border-radius: 14px;
}

.tf2p-preview__frame {
    background: var(--tf2p-white);
    padding: 8px;
    box-shadow: 0 10px 24px rgba(16, 16, 16, 0.22), 0 2px 6px rgba(16, 16, 16, 0.12);
    max-width: 210px;
    max-height: 230px;
    width: 100%;
    aspect-ratio: 2 / 3;
    box-sizing: border-box;
    transition: aspect-ratio 0.25s ease;
}

.tf2p-preview__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tf2p-preview__meta {
    text-align: center;
    margin-top: 10px;
}

.tf2p-preview__size {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--tf2p-black);
    letter-spacing: -0.01em;
}

.tf2p-crop-note {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    color: #92700C;
    background: #FDF6E3;
    border: 1px solid #F2E3B3;
    border-radius: 100px;
    padding: 4px 12px;
    line-height: 1.4;
}

/* ── Product groups & rows ────────────────────────── */

.tf2p-group__title {
    margin: 18px 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tf2p-gray-500);
}

.tf2p-group__note {
    margin: 0 0 8px;
    font-size: 12px;
    color: var(--tf2p-gray-500);
    line-height: 1.5;
}

.tf2p-prod {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border: 1px solid var(--tf2p-gray-200);
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    background: var(--tf2p-white);
}

.tf2p-prod:hover {
    border-color: var(--tf2p-gray-300);
}

.tf2p-prod--selected {
    border-color: var(--tf2p-gold);
    box-shadow: 0 0 0 1px var(--tf2p-gold);
}

.tf2p-prod--inCart {
    background: #FDFAF1;
}

.tf2p-prod__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.tf2p-prod__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--tf2p-black);
    letter-spacing: -0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tf2p-prod__price {
    font-size: 12.5px;
    color: var(--tf2p-gray-500);
}

/* ── Cart drawer ──────────────────────────────────── */

.tf2p-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 100002;
    width: 100%;
    max-width: 420px;
    background: var(--tf2p-white);
    box-shadow: -12px 0 40px rgba(16, 16, 16, 0.25);
    transform: translateX(105%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
}

.tf2p-drawer.tf2p-open {
    transform: translateX(0);
}

.tf2p-drawer__head {
    position: relative;
    flex-shrink: 0;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--tf2p-gray-200);
}

.tf2p-drawer__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--tf2p-black);
    letter-spacing: -0.02em;
    font-family: var(--tf2p-font);
}

.tf2p-drawer__head .tf2p-close {
    top: 14px;
}

.tf2p-drawer__body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 20px calc(24px + env(safe-area-inset-bottom, 0px));
}

.tf2p-empty {
    text-align: center;
    color: var(--tf2p-gray-500);
    font-size: 14px;
    line-height: 1.7;
    padding: 40px 10px;
    margin: 0;
}

.tf2p-empty__icon {
    display: inline-flex;
    vertical-align: middle;
    color: var(--tf2p-gold);
}

/* Cart items */

.tf2p-cart-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--tf2p-gray-100);
}

.tf2p-cart-item__thumb {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--tf2p-gray-100);
    display: block;
}

.tf2p-cart-item__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tf2p-cart-item__name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--tf2p-black);
}

.tf2p-cart-item__file {
    font-size: 11.5px;
    color: var(--tf2p-gray-500);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tf2p-cart-item__price {
    font-size: 13px;
    font-weight: 600;
    color: var(--tf2p-gray-700);
    margin-top: 2px;
}

.tf2p-cart-item__controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.tf2p-cart-item__remove {
    border: none;
    background: none;
    color: var(--tf2p-gray-500);
    font-size: 11.5px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.tf2p-cart-item__remove:hover {
    color: #B91C1C;
}

.tf2p-subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0 6px;
    font-size: 14px;
    color: var(--tf2p-gray-700);
}

.tf2p-subtotal strong {
    font-size: 17px;
    color: var(--tf2p-black);
    letter-spacing: -0.02em;
}

.tf2p-pickup {
    font-size: 12px;
    color: var(--tf2p-gray-500);
    line-height: 1.6;
    background: var(--tf2p-gray-100);
    border-radius: 10px;
    padding: 10px 12px;
    margin: 8px 0 4px;
}

/* Checkout form */

.tf2p-form {
    margin-top: 14px;
}

.tf2p-form__title {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tf2p-gray-500);
    font-family: var(--tf2p-font);
}

.tf2p-field {
    display: block;
    margin-bottom: 10px;
}

.tf2p-field span {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--tf2p-gray-700);
    margin-bottom: 4px;
}

.tf2p-field input,
.tf2p-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--tf2p-gray-300);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: var(--tf2p-font);
    color: var(--tf2p-black);
    background: var(--tf2p-white);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.tf2p-field input:focus,
.tf2p-field textarea:focus {
    outline: none;
    border-color: var(--tf2p-gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}

.tf2p-payhint {
    text-align: center;
    font-size: 11.5px;
    color: var(--tf2p-gray-500);
    margin: 10px 0 0;
    line-height: 1.5;
}

/* Success screen */

.tf2p-success {
    flex: 1;
    overflow-y: auto;
    padding: 36px 24px calc(24px + env(safe-area-inset-bottom, 0px));
    text-align: center;
}

.tf2p-success__icon {
    color: var(--tf2p-gold);
    margin-bottom: 12px;
}

.tf2p-success h3 {
    margin: 0 0 18px;
    font-size: 20px;
    font-weight: 700;
    color: var(--tf2p-black);
    letter-spacing: -0.02em;
    font-family: var(--tf2p-font);
}

.tf2p-success__refline {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tf2p-gray-500);
}

.tf2p-success__ref {
    display: inline-block;
    margin: 0 0 18px;
    background: var(--tf2p-black);
    color: var(--tf2p-gold);
    border-radius: 100px;
    padding: 8px 20px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.tf2p-success__pay {
    text-align: left;
    background: #FDFAF1;
    border: 1px solid #F2E3B3;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 14px;
}

.tf2p-success__pay h4 {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tf2p-black);
    font-family: var(--tf2p-font);
}

.tf2p-success__pay pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 13px;
    line-height: 1.6;
    color: var(--tf2p-gray-700);
    font-family: var(--tf2p-font);
    background: none;
    padding: 0;
    border: none;
}

.tf2p-success__note,
.tf2p-success__bye {
    font-size: 13px;
    color: var(--tf2p-gray-500);
    line-height: 1.7;
    margin: 0 0 12px;
}

/* ── Public page shell ([tweller_prints]) ─────────── */

.tf2-prints {
    max-width: 860px;
    margin: 0 auto;
    padding: 28px 20px 120px;
    font-family: var(--tf2p-font);
    -webkit-font-smoothing: antialiased;
}

.tf2-prints__hero {
    text-align: center;
    margin-bottom: 26px;
}

.tf2-prints__eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--tf2p-gold);
    margin-bottom: 8px;
}

.tf2-prints__title {
    margin: 0 0 10px;
    font-size: 30px;
    font-weight: 700;
    color: var(--tf2p-black);
    letter-spacing: -0.03em;
    font-family: var(--tf2p-font);
}

.tf2-prints__sub {
    margin: 0 auto;
    max-width: 560px;
    font-size: 14.5px;
    color: var(--tf2p-gray-500);
    line-height: 1.7;
}

.tf2-prints__dropzone {
    border: 2px dashed var(--tf2p-gray-300);
    border-radius: 16px;
    padding: 38px 20px;
    text-align: center;
    color: var(--tf2p-gray-500);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    margin-bottom: 22px;
}

.tf2-prints__dropzone:hover,
.tf2-prints__dropzone--over {
    border-color: var(--tf2p-gold);
    background: #FDFAF1;
    color: var(--tf2p-black);
}

.tf2-prints__dz-title {
    margin: 10px 0 4px;
    font-size: 15px;
    font-weight: 600;
    color: var(--tf2p-black);
}

.tf2-prints__dz-note {
    margin: 0;
    font-size: 12.5px;
}

.tf2-prints__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.tf2-prints__tile {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--tf2p-gray-100);
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(16, 16, 16, 0.08);
}

.tf2-prints__tile img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.tf2-prints__tile-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    min-width: 22px;
    height: 22px;
    border-radius: 100px;
    background: var(--tf2p-gold);
    color: var(--tf2p-black);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-sizing: border-box;
    box-shadow: 0 1px 4px rgba(16, 16, 16, 0.25);
}

.tf2-prints__tile-btn {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    white-space: nowrap;
}

.tf2-prints__cartbar {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 99998;
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--tf2p-black);
    color: var(--tf2p-white);
    border-radius: 100px;
    padding: 10px 12px 10px 22px;
    box-shadow: 0 10px 30px rgba(16, 16, 16, 0.35);
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
}

.tf2-prints__cartbar-label {
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .tf2-prints__title { font-size: 24px; }
    .tf2-prints__grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
    .tf2-prints__tile-btn span { display: none; }
    .tf2-prints__tile-btn { padding: 8px 10px; }
}

/* Buttons rendered as links (storefront CTAs, portal pay button) */

a.tf2p-btn {
    text-decoration: none;
    box-sizing: border-box;
}

/* ── Storefront homepage ([tweller_prints], no order param) ── */

.tf2-shop {
    max-width: 1020px;
}

.tf2-shop__hero {
    text-align: center;
    padding: 56px 24px 60px;
    background: var(--tf2p-black);
    border-radius: 22px;
    margin-bottom: 44px;
    background-size: cover;
    background-position: center;
}

.tf2-shop__hero .tf2-prints__eyebrow {
    color: var(--tf2p-gold);
}

.tf2-shop__headline {
    margin: 6px auto 14px;
    max-width: 620px;
    font-size: 40px;
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--tf2p-white);
    font-family: var(--tf2p-font);
}

.tf2-shop__sub {
    margin: 0 auto;
    max-width: 540px;
    font-size: 15.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
}

.tf2-shop__intro {
    margin: 12px auto 0;
    max-width: 540px;
    font-size: 13.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
}

.tf2-shop__cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.tf2-shop__cta .tf2p-btn--ghost {
    color: var(--tf2p-white);
    border-color: rgba(255, 255, 255, 0.35);
}

.tf2-shop__cta .tf2p-btn--ghost:hover {
    border-color: var(--tf2p-gold);
    color: var(--tf2p-gold-light);
}

.tf2-shop__cat {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--tf2p-black);
    font-family: var(--tf2p-font);
}

.tf2-shop__cat-blurb {
    margin: 0 0 18px;
    font-size: 13.5px;
    color: var(--tf2p-gray-500);
    line-height: 1.6;
    max-width: 560px;
}

.tf2-shop__group {
    margin-bottom: 44px;
}

.tf2-shop__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.tf2-shop-card {
    display: flex;
    flex-direction: column;
    background: var(--tf2p-white);
    border: 1px solid var(--tf2p-gray-200);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s;
}

.tf2-shop-card:hover {
    transform: translateY(-3px);
    border-color: var(--tf2p-gray-300);
    box-shadow: 0 14px 34px rgba(16, 16, 16, 0.12);
}

.tf2-shop-card__art {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 170px;
    padding: 20px;
    background:
        radial-gradient(circle at 32% 22%, rgba(201, 162, 39, 0.08), transparent 55%),
        linear-gradient(180deg, #F7F5F0, #EFEBE2);
}

.tf2-shop-card__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 14px 16px 16px;
}

.tf2-shop-card__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--tf2p-black);
    letter-spacing: -0.01em;
}

.tf2-shop-card__meta {
    font-size: 12.5px;
    color: var(--tf2p-gray-500);
}

/* Pure-CSS product mockups (no external images) */

.tf2-mock {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.tf2-mock__scene {
    display: block;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 68% 26%, #E7C55C 0 10%, transparent 11%),
        linear-gradient(to top, #8A8178 0 34%, transparent 34%),
        linear-gradient(180deg, #EAE3D3, #CFC6B2);
}

/* Framed print: dark frame + white mat + shadow */

.tf2-mock__frame {
    display: block;
    background: #1A1A1A;
    padding: 5px;
    max-width: 120px;
    max-height: 130px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 14px 26px rgba(16, 16, 16, 0.28), 0 3px 8px rgba(16, 16, 16, 0.16);
}

.tf2-mock__mat {
    display: block;
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    padding: 12%;
    box-sizing: border-box;
}

/* Wrapped canvas: photo face + darker wrapped edge */

.tf2-mock--canvas .tf2-mock__canvas {
    position: relative;
    display: block;
    max-width: 130px;
    max-height: 120px;
    width: 100%;
    box-shadow: 12px 14px 26px rgba(16, 16, 16, 0.28);
}

.tf2-mock--canvas .tf2-mock__scene {
    position: relative;
    z-index: 1;
}

.tf2-mock__canvas-edge {
    position: absolute;
    top: 4px;
    right: -9px;
    bottom: -4px;
    width: 9px;
    background: linear-gradient(180deg, #7C755F, #57513F);
    transform: skewY(38deg);
    transform-origin: top left;
}

/* Open layflat photobook: two pages + spine shadow */

.tf2-mock--book .tf2-mock__book {
    position: relative;
    display: flex;
    width: 150px;
    height: 96px;
    filter: drop-shadow(0 14px 18px rgba(16, 16, 16, 0.24));
}

.tf2-mock__page {
    flex: 1;
    background: linear-gradient(180deg, #FFFFFF, #F1EDE4);
    border: 1px solid #E2DCCE;
    box-sizing: border-box;
}

.tf2-mock__page--left {
    border-radius: 6px 2px 2px 6px;
    transform: perspective(300px) rotateY(9deg);
    transform-origin: right center;
    background:
        linear-gradient(270deg, rgba(16, 16, 16, 0.10), transparent 26%),
        linear-gradient(180deg, #FFFFFF, #F1EDE4);
}

.tf2-mock__page--right {
    border-radius: 2px 6px 6px 2px;
    transform: perspective(300px) rotateY(-9deg);
    transform-origin: left center;
    padding: 8px;
    background:
        linear-gradient(90deg, rgba(16, 16, 16, 0.10), transparent 26%),
        linear-gradient(180deg, #FFFFFF, #F1EDE4);
}

.tf2-mock__page-photo {
    display: block;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 66% 28%, #E7C55C 0 12%, transparent 13%),
        linear-gradient(to top, #8A8178 0 32%, transparent 32%),
        linear-gradient(180deg, #EAE3D3, #CFC6B2);
}

.tf2-mock__spine {
    width: 3px;
    background: linear-gradient(180deg, #C9C2B1, #A79F8B);
    flex-shrink: 0;
}

/* How it works */

.tf2-shop__how {
    margin-bottom: 48px;
}

.tf2-shop__steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin: 18px 0 0;
    padding: 0;
    counter-reset: none;
}

.tf2-shop__step {
    background: var(--tf2p-white);
    border: 1px solid var(--tf2p-gray-200);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tf2-shop__step strong {
    font-size: 14.5px;
    color: var(--tf2p-black);
    letter-spacing: -0.01em;
}

.tf2-shop__step span:not(.tf2-shop__step-num) {
    font-size: 13px;
    color: var(--tf2p-gray-500);
    line-height: 1.6;
}

.tf2-shop__step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--tf2p-gold);
    color: var(--tf2p-black);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.tf2-shop__start {
    scroll-margin-top: 24px;
}

/* Scroll reveals — only active once JS adds .tf2-shop--anim, so the
   storefront is never hidden if scripts fail to load. */

.tf2-shop--anim .tf2-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.tf2-shop--anim .tf2-reveal--in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .tf2-shop--anim .tf2-reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 560px) {
    .tf2-shop__hero { padding: 40px 18px 44px; border-radius: 18px; }
    .tf2-shop__headline { font-size: 29px; }
    .tf2-shop__cta .tf2p-btn { width: 100%; }
    .tf2-shop__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .tf2-shop-card__art { height: 130px; }
}

/* ── Customer order portal (?order=…&t=…) ─────────── */

.tf2-portal {
    max-width: 560px;
    padding-bottom: 60px;
}

.tf2-portal__head {
    text-align: center;
    margin-bottom: 20px;
}

.tf2-portal__title {
    margin: 4px 0 8px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--tf2p-black);
    font-family: var(--tf2p-font);
}

.tf2-portal__ref {
    display: inline-block;
    margin: 0 0 8px;
    background: var(--tf2p-black);
    color: var(--tf2p-gold);
    border-radius: 100px;
    padding: 7px 18px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.tf2-portal__placed {
    margin: 0;
    font-size: 12.5px;
    color: var(--tf2p-gray-500);
}

.tf2-portal__card {
    background: var(--tf2p-white);
    border: 1px solid var(--tf2p-gray-200);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 14px;
    box-shadow: 0 1px 3px rgba(16, 16, 16, 0.04);
}

.tf2-portal__label {
    margin: 0 0 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tf2p-gray-500);
}

.tf2-portal__invalid {
    text-align: center;
    padding: 34px 22px;
}

.tf2-portal__invalid h2 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--tf2p-black);
    font-family: var(--tf2p-font);
}

.tf2-portal__invalid p {
    font-size: 14px;
    color: var(--tf2p-gray-500);
    line-height: 1.7;
    margin: 0 0 18px;
}

/* Banners (WiPay return, cancelled) */

.tf2-portal__banner {
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 13.5px;
    line-height: 1.6;
    margin-bottom: 14px;
    border: 1px solid;
}

.tf2-portal__banner--success {
    background: #F0FAF4;
    border-color: #BBE5C8;
    color: #14532D;
}

.tf2-portal__banner--error {
    background: #FEF2F2;
    border-color: #FECACA;
    color: #B91C1C;
}

.tf2-portal__banner--warn {
    background: #FDF6E3;
    border-color: #F2E3B3;
    color: #92700C;
}

/* Status timeline */

.tf2-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tf2-timeline__step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0 0 20px 0;
}

.tf2-timeline__step:last-child {
    padding-bottom: 0;
}

.tf2-timeline__step::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 22px;
    bottom: 2px;
    width: 2px;
    background: var(--tf2p-gray-200);
}

.tf2-timeline__step:last-child::before {
    display: none;
}

.tf2-timeline__step--done::before {
    background: var(--tf2p-gold);
}

.tf2-timeline__dot {
    position: relative;
    z-index: 1;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tf2p-white);
    border: 2px solid var(--tf2p-gray-300);
    color: var(--tf2p-black);
    box-sizing: border-box;
}

.tf2-timeline__step--done .tf2-timeline__dot {
    background: var(--tf2p-gold);
    border-color: var(--tf2p-gold);
}

.tf2-timeline__step--current .tf2-timeline__dot {
    border-color: var(--tf2p-gold);
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.18);
}

.tf2-timeline__step--current .tf2-timeline__dot::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tf2p-gold);
}

.tf2-timeline__text {
    font-size: 14px;
    padding-top: 2px;
    color: var(--tf2p-gray-500);
}

.tf2-timeline__step--done .tf2-timeline__text {
    color: var(--tf2p-gray-700);
}

.tf2-timeline__step--current .tf2-timeline__text {
    color: var(--tf2p-black);
    font-weight: 700;
}

.tf2-portal__reviewnote {
    margin: 14px 0 0;
    font-size: 13px;
    color: #92700C;
    background: #FDF6E3;
    border: 1px solid #F2E3B3;
    border-radius: 10px;
    padding: 10px 12px;
}

/* Items */

.tf2-portal__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--tf2p-gray-100);
}

.tf2-portal__item-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--tf2p-gray-100);
    display: block;
}

.tf2-portal__item-thumb--blank {
    display: block;
}

.tf2-portal__item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tf2-portal__item-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--tf2p-black);
}

.tf2-portal__item-file {
    font-size: 11.5px;
    color: var(--tf2p-gray-500);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tf2-portal__item-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--tf2p-gray-700);
    white-space: nowrap;
}

.tf2-portal__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    font-size: 14px;
    color: var(--tf2p-gray-700);
}

.tf2-portal__total strong {
    font-size: 17px;
    color: var(--tf2p-black);
    letter-spacing: -0.02em;
}

/* Payment */

.tf2-portal__due {
    font-size: 14px;
    color: var(--tf2p-gray-700);
    margin: 0 0 16px;
}

.tf2-portal__due strong {
    font-size: 18px;
    color: var(--tf2p-black);
    letter-spacing: -0.02em;
    margin-left: 6px;
}

.tf2-portal__paysub {
    text-align: center;
    font-size: 11.5px;
    color: var(--tf2p-gray-500);
    margin: 8px 0 0;
    line-height: 1.5;
}

.tf2-portal__divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 14px;
    color: var(--tf2p-gray-500);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.tf2-portal__divider::before,
.tf2-portal__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--tf2p-gray-200);
}

.tf2-portal__bank {
    margin: 0 0 16px;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 13px;
    line-height: 1.7;
    color: var(--tf2p-gray-700);
    font-family: var(--tf2p-font);
    background: var(--tf2p-gray-100);
    border: 1px solid var(--tf2p-gray-200);
    border-radius: 12px;
    padding: 14px 16px;
}

.tf2-portal__received {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #F0FAF4;
    border: 1px solid #BBE5C8;
    color: #14532D;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 12px;
}

.tf2-portal__receipt-preview {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    background: var(--tf2p-gray-100);
    border-radius: 12px;
    margin: 14px 0 10px;
}

.tf2-portal__receipt-note {
    font-size: 13px;
    color: var(--tf2p-gray-700);
    line-height: 1.6;
    margin: 0 0 10px;
}

#tf2pp-receipt-flow .tf2p-field {
    margin-bottom: 12px;
}

.tf2-portal__note {
    font-size: 13.5px;
    color: var(--tf2p-gray-700);
    line-height: 1.7;
    margin: 0 0 8px;
}

.tf2-portal__note:last-child {
    margin-bottom: 0;
}

.tf2-portal__help {
    text-align: center;
    font-size: 12.5px;
    color: var(--tf2p-gray-500);
    margin-top: 22px;
    line-height: 1.7;
}

.tf2-portal__help a {
    color: var(--tf2p-gray-700);
}
