/* Tweller Flow v2.9 — Client Tracker + Gallery
   Design: Stripe-inspired, Brand colors: black, white, gold (#C9A84C) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --tf-gold: #C9A84C;
    --tf-gold-light: #D4B96A;
    --tf-gold-dark: #B0922F;
    --tf-black: #0A0A0A;
    --tf-dark: #1A1A1A;
    --tf-gray-900: #1F1F1F;
    --tf-gray-700: #404040;
    --tf-gray-500: #737373;
    --tf-gray-400: #A3A3A3;
    --tf-gray-300: #D4D4D4;
    --tf-gray-200: #E5E5E5;
    --tf-gray-100: #F5F5F5;
    --tf-white: #FFFFFF;
    --tf-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Hide WordPress page title/hero when tracker is present ── */
.tf2-tracker ~ .entry-title,
.tf2-tracker ~ .page-title,
body.page .entry-header,
body.page .page-header,
body.page .entry-title,
body.page .page-title,
body.page .ast-archive-description,
body.page article > header,
body.page .hero-section,
body.page .page-hero {
    display: none !important;
}

.tf2-tracker {
    max-width: 480px;
    margin: 0 auto;
    padding: 24px 24px 32px;
    font-family: var(--tf-font);
    -webkit-font-smoothing: antialiased;
}

/* ── Header ─────────────────────────────────────────── */

.tf2-tracker__header {
    text-align: center;
    margin-bottom: 28px;
}

.tf2-tracker__greeting {
    font-size: 15px;
    color: var(--tf-gray-500);
    margin: 0;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.tf2-tracker__greeting strong {
    color: var(--tf-black);
    font-weight: 600;
}

.tf2-tracker__meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.tf2-tracker__meta-item {
    font-size: 12px;
    color: var(--tf-gray-400);
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* ── Stages (center-aligned, Stripe-style) ─────────── */

.tf2-tracker__stages {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
}

.tf2-tracker__stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0;
    position: relative;
    width: 100%;
}

/* Connector Line — vertical between stages */
.tf2-tracker__stage-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.tf2-tracker__stage-line {
    width: 2px;
    height: 20px;
}

.tf2-tracker__stage--completed .tf2-tracker__stage-line { background: var(--tf-gold); }
.tf2-tracker__stage--current .tf2-tracker__stage-line:first-child { background: var(--tf-gold); }
.tf2-tracker__stage--current .tf2-tracker__stage-line:last-child { background: var(--tf-gray-200); }
.tf2-tracker__stage--upcoming .tf2-tracker__stage-line { background: var(--tf-gray-200); }

.tf2-tracker__stage:first-child .tf2-tracker__stage-line:first-child { display: none; }
.tf2-tracker__stage:last-child .tf2-tracker__stage-line:last-child { display: none; }

/* Dot */
.tf2-tracker__stage-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
}

.tf2-tracker__stage--completed .tf2-tracker__stage-dot {
    background: var(--tf-gold);
    color: var(--tf-white);
}

.tf2-tracker__stage--current .tf2-tracker__stage-dot {
    background: var(--tf-black);
    color: var(--tf-white);
    box-shadow: 0 0 0 4px rgba(10, 10, 10, 0.10);
}

.tf2-tracker__stage--upcoming .tf2-tracker__stage-dot {
    background: var(--tf-gray-200);
    color: var(--tf-gray-400);
    border: 2px solid var(--tf-gray-200);
}

/* Pulse animation */
.tf2-tracker__stage-pulse {
    width: 10px;
    height: 10px;
    background: var(--tf-gold);
    border-radius: 50%;
    animation: tf-tracker-pulse 2s infinite;
}

@keyframes tf-tracker-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.7); }
}

/* Content — centered below the dot */
.tf2-tracker__stage-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 0 0;
}

.tf2-tracker__stage-icon {
    display: none; /* Icons are in the dot context now; hide the separate icon */
}

.tf2-tracker__stage-info {
    text-align: center;
}

.tf2-tracker__stage-name {
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.tf2-tracker__stage--completed .tf2-tracker__stage-name { color: var(--tf-gold-dark); }
.tf2-tracker__stage--current .tf2-tracker__stage-name { color: var(--tf-black); font-weight: 700; }
.tf2-tracker__stage--upcoming .tf2-tracker__stage-name { color: var(--tf-gray-400); font-weight: 500; }

/* ── Progress Bar ──────────────────────────────────── */

.tf2-tracker__progress {
    margin-top: 4px;
    width: 120px;
}

.tf2-tracker__progress-bar {
    width: 100%;
    height: 3px;
    background: var(--tf-gray-200);
    border-radius: 100px;
    overflow: hidden;
}

.tf2-tracker__progress-fill {
    height: 100%;
    background: var(--tf-gold);
    border-radius: 100px;
    transition: width 0.6s ease;
    min-width: 0;
}

/* ── Footer ─────────────────────────────────────────── */

.tf2-tracker__footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--tf-gray-200);
}

.tf2-tracker__code {
    font-size: 13px;
    color: var(--tf-gray-500);
    margin: 0 0 4px 0;
}

.tf2-tracker__code strong {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    background: var(--tf-gray-100);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--tf-black);
}

.tf2-tracker__refresh {
    font-size: 11px;
    color: var(--tf-gray-400);
    margin: 0;
}

/* ── Lookup Form ────────────────────────────────────── */

.tf2-tracker--lookup .tf2-tracker__header,
.tf2-tracker--error .tf2-tracker__header {
    margin-bottom: 24px;
}

.tf2-tracker--lookup .tf2-tracker__header h2,
.tf2-tracker--error .tf2-tracker__header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--tf-black);
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

.tf2-tracker__form {
    max-width: 400px;
    margin: 0 auto;
}

.tf2-tracker__input-group {
    display: flex;
    gap: 8px;
}

.tf2-tracker__input {
    flex: 1;
    padding: 12px 16px;
    font-family: var(--tf-font);
    font-size: 15px;
    border: 1px solid var(--tf-gray-200);
    border-radius: 8px;
    text-align: center;
    letter-spacing: 2px;
    font-weight: 600;
    background: var(--tf-white);
    color: var(--tf-black);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.tf2-tracker__input:focus {
    outline: none;
    border-color: var(--tf-black);
    box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.08);
}

.tf2-tracker__btn {
    padding: 12px 24px;
    background: var(--tf-black);
    color: var(--tf-white);
    border: none;
    border-radius: 8px;
    font-family: var(--tf-font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    letter-spacing: -0.01em;
}

.tf2-tracker__btn:hover {
    background: var(--tf-gray-700);
}

/* ── Error State ────────────────────────────────────── */

.tf2-tracker--error .tf2-tracker__header h2 {
    color: #DC2626;
}

/* ══════════════════════════════════════════════════════
   Hero Cover — Full-width with Ken Burns bg
   ══════════════════════════════════════════════════════ */

.tf2-hero-cover {
    position: relative;
    width: 100vw;
    height: 85vh;
    min-height: 500px;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    margin-top: 32px;
}

.tf2-hero-cover__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    animation: tf-kenburns 12s ease-in-out forwards;
    will-change: transform;
}

@keyframes tf-kenburns {
    0%   { transform: scale(1.0); }
    100% { transform: scale(1.08); }
}

.tf2-hero-cover__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.tf2-hero-cover__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
}

.tf2-hero-cover__name {
    color: var(--tf-white);
    font-family: var(--tf-font);
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 6px;
    margin: 0 0 12px 0;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.tf2-hero-cover__date {
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--tf-font);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 3px;
    margin: 0 0 40px 0;
}

.tf2-hero-cover__btn {
    display: inline-block;
    padding: 14px 40px;
    background: transparent;
    color: var(--tf-white);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    font-family: var(--tf-font);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s;
}

.tf2-hero-cover__btn:hover {
    background: var(--tf-gold);
    border-color: var(--tf-gold);
    color: var(--tf-black);
}

@media (max-width: 640px) {
    .tf2-hero-cover {
        height: 70vh;
        min-height: 400px;
    }
    .tf2-hero-cover__name {
        font-size: 28px;
        letter-spacing: 4px;
    }
    .tf2-hero-cover__date {
        font-size: 11px;
    }
    .tf2-hero-cover__btn {
        padding: 12px 32px;
        font-size: 11px;
    }
}

/* ══════════════════════════════════════════════════════
   Gallery
   ══════════════════════════════════════════════════════ */

.tf2-gallery {
    margin-top: 32px;
    font-family: var(--tf-font);
}

/* ── Password Gate ─────────────────────────────────── */

.tf2-gallery__password {
    text-align: center;
    background: var(--tf-gray-100);
    border: 1px solid var(--tf-gray-200);
    border-radius: 12px;
    padding: 40px 24px;
    max-width: 500px;
    margin: 0 auto;
}

.tf2-gallery__lock-icon {
    color: var(--tf-gray-400);
    margin-bottom: 12px;
}

.tf2-gallery__password p {
    font-size: 14px;
    color: var(--tf-gray-500);
    margin: 0 0 20px 0;
}

.tf2-gallery__password-form {
    display: flex;
    gap: 8px;
    max-width: 320px;
    margin: 0 auto;
}

.tf2-gallery__pw-input {
    flex: 1;
    padding: 12px 16px;
    font-family: var(--tf-font);
    font-size: 14px;
    border: 1px solid var(--tf-gray-200);
    border-radius: 8px;
    text-align: center;
    background: var(--tf-white);
    color: var(--tf-black);
}

.tf2-gallery__pw-input:focus {
    outline: none;
    border-color: var(--tf-black);
    box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.08);
}

.tf2-gallery__pw-btn {
    padding: 12px 24px;
    background: var(--tf-black);
    color: var(--tf-white);
    border: none;
    border-radius: 8px;
    font-family: var(--tf-font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.tf2-gallery__pw-btn:hover { background: var(--tf-gray-700); }

.tf2-gallery__pw-error {
    color: #DC2626;
    font-size: 13px;
    margin-top: 12px;
}

/* ══════════════════════════════════════════════════════
   Gallery Toolbar + shared gallery button (.tf2-gbtn)
   Mobile-first: the actions are a 2-column grid of
   full-width buttons; from 641px up they collapse into a
   single right-aligned row beside the client name.
   ══════════════════════════════════════════════════════ */

.tf2-gallery__toolbar {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-bottom: 4px;
    border-bottom: 1px solid var(--tf-gray-200);
    background: var(--tf-white);
    box-sizing: border-box;
}

.tf2-gallery__toolbar-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 14px 16px;
    box-sizing: border-box;
}

.tf2-gallery__toolbar-name {
    font-family: var(--tf-font);
    font-size: 12px;
    font-weight: 700;
    color: var(--tf-black);
    letter-spacing: 1.2px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.tf2-gallery__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
}

/* ── Shared gallery button ── */

.tf2-gbtn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 12px;
    box-sizing: border-box;
    border: 1px solid var(--tf-gray-200);
    border-radius: 8px;
    background: var(--tf-white);
    color: var(--tf-gray-700);
    font-family: var(--tf-font);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    min-width: 0;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    appearance: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}

.tf2-gbtn svg {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    display: block;
}

.tf2-gbtn__label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tf2-gbtn:hover {
    background: var(--tf-gray-100);
    border-color: var(--tf-gray-300);
    color: var(--tf-black);
}

.tf2-gbtn:focus-visible {
    outline: none;
    border-color: var(--tf-gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.32);
}

.tf2-gbtn:active { transform: scale(0.985); }

.tf2-gbtn[disabled],
.tf2-gbtn[aria-disabled="true"] {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}

/* Toggled-on secondary button (e.g. selection mode active) */
.tf2-gbtn--on {
    background: var(--tf-black);
    border-color: var(--tf-black);
    color: var(--tf-white);
}
.tf2-gbtn--on:hover {
    background: var(--tf-gray-900);
    border-color: var(--tf-gray-900);
    color: var(--tf-white);
}

/* The single primary action */
.tf2-gbtn--primary {
    background: var(--tf-black);
    border-color: var(--tf-black);
    color: var(--tf-gold);
}

.tf2-gbtn--primary:hover {
    background: var(--tf-gold);
    border-color: var(--tf-gold);
    color: var(--tf-black);
    box-shadow: 0 2px 10px rgba(201, 168, 76, 0.3);
}

@media (min-width: 641px) {
    .tf2-gallery__toolbar-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        padding: 14px 24px;
    }
    .tf2-gallery__toolbar-name { font-size: 13px; }
    .tf2-gallery__actions {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 10px;
    }
    .tf2-gbtn { padding: 0 16px; }
}

/* Very narrow phones: trim the padding, never the legibility */
@media (max-width: 380px) {
    .tf2-gallery__toolbar-inner { padding: 12px 12px; gap: 10px; }
    .tf2-gallery__actions { gap: 6px; }
    .tf2-gbtn {
        font-size: 12px;
        gap: 6px;
        padding: 0 8px;
    }
    .tf2-gbtn svg { width: 15px; height: 15px; }
}

/* ── Photo Grid (masonry-like via columns) ──────── */

.tf2-gallery__grid {
    column-count: 4;
    column-gap: 6px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 0 4px;
    box-sizing: border-box;
}

@media (max-width: 1100px) {
    .tf2-gallery__grid { column-count: 3; }
}

@media (max-width: 700px) {
    .tf2-gallery__grid { column-count: 2; column-gap: 4px; }
}

.tf2-gallery__item {
    position: relative;
    break-inside: avoid;
    margin-bottom: 6px;
    overflow: hidden;
    cursor: pointer;
    background: var(--tf-gray-100);
    line-height: 0;
}

@media (max-width: 700px) {
    .tf2-gallery__item { margin-bottom: 4px; }
}

.tf2-gallery__item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.2s;
}

.tf2-gallery__item:hover::after {
    background: rgba(0,0,0,0.06);
}

.tf2-gallery__item img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.4s, transform 0.3s;
}

.tf2-gallery__item:hover img {
    transform: scale(1.02);
}

.tf2-gallery__item img.loading {
    opacity: 0;
}

/* ── Lightbox ──────────────────────────────────────── */

.tf2-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.tf2-lightbox__content {
    max-width: 92vw;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tf2-lightbox__img {
    max-width: 100%;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 2px;
    user-select: none;
}

.tf2-lightbox__close {
    position: absolute;
    top: 16px;
    right: 20px;
    /* fixed box + flex centring: the bare glyph sat off-centre
       because its line-box carried the font's own metrics */
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: none;
    border: none;
    color: var(--tf-white);
    font-size: 34px;
    line-height: 0;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.15s;
    z-index: 10;
}

.tf2-lightbox__close:hover { opacity: 1; }

.tf2-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.08);
    border: none;
    color: var(--tf-white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: opacity 0.15s, background 0.15s;
    z-index: 10;
}

.tf2-lightbox__nav:hover {
    opacity: 1;
    background: rgba(255,255,255,0.15);
}

.tf2-lightbox__prev { left: 16px; }
.tf2-lightbox__next { right: 16px; }

.tf2-lightbox__bar {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(0,0,0,0.6);
    padding: 8px 20px;
    border-radius: 100px;
    backdrop-filter: blur(4px);
}

.tf2-lightbox__counter {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.tf2-lightbox__download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--tf-white);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    opacity: 0.7;
    transition: opacity 0.15s;
    cursor: pointer;
    letter-spacing: -0.01em;
}

.tf2-lightbox__download:hover {
    opacity: 1;
    color: var(--tf-white);
}

/* ── Gallery Messages & Loading ──────────────────────── */

.tf2-gallery__message {
    text-align: center;
    padding: 40px 24px;
    font-size: 14px;
    color: var(--tf-gray-500);
    line-height: 1.6;
    background: var(--tf-gray-100);
    border-radius: 8px;
    margin: 20px 0;
}

.tf2-hero-cover--loading .tf2-hero-cover__bg {
    background: linear-gradient(135deg, #F3F4F6 25%, #E5E5E5 50%, #F3F4F6 75%);
    background-size: 200% 100%;
    animation: tf-shimmer 1.5s ease-in-out infinite;
}

@keyframes tf-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.tf2-gallery__img-error {
    background: var(--tf-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

/* ── Receipt Upload ────────────────────────────────── */
.tf2-tracker__receipt {
    background: var(--tf-white);
    border: 1px solid var(--tf-gray-200);
    border-radius: 12px;
    padding: 24px;
    margin-top: 32px;
    text-align: center;
}
.tf2-tracker__receipt-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}
.tf2-tracker__receipt-header h3 {
    margin: 0;
    font-size: 18px;
}
.tf2-tracker__banking-info {
    background: var(--tf-gray-100);
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--tf-gray-700);
    margin-bottom: 16px;
    text-align: left;
    white-space: pre-wrap;
    font-family: monospace;
}
.tf2-tracker__receipt-desc {
    font-size: 14px;
    color: var(--tf-gray-500);
    margin-bottom: 20px;
}
.tf2-tracker__receipt-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tf2-tracker__receipt-file {
    padding: 10px;
    border: 1px dashed var(--tf-gray-300);
    border-radius: 8px;
    background: var(--tf-gray-100);
    width: 100%;
    box-sizing: border-box;
}
.tf2-tracker__btn--full {
    width: 100%;
}
.tf2-tracker__receipt-status {
    font-size: 14px;
    font-weight: 500;
}

@keyframes tf-spin {
    to {
        transform: rotate(360deg);
    }
}
/* -- Receipt Form (Stripe-style) ------------------------- */
.tf2-tracker__receipt {
    background: var(--tf-white);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
    border-radius: 12px;
    padding: 24px;
    margin: 16px 0 24px 0;
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
    font-family: var(--tf-font);
    text-align: left;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tf2-tracker__receipt:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.03);
    transform: translateY(-1px);
}

.tf2-tracker__receipt--verifying {
    background: #FAFAFA;
    border-color: #E5E7EB;
}

.tf2-tracker__receipt--verifying .tf2-tracker__receipt-header h3 {
    color: var(--tf-black);
}

.tf2-tracker__receipt-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    padding-bottom: 12px;
}

.tf2-tracker__receipt-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--tf-black);
    letter-spacing: -0.01em;
}

.tf2-tracker__banking-info, .tf2-tracker__receipt-desc {
    font-size: 13px;
    color: var(--tf-gray-500);
    line-height: 1.5;
    margin-bottom: 16px;
}
.tf2-tracker__banking-info p { margin: 0 0 8px 0; font-family: monospace; background: var(--tf-gray-100); padding: 8px; border-radius: 6px; color: var(--tf-black); }

.tf2-tracker__receipt-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--tf-gray-500);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tf2-tracker__receipt-file {
    width: 100%;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 13px;
    margin-bottom: 16px;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: var(--tf-white);
    color: var(--tf-black);
    box-sizing: border-box;
}

.tf2-tracker__receipt-file:focus {
    outline: none;
    border-color: var(--tf-black);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.tf2-tracker__receipt-form button {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--tf-black);
    color: var(--tf-gold);
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.tf2-tracker__receipt-form button:hover {
    background: #222;
}

.tf2-tracker__receipt-form button:active {
    transform: scale(0.98);
}

/* Smooth receipt-upload spinner */
@keyframes tf2-spin {
    to { transform: rotate(360deg); }
}

/* ══════════════════════════════════════════════════════
   Gallery-first layout: once photos are delivered the
   hero leads the page and the pipeline compresses below
   ══════════════════════════════════════════════════════ */
.tf2-tracker--gallery-first {
    display: flex;
    flex-direction: column;
}
.tf2-tracker--gallery-first .tf2-gallery          { order: 1; }
.tf2-tracker--gallery-first .tf2-tracker__header  { order: 2; margin-top: 34px; }
.tf2-tracker--gallery-first .tf2-tracker__stages  { order: 3; }
.tf2-tracker--gallery-first .tf2-tracker__footer  { order: 4; }

/* Compress the pipeline once it's just a recap */
.tf2-tracker--gallery-first .tf2-tracker__header .tf2-tracker__greeting {
    font-size: 15px;
}
.tf2-tracker--gallery-first .tf2-tracker__stages {
    transform-origin: top center;
    opacity: 0.82;
}
.tf2-tracker--gallery-first .tf2-tracker__stage {
    padding: 4px 0;
}
.tf2-tracker--gallery-first .tf2-tracker__stage-name {
    font-size: 13px;
}
.tf2-tracker--gallery-first .tf2-tracker__stage-icon {
    transform: scale(0.8);
}
.tf2-tracker--gallery-first .tf2-tracker__stage-dot {
    transform: scale(0.8);
}

/* ══════════════════════════════════════════════════════
   Slideshow
   ══════════════════════════════════════════════════════ */
.tf2-slideshow {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: #000;
    overflow: hidden;
}
.tf2-slideshow__layer {
    position: absolute;
    inset: 0;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.4s ease-in-out;
    will-change: opacity, transform;
}
.tf2-slideshow__layer--visible {
    opacity: 1;
}

.tf2-slideshow__close,
.tf2-slideshow__pause {
    position: absolute;
    z-index: 5;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    opacity: 0.85;
    transition: opacity 0.4s, background 0.2s;
}
.tf2-slideshow__close { top: 18px; right: 18px; }
.tf2-slideshow__pause { bottom: 18px; right: 18px; }
.tf2-slideshow__close:hover,
.tf2-slideshow__pause:hover { background: rgba(255, 255, 255, 0.3); }

/* controls melt away while watching */
.tf2-slideshow--idle .tf2-slideshow__close,
.tf2-slideshow--idle .tf2-slideshow__pause {
    opacity: 0;
}

/* ══════════════════════════════════════════════════════
   Lightbox arrows: faint, and they fade away while viewing
   ══════════════════════════════════════════════════════ */
.tf2-lightbox__nav {
    opacity: 0.45;
    transition: opacity 0.6s ease;
}
.tf2-lightbox__nav:hover {
    opacity: 0.9;
}
.tf2-lightbox--idle .tf2-lightbox__nav,
.tf2-lightbox--idle .tf2-lightbox__close,
.tf2-lightbox--idle .tf2-lightbox__bar {
    opacity: 0;
    transition: opacity 0.8s ease;
}
.tf2-lightbox__close,
.tf2-lightbox__bar {
    transition: opacity 0.6s ease;
}

/* ── Print Store integration (Order Prints) ────────── */

/* Cart-count badge inside the primary "Order Prints" button */
.tf2-prints-badge {
    flex: 0 0 auto;
    min-width: 18px;
    height: 18px;
    border-radius: 100px;
    background: var(--tf-gold);
    color: var(--tf-black);
    font-family: var(--tf-font);
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-sizing: border-box;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
}

.tf2-gbtn--primary:hover .tf2-prints-badge {
    background: var(--tf-black);
    color: var(--tf-gold);
}

/* Grid tile print button (top-right of each photo) */
.tf2-item-print {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: none;
    border-radius: 100px;
    background: rgba(10, 10, 10, 0.62);
    color: #fff;
    padding: 7px 9px;
    cursor: pointer;
    line-height: 0;
    opacity: 0;
    transition: opacity 0.15s, background 0.15s, transform 0.12s;
    backdrop-filter: blur(3px);
}

.tf2-gallery__item:hover .tf2-item-print,
.tf2-item-print--active {
    opacity: 1;
}

.tf2-item-print:hover {
    background: var(--tf-gold);
    color: var(--tf-black);
}

.tf2-item-print:active {
    transform: scale(0.94);
}

.tf2-item-print--active {
    background: var(--tf-gold);
    color: var(--tf-black);
}

.tf2-item-print__count {
    min-width: 15px;
    height: 15px;
    border-radius: 100px;
    background: var(--tf-black);
    color: var(--tf-gold);
    font-family: var(--tf-font);
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-sizing: border-box;
    line-height: 1;
}

/* Touch devices don't hover — keep the button visible but subtle */
@media (hover: none) {
    .tf2-item-print {
        opacity: 0.85;
    }
}

/* Lightbox print button — lives in .tf2-lightbox__bar so it inherits
   the tf2-lightbox--idle fade with the rest of the controls */
.tf2-lightbox__print {
    border: none;
    background: none;
    padding: 0;
    font-family: inherit;
    gap: 6px;
}

.tf2-lightbox__print:hover {
    color: var(--tf-gold-light);
}

.tf2-prints-badge--lb {
    background: var(--tf-gold);
    color: var(--tf-black);
    min-width: 16px;
    height: 16px;
    font-size: 10px;
}

/* ══════════════════════════════════════════════════════
   Batch print selection (tf2-printsel-*)
   Namespaced so it can never collide with the culling
   shortcode's tc-* selection UI.
   ══════════════════════════════════════════════════════ */

/* Circular tick overlay — inert until the grid is in selection mode */
.tf2-printsel-check {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: rgba(10, 10, 10, 0.35);
    color: transparent;
    display: none;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s;
    pointer-events: none;
}

.tf2-printsel-check svg {
    width: 14px;
    height: 14px;
    display: block;
}

.tf2-printsel-on .tf2-printsel-check { display: flex; }

/* The per-photo print icon steps aside while picking in bulk */
.tf2-printsel-on .tf2-item-print { display: none; }

.tf2-printsel-on .tf2-gallery__item { cursor: pointer; }

.tf2-printsel-on .tf2-gallery__item--printsel .tf2-printsel-check {
    background: var(--tf-gold);
    border-color: var(--tf-gold);
    color: var(--tf-black);
    transform: scale(1.06);
}

.tf2-printsel-on .tf2-gallery__item--printsel::after {
    background: rgba(201, 168, 76, 0.22);
    box-shadow: inset 0 0 0 3px var(--tf-gold);
}

/* Leave room for the sticky bar so the last row stays reachable */
.tf2-gallery--printsel { padding-bottom: 148px; }

/* ── Sticky action bar ── */

.tf2-printsel-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99998;
    background: var(--tf-white);
    border-top: 1px solid var(--tf-gray-200);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.10);
    font-family: var(--tf-font);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.tf2-printsel-bar__inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 12px 16px;
    box-sizing: border-box;
}

.tf2-printsel-bar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.tf2-printsel-bar__count {
    font-size: 13px;
    font-weight: 700;
    color: var(--tf-black);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.tf2-printsel-bar__done {
    border: none;
    background: none;
    padding: 8px 4px;
    min-height: 32px;
    font-family: var(--tf-font);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--tf-gray-500);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s;
}

.tf2-printsel-bar__done:hover { color: var(--tf-black); }

.tf2-printsel-bar__done:focus-visible {
    outline: none;
    color: var(--tf-black);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.32);
    border-radius: 6px;
}

.tf2-printsel-bar__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
}

.tf2-printsel-bar__continue { grid-column: 1 / -1; }

@media (min-width: 641px) {
    .tf2-printsel-bar__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        padding: 12px 24px;
    }
    .tf2-printsel-bar__head { flex: 0 0 auto; gap: 16px; }
    .tf2-printsel-bar__count { font-size: 14px; }
    .tf2-printsel-bar__actions {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
    }
    .tf2-printsel-bar__continue { grid-column: auto; }
    .tf2-gallery--printsel { padding-bottom: 96px; }
}

@media (max-width: 380px) {
    .tf2-printsel-bar__inner { padding: 10px 12px; gap: 8px; }
    .tf2-printsel-bar__actions { gap: 6px; }
    .tf2-printsel-bar__count { font-size: 12.5px; }
}

/* ── WiPay online payment card ─────────────────────── */
.tf2-wipay {
    background: var(--tf-white);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
    border-radius: 12px;
    padding: 24px;
    margin: 16px 0 0;
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
    font-family: var(--tf-font);
    text-align: left;
    transition: box-shadow 0.2s;
}
.tf2-wipay:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.03);
}
.tf2-wipay__label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #C9A227;
    margin-bottom: 6px;
}
.tf2-wipay__amount {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #101010;
    margin-bottom: 16px;
}
.tf2-wipay__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: #101010;
    color: #FFFFFF !important;
    border-radius: 8px;
    padding: 13px 16px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none !important;
    box-sizing: border-box;
    transition: background 0.2s, color 0.2s, transform 0.1s;
}
.tf2-wipay__btn:hover {
    background: #C9A227;
    color: #101010 !important;
}
.tf2-wipay__btn:active {
    transform: scale(0.98);
}
.tf2-wipay__sub {
    margin: 12px 0 0;
    font-size: 12px;
    color: var(--tf-gray-500);
    text-align: center;
    line-height: 1.5;
}
.tf2-wipay-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 420px;
    margin: 20px 0 0;
    color: var(--tf-gray-500);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: var(--tf-font);
}
.tf2-wipay-divider::before,
.tf2-wipay-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--tf-gray-200);
}

/* ── Payment return banners ────────────────────────── */
.tf2-pay-banner {
    border-radius: 12px;
    border: 1px solid;
    padding: 16px 18px;
    margin: 0 0 20px;
    font-family: var(--tf-font);
}
.tf2-pay-banner--success {
    background: #F6FBF6;
    border-color: #CDE8CF;
    color: #14532D;
}
.tf2-pay-banner--error {
    background: #FDF7F7;
    border-color: #F0D5D5;
    color: #7F1D1D;
}
.tf2-pay-banner__title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.tf2-pay-banner__msg {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}
.tf2-pay-banner__txn {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    opacity: 0.7;
}
