/* ── Order confirmed ────────────────────────────────────────
   Figma: desktop 3109:35719 — the thanks beside the order panel,
   on Deep Green; mobile 3109:35969 — stacked, the thanks centred.
   ─────────────────────────────────────────────────────────── */

.order-confirmed {
    padding: 100px var(--pad-x);
    background: var(--color-secondary);
    color: var(--color-white);
}

/* Failed or cancelled: nothing follows it, so it stands as a banner,
   clear of the menu above and the (also Deep Green) footer */
.order-confirmed--unpaid {
    margin: 40px 0 100px;
}

.order-confirmed__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    max-width: var(--site-max-w);
    margin: 0 auto;
}

.order-confirmed__thanks {
    display: flex;
    flex: 0 1 701px;
    align-items: flex-start;
    gap: 24px;
}

.order-confirmed__tick {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 57px;
    border-radius: 50%;
    background: var(--color-accent);
}

.order-confirmed__words {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-confirmed__title {
    max-width: 663px;
    font-size: 60px;
    font-weight: 600;
    line-height: 60px;
    text-transform: capitalize;
}

.order-confirmed__text {
    line-height: 20.8px;
}

.order-confirmed__text strong {
    font-family: var(--font-heading);
    font-weight: 500;
}

.order-confirmed__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 12px; /* 32px under the text */
}

.order-confirmed__buttons .button--primary {
    min-width: 251px;
}

.order-confirmed__buttons .button--secondary {
    min-width: 270px;
}

/* The panel */
.order-confirmed__panel {
    display: flex;
    flex: 0 0 482px;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    border: 1px solid var(--color-primary);
    border-radius: 12px;
    background: rgb(23 106 56 / 0.3);
}

.order-confirmed__number {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    line-height: 25px;
}

.order-confirmed__number strong {
    font-size: 45px;
    font-weight: 600;
    line-height: 48px;
}

/* What was ordered, and the total */
.order-confirmed__order {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgb(255 255 255 / 0.2);
}

.order-confirmed__order h2 {
    font-size: 20px;
    font-weight: 600;
    line-height: 25px;
}

.order-confirmed__items {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.order-confirmed__items li,
.order-confirmed__total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    line-height: 20.8px;
}

.order-confirmed__items strong,
.order-confirmed__total strong {
    flex: none;
    font-family: var(--font-heading);
    font-weight: 600;
}

.order-confirmed__total {
    margin-top: 4px;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    line-height: 25px;
}

.order-confirmed__total small {
    color: rgb(255 255 255 / 0.6);
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
}

.order-confirmed__details {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.order-confirmed__details div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 224px;
}

.order-confirmed__details h2 {
    font-size: 20px;
    font-weight: 600;
    line-height: 25px;
}

.order-confirmed__details p {
    line-height: 20.8px;
}

.order-confirmed__details small {
    color: rgb(255 255 255 / 0.6);
    font-family: var(--font-heading);
    font-size: 12px;
    line-height: 16px;
}

.order-confirmed__help {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    line-height: 20.8px;
}

/* The summary — WooCommerce's order details — is for paper only */
.order-confirmed__summary {
    display: none;
}

/* What happens next (process-steps, variant "next"): see process-steps.css */

@media (max-width: 1366px) {
    .order-confirmed__panel {
        flex-basis: 420px;
    }
}

/* ── Tablet: the panel under the thanks ─────────────────────── */
@media (max-width: 1024px) {
    .order-confirmed {
        padding-block: 64px;
    }

    .order-confirmed--unpaid {
        margin: 32px 0 64px;
    }

    .order-confirmed__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
    }

    .order-confirmed__thanks,
    .order-confirmed__panel {
        flex: none;
    }

    .order-confirmed__title {
        font-size: 44px;
        line-height: 46px;
    }
}

/* ── Mobile: centred, the buttons full width ────────────────── */
@media (max-width: 767px) {
    .order-confirmed {
        padding: 40px 20px;
    }

    .order-confirmed--unpaid {
        margin: 24px 0 40px;
    }

    .order-confirmed__inner {
        gap: 24px;
    }

    .order-confirmed__thanks {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        text-align: center;
    }

    .order-confirmed__tick {
        width: 30px;
        height: 32px;
    }

    .order-confirmed__tick svg {
        width: 25px;
        height: 25px;
    }

    .order-confirmed__words {
        gap: 10px;
    }

    .order-confirmed__title {
        font-size: 36px;
        font-weight: 700;
        line-height: 34px;
    }

    .order-confirmed__buttons {
        flex-direction: column;
        gap: 12px;
        margin-top: 14px; /* 24px under the text */
    }

    .order-confirmed__buttons .button {
        width: 100%;
        min-width: 0;
    }

    .order-confirmed__panel {
        padding: 24px 16px;
    }

    .order-confirmed__number {
        gap: 3px;
        font-size: 18px;
    }

    .order-confirmed__number strong {
        font-size: 28px;
        line-height: 36px;
    }

    .order-confirmed__details div {
        gap: 4px;
    }

    .order-confirmed__details h2,
    .order-confirmed__order h2,
    .order-confirmed__total {
        font-size: 18px;
    }

    .order-confirmed__items li {
        font-size: 14px;
    }

    .order-confirmed__details p,
    .order-confirmed__help {
        font-size: 14px;
    }
}
