/*
 * _home.css
 *
 * USED BY:
 *   - home-user-reciept.html
 *   - home.html
 */

.greeting {
    padding: var(--pad) var(--pad) 0.75rem;
    text-align: center;
}

.greeting h1 {
    font-size: 3rem;
}

.label {
    text-transform: uppercase;
    display: inline-block;
    padding: 0 var(--pad) 0.25rem;
    border-bottom: 3px solid var(--black);
    margin: 0 0 1rem var(--pad);
}

/* ── GIF / order reveal ──────────────────────────── */
.gif {
    width: 100%;
    overflow: hidden;
    background: var(--bg);
    padding: 0.75rem var(--pad) 0;
    position: relative;
    z-index: 2;
    transition: max-height 0.6s ease, padding 0.6s ease;
}

.gif img {
    width: 100%;
    display: block;
    border-radius: 16px;
}

.gif.hidden {
    max-height: 0;
    padding: 0;
    visibility: hidden;
}

.order {
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    position: relative;
    z-index: 1;
    transition: max-height 0.8s ease;
}

.order .progress h3,
.order .progress .status,
.order .receipt-link,
.order .thanks,
.order .receipt table,
.order .receipt > .row,
.order .summary {
    opacity: 0;
    transition: opacity 0.8s ease 0.3s;
}

.order.visible {
    max-height: 2000px;
    overflow: visible;
    visibility: visible;
}

.order.visible .progress h3,
.order.visible .progress .status,
.order.visible .receipt-link,
.order.visible .thanks,
.order.visible .receipt table,
.order.visible .receipt > .row,
.order.visible .summary {
    opacity: 1;
}

/* ── Progress bar ────────────────────────────────── */
.progress {
    margin: 0.9rem var(--pad);
    padding: 1.75rem 2.5rem;
    background: var(--gold);
    border-radius: 16px;
}

.progress h3 {
    margin-bottom: 0.5rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-header h3 {
    margin-bottom: 0;
}

.progress-arrow {
    font-size: 1rem;
    color: var(--black);
}

.bar {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--black);
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.bar div {
    height: 100%;
    border-radius: 4px;
    width: 10%;
    background: linear-gradient(90deg, var(--red), var(--green));
    transition: width 1s ease;
}

.status {
    position: relative;
    height: 1.25em;
    overflow: hidden;
}

.progress p {
    font-size: 0.95rem;
    font-style: italic;
    position: absolute;
    left: 0;
    top: 0;
    white-space: nowrap;
    visibility: hidden;
}

.progress p.visible {
    visibility: visible;
}

/* ── Receipt ─────────────────────────────────────── */
.receipt {
    background: var(--white);
    margin: 0 var(--pad);
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 25px 25px;
    max-height: 800px;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.receipt.collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.receipt-link {
    text-align: center;
    font-size: var(--font-sm);
    color: var(--link-blue);
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.6;
}

.thanks {
    text-align: center;
    padding: 0 0 1rem;
}

.thanks h2 {
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.thanks p {
    font-size: var(--font-sm);
    color: var(--dk);
    line-height: 1.5;
    max-width: 280px;
    margin: 0 auto;
}

.receipt table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.receipt th {
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase;
    text-align: left;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--black);
}

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

.receipt td {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    vertical-align: top;
}

.receipt td:first-child {
    text-align: center;
    width: 50px;
}

.receipt .muted {
    font-style: italic;
    font-size: 0.75rem;
    display: block;
}

.receipt > .row {
    padding: 0.5rem 0;
    margin-top: 0.25rem;
    line-height: 2;
}
