:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #172033;
    background: #eef2f7;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(0, 158, 227, 0.16), transparent 32rem),
        #eef2f7;
}

.checkout-body,
.status-body {
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.checkout-card {
    width: min(100%, 820px);
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(23, 32, 51, 0.07);
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(23, 32, 51, 0.14);
}

.checkout-card section {
    padding: 2.4rem;
}

.summary {
    color: #ffffff;
    background: linear-gradient(145deg, #172033, #263653);
}

.store-name {
    margin: 0 0 2.2rem;
    color: #8edcff;
    font-size: 0.85rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2 {
    margin-top: 0;
    line-height: 1.2;
}

.summary h1 {
    margin-bottom: 1.5rem;
}

.summary p {
    color: #c9d2e2;
    line-height: 1.6;
}

.product {
    padding: 1.2rem 0;
    border-top: 1px solid #42506b;
    border-bottom: 1px solid #42506b;
}

.line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.total {
    margin-top: 1.4rem;
    font-size: 1.35rem;
    font-weight: 800;
}

.buyer-form label,
.field-label {
    display: block;
    margin: 1rem 0 0.4rem;
    font-size: 0.92rem;
    font-weight: 700;
}

.buyer-form input:not([type="radio"]) {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #cbd3df;
    border-radius: 11px;
    outline: none;
    background: #ffffff;
    color: #172033;
    font: inherit;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.buyer-form input:not([type="radio"]):focus {
    border-color: #009ee3;
    box-shadow: 0 0 0 4px rgba(0, 158, 227, 0.12);
}

.amount-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.buyer-form .amount-option {
    position: relative;
    margin: 0;
}

.amount-option input {
    position: absolute;
    opacity: 0;
    inset: 0;
}

.amount-option span {
    display: grid;
    place-items: center;
    min-height: 46px;
    padding: 0.75rem;
    border: 1px solid #cbd3df;
    border-radius: 11px;
    background: #ffffff;
    color: #172033;
    font-weight: 800;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.amount-option input:checked + span {
    border-color: #009ee3;
    background: #e8f7fd;
    color: #006fa3;
    box-shadow: 0 0 0 4px rgba(0, 158, 227, 0.1);
}

.amount-option input:focus + span {
    border-color: #009ee3;
    box-shadow: 0 0 0 4px rgba(0, 158, 227, 0.14);
}

.pay-button {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem;
    border: 0;
    border-radius: 11px;
    background: #009ee3;
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: background 160ms ease, transform 160ms ease;
}

.pay-button:hover {
    background: #008dcc;
    transform: translateY(-1px);
}

.secure {
    margin: 1rem 0 0;
    color: #697386;
    font-size: 0.87rem;
    line-height: 1.5;
    text-align: center;
}

.error {
    padding: 0.85rem 1rem;
    border: 1px solid #fecaca;
    border-radius: 9px;
    background: #fef2f2;
    color: #991b1b;
    line-height: 1.4;
}

.status-card {
    width: min(100%, 560px);
    padding: 2.2rem;
    background: #ffffff;
    border: 1px solid rgba(23, 32, 51, 0.07);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(23, 32, 51, 0.13);
}

.status-mark {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--status-color, #172033);
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 800;
}

.status-card h1 {
    margin: 1.2rem 0 0.5rem;
}

.status-message {
    color: #566074;
    line-height: 1.65;
}

.status-details {
    margin: 1.5rem 0;
    padding: 1rem 1.1rem;
    border: 1px solid #e5e9f0;
    border-radius: 12px;
    background: #f7f9fc;
}

.status-details dt {
    color: #6b7280;
    font-size: 0.82rem;
}

.status-details dd {
    margin: 0.2rem 0 0.9rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.status-details dd:last-child {
    margin-bottom: 0;
}

.back-link {
    display: inline-block;
    padding: 0.85rem 1.1rem;
    border-radius: 10px;
    background: #172033;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.back-link:hover {
    background: #263653;
}

@media (max-width: 680px) {
    .checkout-card {
        grid-template-columns: 1fr;
    }

    .checkout-card section,
    .status-card {
        padding: 1.6rem;
    }

    .store-name {
        margin-bottom: 1.5rem;
    }
}
