/* GVLS - checkout.css (membership registration) */

/* Flush the hero to the header */
body.gvls-registration-checkout .gvls-main { padding-top: 0 !important; margin-top: 0 !important; }

.gvls-reg__hero { background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary)); color: #fff; padding: var(--space-16) var(--space-5) var(--space-12); text-align: center; }
.gvls-reg__hero-inner { max-width: var(--width-narrow); margin-inline: auto; }
.gvls-reg__title { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, var(--text-4xl)); color: #fff; margin-bottom: var(--space-3); }
.gvls-reg__subtitle { color: rgba(255,255,255,.85); font-size: var(--text-lg); margin: 0; }

.gvls-reg__body { padding-block: var(--space-12); }

.gvls-reg__grid { display: grid; gap: var(--space-8); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .gvls-reg__grid { grid-template-columns: 1.6fr 1fr; } }
.gvls-reg__main { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--space-8); }
.gvls-checkout-fields { display: flex; flex-direction: column; gap: var(--space-4); }
.gvls-field--tier { margin-top: var(--space-2); }
.gvls-field-row--password { margin-top: var(--space-2); }
.gvls-password-input { position: relative; }
.gvls-password-input input { width: 100%; padding-right: 5.5rem; }
.gvls-password-visibility {
    position: absolute;
    top: 50%;
    right: .55rem;
    transform: translateY(-50%);
    min-width: 4.25rem;
    padding: .45rem .6rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    color: var(--color-primary);
    font-family: inherit;
    font-size: var(--text-xs);
    font-weight: 700;
    cursor: pointer;
}
.gvls-password-visibility:hover,
.gvls-password-visibility:focus-visible { background: #e8eef7; outline: none; }
.gvls-reg__account-note {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-4);
    border: 1px solid rgba(58, 125, 68, .22);
    border-radius: var(--radius-md);
    background: #f2faf4;
}
.gvls-reg__account-note strong { color: var(--color-accent-dark); }
.gvls-reg__account-note span { color: var(--color-text-secondary); font-size: var(--text-sm); }

.gvls-reg__aside { position: relative; }
@media (min-width: 900px) { .gvls-reg__aside { position: sticky; top: calc(var(--header-height) + var(--space-5)); } }
.gvls-reg__summary { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: var(--space-6); }
.gvls-reg__summary h3 { font-size: var(--text-lg); margin-bottom: var(--space-4); }

/* Tidy the WC order review table inside our summary */
.gvls-reg__summary table.shop_table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.gvls-reg__summary table.shop_table th, .gvls-reg__summary table.shop_table td { padding: var(--space-2) 0; text-align: left; }
.gvls-reg__summary table.shop_table tfoot th, .gvls-reg__summary .order-total .amount { font-weight: 700; color: var(--color-primary); }
.gvls-reg__summary #payment { margin-top: var(--space-4); }
.gvls-reg__summary #payment ul.payment_methods { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.gvls-reg__summary #place_order { width: 100%; background: var(--color-accent); color: #fff; border: 0; padding: var(--space-4); border-radius: var(--radius-md); font-weight: 700; font-size: var(--text-base); cursor: pointer; }
.gvls-reg__summary #place_order:hover { background: var(--color-accent-dark); }

/* The registration page already renders its own hero. Suppress the generic
   page shell spacing so the checkout begins directly below the site header. */
.gvls-page--checkout,
.gvls-checkout-page-content,
.gvls-checkout-page-content > .woocommerce {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: none;
}
body.gvls-registration-checkout .page-hero { display: none; }
body.gvls-registration-checkout .gvls-page > .gvls-container,
body.gvls-registration-checkout .entry-content {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: none;
}

/* Registration summary: intentionally not styled as a shop basket. */
.gvls-registration-review {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: var(--space-5);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-bg);
}
.gvls-registration-review__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    align-items: start;
    gap: var(--space-4);
    padding: var(--space-4);
    border-bottom: 1px solid var(--color-border);
}
.gvls-registration-review__row:last-child { border-bottom: 0; }
.gvls-registration-review__row span {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
}
.gvls-registration-review__row strong {
    color: var(--color-text);
    font-size: var(--text-sm);
    text-align: right;
    overflow-wrap: anywhere;
}
.gvls-registration-review__row--total {
    background: #fff;
    align-items: center;
}
.gvls-registration-review__row--total span,
.gvls-registration-review__row--total strong {
    color: var(--color-primary);
    font-size: var(--text-base);
    font-weight: 800;
}
.gvls-registration-review__row--total .amount { color: var(--color-primary); }

@media (max-width: 520px) {
    .gvls-registration-review__row { grid-template-columns: 1fr; gap: var(--space-1); }
    .gvls-registration-review__row strong { text-align: left; }
}

/* -------------------------------------------------------------------------
 * Conference checkout
 * ---------------------------------------------------------------------- */
.gvls-conf-checkout {
    background: var(--color-bg);
    min-height: 70vh;
}

.gvls-conf-checkout__hero {
    background:
        radial-gradient(circle at 82% 20%, rgba(76, 175, 97, .16), transparent 28%),
        linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: #fff;
    padding: clamp(3rem, 7vw, 5.5rem) var(--space-5);
    text-align: center;
}

.gvls-conf-checkout__hero-inner {
    width: min(760px, 100%);
    margin-inline: auto;
}

.gvls-conf-checkout__eyebrow,
.gvls-conf-checkout__section-kicker {
    display: block;
    margin-bottom: var(--space-2);
    color: var(--color-accent-light);
    font-size: var(--text-xs);
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.gvls-conf-checkout__hero h1 {
    margin: 0 0 var(--space-3);
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.15;
}

.gvls-conf-checkout__hero p {
    width: min(650px, 100%);
    margin: 0 auto;
    color: rgba(255, 255, 255, .84);
    font-size: clamp(.96rem, 1.7vw, 1.06rem);
    line-height: 1.7;
}

.gvls-conf-checkout__body {
    padding-block: clamp(2rem, 6vw, 4.5rem);
}

.gvls-conf-checkout__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
    align-items: start;
}

@media (min-width: 980px) {
    .gvls-conf-checkout__grid {
        grid-template-columns: minmax(0, 1.55fr) minmax(330px, .8fr);
    }
}

.gvls-conf-checkout__main {
    display: grid;
    gap: var(--space-6);
}

.gvls-conf-checkout__card,
.gvls-conf-checkout__summary {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.gvls-conf-checkout__card {
    padding: clamp(1.25rem, 4vw, 2rem);
}

.gvls-conf-checkout__section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-5);
    margin-bottom: var(--space-6);
}

.gvls-conf-checkout__section-head h2,
.gvls-conf-checkout__summary h2 {
    margin: 0;
    color: var(--color-text);
    font-size: clamp(1.2rem, 3vw, 1.55rem);
    line-height: 1.35;
}

.gvls-conf-checkout__edit-link,
.gvls-conf-checkout__conference-link {
    color: var(--color-primary);
    font-size: var(--text-sm);
    font-weight: 700;
    text-decoration: none;
}

.gvls-conf-checkout__edit-link:hover,
.gvls-conf-checkout__conference-link:hover {
    color: var(--color-accent-dark);
    text-decoration: underline;
}

.gvls-conf-checkout__member-row {
    display: flex;
    align-items: center;
    gap: var(--space-5);
}

.gvls-conf-checkout__member-row .gvls-avatar {
    flex: 0 0 auto;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px var(--color-border), var(--shadow-sm);
}

.gvls-conf-checkout__member-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
}

.gvls-conf-checkout__member-copy > strong {
    color: var(--color-text);
    font-size: var(--text-lg);
}

.gvls-conf-checkout__member-copy > span {
    max-width: 100%;
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    overflow-wrap: anywhere;
}

.gvls-conf-checkout__event-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
}

@media (min-width: 680px) {
    .gvls-conf-checkout__event-layout {
        grid-template-columns: minmax(180px, .72fr) minmax(0, 1.25fr);
        align-items: stretch;
    }
}

.gvls-conf-checkout__event-image {
    display: block;
    min-height: 190px;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--color-bg);
}

.gvls-conf-checkout__event-image img {
    width: 100%;
    height: 100%;
    min-height: 190px;
    object-fit: cover;
    transition: transform .25s ease;
}

.gvls-conf-checkout__event-image:hover img {
    transform: scale(1.025);
}

.gvls-conf-checkout__event-data {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

.gvls-conf-checkout__meta-row {
    display: grid;
    grid-template-columns: minmax(100px, .7fr) minmax(0, 1.3fr);
    gap: var(--space-4);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-border);
}

.gvls-conf-checkout__meta-row span {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
}

.gvls-conf-checkout__meta-row strong {
    color: var(--color-text);
    font-size: var(--text-sm);
    overflow-wrap: anywhere;
}

.gvls-conf-checkout__conference-link {
    margin-top: var(--space-4);
}

.gvls-conf-checkout__privacy-note {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-5);
    border: 1px solid rgba(58, 125, 68, .2);
    border-radius: var(--radius-md);
    background: #f2faf4;
}

.gvls-conf-checkout__privacy-note strong {
    color: var(--color-accent-dark);
}

.gvls-conf-checkout__privacy-note span {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: 1.6;
}

.gvls-conf-checkout__aside {
    position: relative;
}

@media (min-width: 980px) {
    .gvls-conf-checkout__aside {
        position: sticky;
        top: calc(var(--header-height) + var(--space-5));
    }

    body.admin-bar .gvls-conf-checkout__aside {
        top: calc(var(--header-height) + 32px + var(--space-5));
    }
}

.gvls-conf-checkout__summary {
    padding: clamp(1.25rem, 4vw, 1.75rem);
    box-shadow: var(--shadow-md);
}

.gvls-conf-checkout__summary > h2 {
    margin-bottom: var(--space-5);
}

.gvls-conf-checkout__summary #payment {
    margin-top: var(--space-5);
    padding-top: var(--space-5);
    border-top: 1px solid var(--color-border);
    background: transparent;
}

.gvls-conf-checkout__summary #payment ul.payment_methods {
    list-style: none;
    margin: 0 0 var(--space-5);
    padding: 0;
}

.gvls-conf-checkout__summary #payment ul.payment_methods > li {
    margin: 0;
    padding: var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
}

.gvls-conf-checkout__summary #payment .payment_box {
    margin: var(--space-3) 0 0;
    padding: var(--space-4);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
}

.gvls-conf-checkout__summary #payment .payment_box::before {
    display: none;
}

.gvls-conf-checkout__summary .place-order {
    margin: var(--space-5) 0 0;
    padding: 0;
}

.gvls-conf-checkout__summary #place_order {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: var(--radius-md);
    background: var(--color-accent);
    color: #fff;
    font-size: var(--text-base);
    font-weight: 800;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.gvls-conf-checkout__summary #place_order:hover {
    background: var(--color-accent-dark);
    transform: translateY(-1px);
}

.gvls-conf-checkout__summary .woocommerce-privacy-policy-text {
    color: var(--color-text-muted);
    font-size: var(--text-xs);
    line-height: 1.55;
}

@media (max-width: 679px) {
    .gvls-conf-checkout__section-head {
        flex-direction: column;
        gap: var(--space-3);
    }

    .gvls-conf-checkout__member-row {
        align-items: flex-start;
    }

    .gvls-conf-checkout__meta-row {
        grid-template-columns: 1fr;
        gap: var(--space-1);
    }
}

/* -------------------------------------------------------------------------
 * Conference registration confirmation
 * ---------------------------------------------------------------------- */
.woocommerce-order-received .gvls-page--checkout,
.woocommerce-order-received .gvls-checkout-page-content,
.woocommerce-order-received .gvls-checkout-page-content > .woocommerce {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.gvls-order-received {
    min-height: 72vh;
    background: var(--color-bg);
}

.gvls-order-received__hero {
    padding: clamp(2.75rem, 6vw, 4.5rem) var(--space-5);
    background:
        radial-gradient(circle at 82% 18%, rgba(76, 175, 97, .16), transparent 28%),
        linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: #fff;
    text-align: center;
}

.gvls-order-received__hero-inner {
    width: min(760px, 100%);
    margin-inline: auto;
}

.gvls-order-received__icon {
    display: inline-grid;
    width: 68px;
    height: 68px;
    margin-bottom: var(--space-5);
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
}

.gvls-order-received__icon .gvls-icon {
    width: 32px;
    height: 32px;
    stroke-width: 3;
}

.gvls-order-received.is-success .gvls-order-received__icon {
    border-color: rgba(255, 255, 255, .5);
    background: var(--color-accent);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .16);
}

.gvls-order-received.is-error .gvls-order-received__icon {
    background: rgba(220, 38, 38, .24);
}

.gvls-order-received__eyebrow,
.gvls-order-received__kicker {
    display: block;
    color: var(--color-accent-light);
    font-size: var(--text-xs);
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.gvls-order-received__hero h1 {
    width: min(680px, 100%);
    margin: var(--space-2) auto var(--space-3);
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4.2vw, 2.75rem);
    line-height: 1.2;
    text-wrap: balance;
}

.gvls-order-received__hero p {
    width: min(620px, 100%);
    margin: 0 auto;
    color: rgba(255, 255, 255, .84);
    font-size: clamp(.95rem, 1.65vw, 1.04rem);
    line-height: 1.65;
}

.gvls-order-received__container {
    padding-block: clamp(2rem, 6vw, 4.5rem);
}

.gvls-order-received__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
    align-items: start;
}

@media (min-width: 980px) {
    .gvls-order-received__layout {
        grid-template-columns: minmax(0, 1.45fr) minmax(330px, .75fr);
    }
}

.gvls-order-received__event-card,
.gvls-order-received__summary,
.gvls-order-received__panel {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.gvls-order-received__event-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 700px) {
    .gvls-order-received__event-card {
        grid-template-columns: minmax(240px, .82fr) minmax(0, 1.2fr);
    }
}

.gvls-order-received__image {
    display: block;
    min-height: 260px;
    overflow: hidden;
    background: var(--color-border);
}

.gvls-order-received__image img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    transition: transform .25s ease;
}

.gvls-order-received__image:hover img {
    transform: scale(1.025);
}

.gvls-order-received__event-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 2.25rem);
}

.gvls-order-received__event-content h2,
.gvls-order-received__summary h2,
.gvls-order-received__panel h1 {
    margin: var(--space-2) 0 var(--space-6);
    color: var(--color-text);
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    line-height: 1.35;
}

.gvls-order-received__event-content h2 a {
    color: inherit;
    text-decoration: none;
}

.gvls-order-received__event-content h2 a:hover {
    color: var(--color-primary-light);
}

.gvls-order-received__event-meta {
    display: grid;
    gap: var(--space-3);
}

.gvls-order-received__event-meta > div {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    color: var(--color-text-secondary);
    line-height: 1.55;
}

.gvls-order-received__event-meta .gvls-icon {
    flex: 0 0 auto;
    margin-top: 2px;
    color: var(--color-accent);
}

.gvls-order-received__summary {
    padding: clamp(1.5rem, 4vw, 2rem);
    box-shadow: var(--shadow-md);
}

@media (min-width: 980px) {
    .gvls-order-received__summary {
        position: sticky;
        top: calc(var(--header-height) + var(--space-5));
    }

    body.admin-bar .gvls-order-received__summary {
        top: calc(var(--header-height) + 32px + var(--space-5));
    }
}

.gvls-order-received__facts {
    margin: 0;
}

.gvls-order-received__facts > div {
    display: grid;
    grid-template-columns: minmax(110px, .8fr) minmax(0, 1.2fr);
    gap: var(--space-4);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-border);
}

.gvls-order-received__facts dt {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
}

.gvls-order-received__facts dd {
    margin: 0;
    color: var(--color-text);
    font-size: var(--text-sm);
    font-weight: 700;
    text-align: right;
    overflow-wrap: anywhere;
}

.gvls-order-received__facts-total dt,
.gvls-order-received__facts-total dd {
    color: var(--color-primary);
    font-size: var(--text-base);
    font-weight: 800;
}

.gvls-order-received__status {
    display: inline-flex;
    padding: .28rem .62rem;
    border-radius: var(--radius-full);
    background: #eef7f0;
    color: var(--color-accent-dark);
    font-size: var(--text-xs);
    font-weight: 800;
}

.gvls-order-received.is-pending .gvls-order-received__status {
    background: #fff7e8;
    color: var(--color-warning);
}

.gvls-order-received.is-error .gvls-order-received__status {
    background: #fff0f0;
    color: var(--color-error);
}

.gvls-order-received__actions {
    display: grid;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.gvls-order-received__actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.gvls-order-received__gateway,
.gvls-order-received__integrations {
    margin-top: var(--space-6);
}

.gvls-order-received__integrations:empty,
.gvls-order-received__gateway:empty {
    display: none;
}

.gvls-order-received__integrations .woocommerce-order-details,
.gvls-order-received__integrations .woocommerce-customer-details,
.gvls-order-received__integrations address {
    display: none !important;
}

.gvls-order-received__panel {
    width: min(680px, 100%);
    margin-inline: auto;
    padding: clamp(1.5rem, 5vw, 2.5rem);
    text-align: center;
}

.gvls-order-received__panel p {
    margin: 0 0 var(--space-6);
    color: var(--color-text-secondary);
}

@media (max-width: 560px) {
    .gvls-order-received__facts > div {
        grid-template-columns: 1fr;
        gap: var(--space-1);
    }

    .gvls-order-received__facts dd {
        text-align: left;
    }
}

.gvls-reg__account-note {
    display: grid;
    gap: var(--space-1);
    margin-top: var(--space-2);
    padding: var(--space-4);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-md);
    background: #eff6ff;
    color: var(--color-primary-dark);
    font-size: var(--text-sm);
    line-height: 1.6;
}
.gvls-reg__account-note span { color: var(--color-text-secondary); }

/* -------------------------------------------------------------------------
 * Embedded payment receipt (membership / conference registration)
 * ---------------------------------------------------------------------- */
body.gvls-payment-page .gvls-main,
body.woocommerce-order-pay .gvls-main {
    padding: 0;
    background: var(--color-bg);
}

body.gvls-payment-page .gvls-page--checkout,
body.gvls-payment-page .gvls-checkout-page-content,
body.gvls-payment-page .gvls-checkout-page-content > .woocommerce,
body.woocommerce-order-pay .gvls-page--checkout,
body.woocommerce-order-pay .gvls-checkout-page-content,
body.woocommerce-order-pay .gvls-checkout-page-content > .woocommerce {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.gvls-payment-receipt {
    min-height: 72vh;
    background: var(--color-bg);
}

.gvls-payment-receipt__hero {
    padding: clamp(2.6rem, 6vw, 4.6rem) var(--space-5);
    background:
        radial-gradient(circle at 82% 18%, rgba(76, 175, 97, .18), transparent 30%),
        linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: #fff;
    text-align: center;
}

.gvls-payment-receipt__hero-inner {
    width: min(760px, 100%);
    margin-inline: auto;
}

.gvls-payment-receipt__eyebrow {
    display: inline-block;
    margin-bottom: var(--space-2);
    color: var(--color-accent-light);
    font-size: var(--text-xs);
    font-weight: 800;
    letter-spacing: .12em;
}

.gvls-payment-receipt__hero h1 {
    margin: 0 0 var(--space-3);
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4.2vw, 2.8rem);
    line-height: 1.2;
    text-wrap: balance;
}

.gvls-payment-receipt__hero p {
    width: min(650px, 100%);
    margin: 0 auto;
    color: rgba(255, 255, 255, .86);
    font-size: clamp(.96rem, 1.7vw, 1.06rem);
    line-height: 1.7;
}

.gvls-payment-receipt__container {
    padding-block: clamp(2rem, 6vw, 4.5rem);
}

.gvls-payment-receipt__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-7);
    align-items: start;
}

@media (min-width: 960px) {
    .gvls-payment-receipt__layout {
        grid-template-columns: minmax(280px, .72fr) minmax(0, 1.45fr);
    }
}

.gvls-payment-receipt__summary,
.gvls-payment-receipt__payment {
    min-width: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.gvls-payment-receipt__summary {
    padding: clamp(1.35rem, 3.4vw, 1.9rem);
}

@media (min-width: 960px) {
    .gvls-payment-receipt__summary {
        position: sticky;
        top: calc(var(--header-height) + var(--space-5));
    }

    body.admin-bar .gvls-payment-receipt__summary {
        top: calc(var(--header-height) + 32px + var(--space-5));
    }
}

.gvls-payment-receipt__summary h2,
.gvls-payment-receipt__payment > h2 {
    margin: 0;
    color: var(--color-text);
    font-size: clamp(1.2rem, 2.3vw, 1.55rem);
    line-height: 1.35;
}

.gvls-payment-receipt__facts {
    margin: var(--space-5) 0 0;
}

.gvls-payment-receipt__facts > div {
    display: grid;
    grid-template-columns: minmax(105px, .8fr) minmax(0, 1.2fr);
    gap: var(--space-4);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-border);
}

.gvls-payment-receipt__facts > div:last-child {
    border-bottom: 0;
}

.gvls-payment-receipt__facts dt {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
}

.gvls-payment-receipt__facts dd {
    margin: 0;
    color: var(--color-text);
    font-size: var(--text-sm);
    font-weight: 700;
    text-align: right;
    overflow-wrap: anywhere;
}

.gvls-payment-receipt__facts .gvls-payment-receipt__total dt,
.gvls-payment-receipt__facts .gvls-payment-receipt__total dd {
    color: var(--color-primary);
    font-size: var(--text-base);
    font-weight: 800;
}

.gvls-payment-receipt__payment {
    overflow: hidden;
}

.gvls-payment-receipt__payment > h2 {
    padding: clamp(1.35rem, 3.4vw, 1.9rem);
    border-bottom: 1px solid var(--color-border);
}

.gvls-payment-receipt__gateway {
    width: 100%;
    min-width: 0;
    min-height: 520px;
    padding: clamp(.75rem, 2vw, 1.25rem);
    overflow: hidden;
    background: #fff;
}

/* Flitt renders its own secure widget. Keep it inside the GVLS card instead
   of allowing the receipt output to stretch edge-to-edge beneath the header. */
.gvls-payment-receipt__gateway > *,
.gvls-payment-receipt__gateway iframe {
    max-width: 100% !important;
}

.gvls-payment-receipt__gateway iframe {
    display: block;
    width: 100% !important;
    min-height: 620px;
    margin-inline: auto;
    border: 0;
}

.gvls-payment-receipt__gateway .woocommerce-error,
.gvls-payment-receipt__gateway .woocommerce-info,
.gvls-payment-receipt__gateway .woocommerce-message {
    margin: var(--space-4);
}

@media (max-width: 639px) {
    .gvls-payment-receipt__hero {
        padding-inline: var(--space-mobile-gutter, 1rem);
    }

    .gvls-payment-receipt__container {
        padding-block: var(--space-7);
    }

    .gvls-payment-receipt__facts > div {
        grid-template-columns: 1fr;
        gap: var(--space-1);
    }

    .gvls-payment-receipt__facts dd {
        text-align: left;
    }

    .gvls-payment-receipt__gateway {
        min-height: 560px;
        padding: .35rem;
    }

    .gvls-payment-receipt__gateway iframe {
        min-height: 680px;
    }
}

.gvls-payment-receipt__gateway #flitt-checkout-container {
    width: min(100%, 620px);
    min-width: 0;
    margin-inline: auto;
}

.gvls-payment-receipt__gateway #flitt-checkout-container > * {
    max-width: 100% !important;
}
