.checkout-card-surface {
    max-width: 980px;
    margin: 50px auto 0 auto;
    line-height: 1.7;
}

/* --- checkout layout --- */
.checkout-card-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.checkout-card__label {
    font-size: 14px;
    color: var(--muted);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.checkout-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.checkout-summary__label{
}

.checkout-summary__value{
    margin-top: 4px;
    font-size: 16px;
    font-weight: 800;
    color: #111827;
}

.checkout-summary__note{
    margin-top: 6px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.35;
    max-width: 65ch;
}

.saved-method{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.saved-method__label{
}

.saved-method__left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.saved-method__meta{
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: baseline;
    min-width: 0;
}

.saved-method__brand{
    font-weight: 900;
    letter-spacing: 0.02em;
    color: #111827;
    font-size: 16px;
}

.saved-method__detail{
    color: #374151;
    font-size: 16px;
}

.saved-method__detail strong{ font-weight: 900; }

.saved-method__right {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.method-entry{
}

.method-entry__label{
}

.method-entry__body {
    border-radius: 12px;
    padding: 14px 14px 0 14px;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.method-entry__btns {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-top: 10px;
    margin-left: auto;
}

.checkout__error{
    color: #b42318;
    font-size: 16px;
    min-height: 16px;
    text-align: center;
    margin-top: 12px;
}

/* --- buttons --- */
.checkout__actions{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.checkout__fineprint{
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    text-align: right;
    margin-top: 12px;
}

@media (max-width: 720px){
    .card-surface__header, .card-surface__body{
        padding-left: 16px;
        padding-right: 16px;
    }

    .checkout-summary {
        flex-direction: column;
    }

    .checkout-summary__right {
        display: flex;
        width: 100%;
        flex-direction: column;
        margin-top: 10px;
    }

    .saved-method {
        flex-direction: column;
    }

    .saved-method__right {
        width: 100%;
        flex-direction: column;
        margin-top: 10px;
        gap: 0;
    }

    .method-entry__body {
        padding: 0;
    }

    .method-entry__btns {
        width: 100%;
        flex-direction: column-reverse;
        gap: 0;
    }

    .checkout__actions{
        flex-direction: column;
        align-items: stretch;
    }

    .checkout__actions .cookn-btn{
        width: 100%;
    }

}
