/* 正: white-yoga_static_html/04_女性ヨガウェア_カート購入フロー.html（進行バー・チェックアウト用 btn-primary） */

/* 進行バー：狭い画面では横スクロール（ステップが潰れないように） */
#checkout-progress .flex {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.35rem;
    padding-bottom: 0.25rem;
}
#checkout-progress .step-item {
    flex: 1 0 auto;
    min-width: 5.5rem;
}

/* お客様情報フォーム（単一列・ラベル上付け・タップしやすい高さ） */
.checkout-customer-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 1024px) {
    .checkout-customer-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 20rem;
        gap: 2.5rem;
        align-items: start;
    }
}

.checkout-order-summary {
    order: -1;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1.25rem 1.25rem 1.5rem;
    background: #fafafa;
}
@media (min-width: 1024px) {
    .checkout-order-summary {
        order: 0;
        position: sticky;
        top: 6.5rem;
    }
}
.checkout-order-summary h2 {
    font-family: 'Shippori Mincho', 'Hiragino Mincho ProN', serif;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: var(--text-dark);
}
.checkout-order-summary ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.checkout-order-summary li {
    display: flex;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.8125rem;
    line-height: 1.5;
    align-items: flex-start;
}
.checkout-order-summary__thumb {
    flex: 0 0 48px;
}
.checkout-order-summary__thumb img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eee;
}
.checkout-order-summary__body {
    flex: 1;
    min-width: 0;
}
.checkout-order-summary__price {
    flex: 0 0 auto;
    font-weight: 600;
}
.checkout-order-summary li:last-child {
    border-bottom: none;
}
.checkout-order-summary__meta {
    color: #6b7280;
    font-size: 0.75rem;
}
.checkout-order-summary__meta--foot {
    margin-top: 0.75rem;
}
.checkout-order-summary__total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 0.9375rem;
}

.checkout-guest-panel {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1.5rem 1.25rem;
    background: #fff;
}
@media (min-width: 768px) {
    .checkout-guest-panel {
        padding: 1.75rem 2rem;
    }
}

.checkout-field {
    margin-bottom: 1.25rem;
}
.checkout-field:last-of-type {
    margin-bottom: 0;
}
.checkout-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.35rem;
}
.checkout-field .checkout-hint {
    font-size: 0.6875rem;
    color: #6b7280;
    margin: 0 0 0.4rem;
    line-height: 1.55;
}
.checkout-field input[type="text"],
.checkout-field input[type="email"],
.checkout-field input[type="tel"],
.checkout-field select {
    width: 100%;
    max-width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 1rem;
    line-height: 1.45;
    background: #fff;
    color: var(--text-dark);
}
.checkout-field input:focus,
.checkout-field select:focus {
    outline: 2px solid var(--leaf-olive-light);
    outline-offset: 1px;
    border-color: var(--leaf-olive-dark);
}
.checkout-field--zip input {
    max-width: 12rem;
}

.checkout-field--inline2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1rem;
}
@media (max-width: 479px) {
    .checkout-field--inline2 {
        grid-template-columns: 1fr;
    }
}

.checkout-form-errors {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
    border-radius: 6px;
    padding: 1rem 1.15rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}
.checkout-form-errors ul {
    margin: 0.35rem 0 0;
    padding-left: 1.15rem;
}
.checkout-form-errors li {
    margin: 0.2rem 0;
}

h3.checkout-address-head {
    margin: 1.75rem 0 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e5e7eb;
    font-family: 'Shippori Mincho', 'Hiragino Mincho ProN', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
}

.checkout-trust-note {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 1rem 0 0;
}

.checkout-submit-wrap {
    margin-top: 1.75rem;
}

.checkout-btn-primary {
    background-color: var(--leaf-olive-dark);
    color: white;
    padding: 1.25rem;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-align: center;
    width: 100%;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    display: inline-block;
}
.checkout-btn-primary:hover {
    background-color: #7A8E68;
    transform: translateY(-1px);
}

.step-item {
    position: relative;
    flex: 1;
    text-align: center;
    font-size: 10px;
    letter-spacing: 0.05em;
    color: #ccc;
}
.step-item.active {
    color: var(--leaf-olive-dark);
    font-weight: bold;
}
.step-item.completed {
    color: var(--text-dark);
}

/* お支払い：3択ラジオ（クレジット＋カード欄は1グループでまとめ、次の選択肢との間隔を詰める） */
.checkout-payment-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.checkout-payment-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.checkout-payment-choice {
    display: block;
    margin: 0;
    padding: 1rem 1.15rem 1.1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.25s ease, background-color 0.2s ease;
}
.checkout-payment-choice:hover {
    border-color: #9ca3af;
}
.checkout-payment-choice:has(input:checked) {
    border-color: var(--leaf-olive-dark);
    box-shadow: 0 0 0 1px var(--leaf-olive-dark);
    background: rgba(122, 142, 104, 0.06);
}
.checkout-payment-choice__row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.35rem;
}
.checkout-payment-choice__radio {
    flex-shrink: 0;
    width: 1.1rem;
    height: 1.1rem;
}
.checkout-payment-choice__title {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--text-dark);
}
.checkout-payment-choice__note {
    display: block;
    font-size: 0.75rem;
    line-height: 1.55;
    color: #6b7280;
    padding-left: 1.75rem;
}

/* カード入力パネル（開閉アニメーション） */
.checkout-card-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 0 0 0.25rem;
    padding: 0 0 0 0.5rem;
    border-left: 2px solid #e5e7eb;
}
.checkout-card-panel--open {
    grid-template-rows: 1fr;
}
.checkout-card-panel__inner {
    min-height: 0;
    overflow: hidden;
}
.checkout-card-panel__content {
    padding: 0.25rem 0 0.5rem 0.65rem;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.checkout-card-panel--open .checkout-card-panel__content {
    opacity: 1;
    transform: translateY(0);
}
.checkout-card-panel--anim-out .checkout-card-panel__content {
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.22s ease, transform 0.28s ease;
}

.checkout-card-fields__lead {
    font-size: 0.8125rem;
    color: #4b5563;
    margin: 0 0 1rem;
    line-height: 1.5;
}
.checkout-card-fields .checkout-field input[type="text"],
.checkout-card-fields .checkout-field select {
    width: 100%;
    max-width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 1rem;
    line-height: 1.45;
    background: #fff;
    color: var(--text-dark);
    letter-spacing: 0.04em;
}
.checkout-card-fields .checkout-field input[type="text"]:focus,
.checkout-card-fields .checkout-field select:focus {
    outline: 2px solid var(--leaf-olive-light);
    outline-offset: 1px;
    border-color: var(--leaf-olive-dark);
}
/* 有効期限：月 / 年 を1行（親の width:100% が効かないよう上書き） */
.checkout-card-fields__exp-row {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    max-width: 100%;
}
.checkout-card-fields .checkout-card-fields__exp-row select {
    width: auto;
    flex: 0 0 auto;
    min-width: 0;
}
.checkout-card-fields__exp-row select#card_exp_m {
    flex: 0 0 5.25rem;
    max-width: 5.5rem;
}
.checkout-card-fields__exp-row select#card_exp_y {
    flex: 1 1 auto;
    min-width: 6.5rem;
    max-width: 9rem;
}
.checkout-card-fields__slash {
    flex: 0 0 auto;
    color: #9ca3af;
    font-weight: 500;
    padding: 0 0.1rem;
    line-height: 1;
}
@media (min-width: 640px) {
    .checkout-card-fields__exp-cvc {
        grid-template-columns: 1.1fr 0.9fr;
    }
}
