/* Checkout confirmation (Components/Pages/Websites/Checkout.razor), inside the app shell: one receipt-style card, the same as the
   website builder's checkout. Skeleton: Components/Skeletons/Websites/CheckoutSkeleton.razor. */

.co-page {
    display: flex;
    justify-content: center;
    padding: var(--ml-content-gutter, 32px);
}

.co-card {
    width: 100%;
    max-width: 620px;
    padding: 32px;
    border: 1px solid var(--app-line);
    border-radius: 28px;
    background: var(--app-surface);
    box-shadow: var(--app-shadow-card);
}

/* ---------- head ---------- */

.co-head {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Takes the rest of the row, so the heading (or its skeleton while the price is worked out) stays inside the card */
.co-head-text {
    flex: 1 1 auto;
    min-width: 0;
}

.co-head-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(150deg, #29075C 0%, #5524B5 60%, #8F5BE6 100%);
    box-shadow: 0 10px 22px rgba(41, 7, 92, 0.25);
    font-size: 26px;
    color: var(--app-color-white);
}

.co-title {
    margin: 0;
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--app-text-strong);
}

.co-subtitle {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--app-text-muted);
}

.co-site {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--app-surface-soft);
    font-size: 14px;
}

.co-site .bx {
    font-size: 18px;
    color: var(--app-accent);
}

.co-site-label {
    color: var(--app-text-muted);
}

.co-site-domain {
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: 600;
    color: var(--app-text-strong);
}

/* Skeleton of the heading and the summary while the quote is calculated, spaced like the real content */
.co-skeleton-heading {
    margin: 4px 0 10px;
}

.co-skeleton-subtitle {
    margin-bottom: 2px;
}

.co-skeleton-title {
    margin: 4px 0 14px;
}

.co-skeleton-row {
    align-items: center;
}

.co-skeleton-coverage {
    margin-top: 18px;
}

.co-notice {
    align-items: center;
    margin-top: 16px;
    font-size: 13.5px;
    line-height: 1.55;
}

/* ---------- summary ---------- */

.co-summary {
    margin-top: 24px;
    padding: 18px 20px;
    border: 1px solid var(--app-line);
    border-radius: 18px;
}

.co-summary-title {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--app-text-muted);
}

.co-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--app-text);
}

.co-row strong {
    flex: none;
    font-weight: 600;
    color: var(--app-text-strong);
}

/* Total: a dashed rule above, a larger amount */
.co-row-total {
    margin-top: 6px;
    padding-top: 16px;
    border-top: 1px dashed var(--app-line);
    font-size: 16px;
    font-weight: 600;
}

.co-row-total strong {
    font-size: 24px;
    letter-spacing: -0.01em;
}

.co-coverage {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 16px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--app-text-muted);
}

.co-coverage .bx {
    flex: none;
    margin-top: 1px;
    font-size: 16px;
    color: var(--app-success);
}

/* ---------- error ---------- */

.co-error {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    padding: 14px 16px;
    border: 1px solid rgba(217, 61, 92, 0.25);
    border-radius: 16px;
    background: var(--app-danger-soft);
    font-size: 14px;
    line-height: 1.5;
}

.co-error .bx {
    flex: none;
    font-size: 20px;
    color: var(--app-danger);
}

.co-error strong {
    color: var(--app-danger);
}

.co-error p {
    margin: 2px 0 0;
    color: var(--app-text);
}

.co-error-detail {
    font-size: 13px;
    color: var(--app-text-muted) !important;
}

/* ---------- actions ---------- */

.co-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
}

.co-pay {
    min-width: 220px;
}

.co-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 18px 0 0;
    font-size: 12.5px;
    color: var(--app-text-muted);
}

.co-secure .bx {
    font-size: 15px;
    color: var(--app-success);
}

/* ---------- responsive ---------- */

@media (max-width: 575.98px) {
    .co-card {
        padding: 24px 18px;
        border-radius: 24px;
    }

    .co-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .co-pay,
    .co-back {
        width: 100%;
        min-width: 0;
    }
}
