.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
    gap: 22px;
    align-items: start;
}

.checkout-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 24px;
}

.checkout-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius);
    background: rgba(16, 18, 22, .78);
    color: rgba(247, 245, 242, .7);
}

.checkout-step > div {
    min-width: 0;
}

.checkout-step-index {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    background: rgba(255, 255, 255, .04);
    font-size: 13px;
    font-weight: 900;
    flex-shrink: 0;
}

.checkout-step strong {
    display: block;
    color: var(--text);
    font-size: 13px;
}

.checkout-step span {
    font-size: 12px;
    color: rgba(247, 245, 242, .54);
    white-space: normal;
    overflow-wrap: anywhere;
}

.checkout-step.is-active {
    border-color: rgba(200, 155, 60, .4);
    background: rgba(200, 155, 60, .08);
}

.checkout-step.is-active .checkout-step-index {
    border-color: rgba(200, 155, 60, .5);
    background: var(--gold);
    color: #080808;
}

.checkout-step.is-complete {
    border-color: rgba(37, 211, 102, .2);
    background: rgba(37, 211, 102, .08);
}

.checkout-step.is-complete .checkout-step-index {
    border-color: rgba(37, 211, 102, .32);
    background: rgba(37, 211, 102, .15);
    color: #caffdc;
}

.summary,
.checkout-summary,
.empty {
    margin-top: 18px;
    padding: 20px;
    background: rgba(16, 18, 22, .82);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .22);
}

.summary {
    position: sticky;
    top: 92px;
}

.summary h3 {
    margin-top: 0;
}

.summary p {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}

.checkout-trust-top {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 12px 18px;
    background: rgba(37, 211, 102, .07);
    border: 1px solid rgba(37, 211, 102, .15);
    border-radius: var(--radius);
}

.checkout-trust-top span {
    font-size: 13px;
    color: rgba(201, 255, 220, .8);
    font-weight: 700;
}

.checkout-section-title {
    margin: 0 0 6px;
    font-family: "Bebas Neue", sans-serif;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: .04em;
}

.checkout-form-card {
    background: rgba(16, 18, 22, .5);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius);
}

.field-required {
    color: var(--red);
    font-size: 12px;
}

.field-hint {
    font-size: 12px;
    min-height: 16px;
    display: block;
    margin-top: 2px;
    transition: color .15s;
}

.checkout-submit-area {
    margin-top: 8px;
}

.checkout-submit-btn {
    width: 100%;
    font-size: 15px;
    padding: 14px 20px;
}

.checkout-submit-note {
    font-size: 12px;
    color: rgba(247, 245, 242, .4);
    margin: 8px 0 0;
    text-align: center;
}

.summary-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.summary-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.summary-item-info strong {
    font-size: 13px;
    font-weight: 800;
    white-space: normal;
    overflow-wrap: anywhere;
}

.summary-item-info span,
.summary-qty {
    font-size: 11px;
    color: rgba(247, 245, 242, .5);
}

.summary-item-price {
    font-size: 13px;
    color: var(--gold);
    white-space: nowrap;
    flex-shrink: 0;
}

.summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-bottom: 4px;
}

.summary-total-row span {
    font-size: 14px;
    font-weight: 800;
}

.summary-total-amount {
    font-size: 20px;
    color: var(--gold);
}

.summary-disclaimer {
    font-size: 11px;
    color: rgba(247, 245, 242, .38);
    margin: 0 0 14px;
}

.checkout-trust-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.trust-badge-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.trust-badge-item > div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.trust-badge-item strong {
    font-size: 13px;
    font-weight: 800;
}

.trust-badge-item span {
    font-size: 12px;
    color: rgba(247, 245, 242, .5);
}

@media (max-width: 980px) {
    .checkout-grid,
    .checkout-steps {
        grid-template-columns: 1fr;
    }

    .summary {
        position: static;
    }
}

@media (max-width: 700px) {
    .checkout-trust-top {
        gap: 8px;
    }

    .checkout-trust-top span {
        font-size: 12px;
    }

    .summary p {
        display: block;
    }
}
