/* ==========================================================================
   PUMA-STYLE CHECKOUT STYLESHEET
   Clean Multi-Stage Form, Minimalist Japanese Accent, Sticky Review
   ========================================================================== */

.checkout-header-strip {
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    padding: 20px 0;
}

.checkout-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 32px;
}

.checkout-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-ssl-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #2e7d32;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    padding: 6px 14px;
    border-radius: 4px;
    white-space: nowrap;
    line-height: 1;
}

.checkout-ssl-badge .ssl-lock-icon {
    flex-shrink: 0;
    color: #2e7d32;
}

.checkout-workspace {
    padding: 40px 0 90px;
    background: #fafafa;
}

.checkout-error-banner {
    background: #ffebee;
    border: 1px solid #ffcdd2;
    color: #c62828;
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    border-radius: 2px;
}

/* 2-Column Split */
.checkout-layout {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 48px;
    align-items: flex-start;
}

/* Stages */
.checkout-stage-box {
    background: #ffffff;
    border: 1px solid var(--color-border);
    padding: 28px;
    border-radius: 2px;
    margin-bottom: 24px;
}

.stage-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 20px;
}

.stage-num {
    width: 26px;
    height: 26px;
    background: var(--color-sumi);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.stage-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-sumi);
}

.stage-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.form-full {
    width: 100%;
}

.form-group label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-sumi);
}

.input-field {
    border: 1px solid var(--color-border);
    padding: 12px 14px;
    font-family: inherit;
    font-size: 13px;
    color: var(--color-sumi);
    border-radius: 2px;
    outline: none;
    transition: border-color 0.2s ease;
    background: #ffffff;
}

.input-field:focus {
    border-color: var(--color-sumi);
}

.input-field.is-readonly {
    background: #f7f7f7;
    color: var(--color-muted);
}

.select-field {
    cursor: pointer;
    background-color: #ffffff;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

.select-field:disabled {
    background-color: #f7f7f7;
    color: #999999;
    cursor: not-allowed;
    border-color: #eeeeee;
}

.postal-label-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auto-tag {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 2px 6px;
    border-radius: 2px;
    text-transform: uppercase;
}

/* Shipping Option Card */
.shipping-option-card {
    border: 1px solid var(--color-sumi);
    background: #fdfdfd;
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border-radius: 2px;
}

.shipping-name {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.shipping-name strong {
    font-family: var(--font-heading);
    font-size: 13px;
    color: var(--color-sumi);
}

.free-badge {
    background: #2e7d32;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 2px;
}

.shipping-option-text p {
    font-size: 12px;
    color: var(--color-muted);
    margin: 0;
}

/* Payment Channels Grid */
.payment-intro-text {
    font-size: 13px;
    color: var(--color-muted);
    margin-bottom: 8px;
}

.payment-channels-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.channel-card {
    border: 1px solid var(--color-border);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.15s ease;
    background: #ffffff;
}

.channel-card:hover {
    border-color: #999999;
}

.channel-card:has(input:checked) {
    border-color: var(--color-sumi);
    background: #fcfcfc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.channel-info strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 13px;
    color: var(--color-sumi);
}

.channel-info small {
    font-size: 11px;
    color: var(--color-muted);
}

.channel-badge {
    margin-left: auto;
    font-size: 9px;
    font-weight: 700;
    background: var(--color-vermilion);
    color: #ffffff;
    padding: 3px 6px;
    border-radius: 2px;
    letter-spacing: 0.5px;
}

/* Submit Area */
.checkout-submit-area {
    margin-top: 10px;
}

.checkout-final-btn {
    height: 56px;
    font-size: 13px;
    letter-spacing: 1.5px;
}

.legal-disclaimer {
    font-size: 11px;
    color: var(--color-muted);
    text-align: center;
    margin-top: 14px;
    line-height: 1.5;
}

.legal-disclaimer a {
    text-decoration: underline;
}

/* ==========================================================================
   Right Column: Sticky Order Review
   ========================================================================== */
.checkout-review-col {
    position: sticky;
    top: 96px;
}

.order-review-box {
    background: #ffffff;
    border: 1px solid var(--color-border);
    padding: 26px;
    border-radius: 2px;
}

.review-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 18px;
}

.review-head h3 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-sumi);
}

.edit-cart-link {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-vermilion);
    text-decoration: underline;
}

.review-items-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.review-item-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.review-thumb {
    width: 60px;
    height: 60px;
    background: #fbfbfb;
    border: 1px solid var(--color-border);
    display: grid;
    place-items: center;
    padding: 4px;
    flex-shrink: 0;
}

.review-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.review-name {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--color-sumi);
    margin-bottom: 2px;
}

.review-meta {
    display: block;
    font-size: 11px;
    color: var(--color-muted);
    margin-bottom: 4px;
}

.review-qty-price {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
}

.review-qty-price strong {
    font-family: var(--font-heading);
    color: var(--color-sumi);
}

.review-calc-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 18px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #444444;
}

.calc-row strong {
    font-family: var(--font-heading);
    color: var(--color-sumi);
}

.free-text {
    font-weight: 700;
    color: #2e7d32;
}

.calc-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px dashed var(--color-border);
    margin-top: 4px;
}

.calc-total-row span {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

.calc-total-row .total-price {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-sumi);
}

.checkout-guarantee-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 11px;
    color: var(--color-muted);
}

.guarantee-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   Checkout Finish Page Styles
   ========================================================================== */
.checkout-finish-wrap {
    padding: 70px 0 100px;
    background: #fafafa;
}

.finish-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    max-width: 620px;
    margin: 0 auto;
    padding: 50px 36px;
    text-align: center;
    border-radius: 2px;
}

.finish-kanji-icon {
    font-family: var(--font-kanji);
    font-size: 28px;
    font-weight: 700;
    color: #2e7d32;
    background: #e8f5e9;
    border: 2px solid #2e7d32;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.finish-kicker {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-muted);
    margin-bottom: 6px;
}

.finish-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--color-sumi);
    margin-bottom: 12px;
}

.finish-subtitle {
    font-size: 15px;
    color: var(--color-sumi);
    margin-bottom: 24px;
}

.finish-info-box {
    background: #fdfdfd;
    border: 1px solid var(--color-border);
    padding: 20px;
    font-size: 13px;
    color: var(--color-muted);
    line-height: 1.6;
    text-align: left;
    margin-bottom: 32px;
    border-radius: 2px;
}

.finish-actions {
    display: flex;
    gap: 14px;
}

.finish-actions .btn {
    flex: 1;
}

/* Responsive */
@media (max-width: 960px) {
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .checkout-review-col {
        position: static;
        order: -1;
    }
}

@media (max-width: 600px) {
    .checkout-container {
        padding: 0 16px;
    }
    .checkout-header-content {
        gap: 12px;
    }
    .checkout-ssl-badge {
        font-size: 9.5px;
        padding: 5px 9px;
        letter-spacing: 0.5px;
    }
    .form-row.two-cols {
        grid-template-columns: 1fr;
    }
    .finish-actions {
        flex-direction: column;
    }
}
