/* チェックアウト・カート共通（ステッパー等） */
.empty-cart-icon {
    color: var(--color-accent);
    opacity: 0.5;
}
.screen { display: none; }
.screen.active { display: block; animation: wffScreenFade 0.4s ease forwards; }
@keyframes wffScreenFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.checkout-stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}
.checkout-stepper::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #e5e7eb;
    z-index: 0;
}
.step-item {
    position: relative;
    z-index: 1;
    background: var(--color-bg);
    padding: 0 1rem;
    text-align: center;
}
.step-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e5e7eb;
    margin: 0 auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.75rem;
    color: #d1d5db;
}
.step-item.active .step-circle {
    border-color: var(--color-rose-300);
    background-color: var(--color-rose-300);
    color: #fff;
}
.step-item.active .step-label {
    color: var(--color-stone-800);
    font-weight: bold;
}
.step-label { font-size: 0.625rem; color: #9ca3af; }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 0.875rem;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    border-color: var(--color-rose-300);
    outline: none;
}
/* 静的カート（10）に合わせたサムネイル寸法（全体が収まるよう contain） */
.product-thumb {
    width: 80px;
    height: 100px;
    object-fit: contain;
    object-position: center;
    background-color: #fafaf9;
    border-radius: 2px;
}
.checkout-thumb-mini {
    width: 48px;
    height: 60px;
    object-fit: contain;
    object-position: center;
    background-color: #fafaf9;
}

/* チェックアウト: 戻る／次へを横並びにしたとき幅100%を解除 */
.checkout-actions-row .btn-primary,
.checkout-actions-row .btn-secondary,
.checkout-actions-row a.btn-secondary {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
}

/* お支払い: 方式ごとのカード（選択状態） */
.checkout-payment-method {
    display: block;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.checkout-payment-method:hover {
    background-color: #fafaf9;
}
.checkout-payment-method:has(input:checked) {
    border-color: var(--color-rose-300);
    background-color: #fff7f7;
    box-shadow: 0 0 0 1px rgba(253, 164, 175, 0.35);
}
.checkout-payment-method input[type="radio"] {
    flex-shrink: 0;
}

/* クレジットカード詳細パネル（カード選択時のみ表示 :has） */
.wff-pay-option-card .wff-card-panel {
    display: none;
    margin-top: 1rem;
    padding: 1.25rem 1rem;
    border: 1px solid #e7e5e4;
    border-radius: 8px;
    background: #fafaf9;
    animation: wffPaymentPanelIn 0.22s ease-out;
}
@keyframes wffPaymentPanelIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.wff-pay-option-card:has(#checkout-pay-card:checked) .wff-card-panel {
    display: block;
}

.wff-card-panel-grid {
    display: grid;
    gap: 1rem;
}

/* iOS でフォーカス時ズームを防ぐためカード入力は 16px 以上 */
.wff-card-panel input[type="text"],
.wff-card-panel input[type="tel"],
.wff-card-panel select {
    font-size: 1rem;
    line-height: 1.4;
}

.wff-card-expiry-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    max-width: 100%;
}

/* 有効期限は専用行で十分な幅を確保（月・年を潰さない） */
.wff-card-panel .wff-cc-exp-month {
    flex: 0 0 auto;
    width: auto;
    min-width: 6.5rem;
    max-width: none;
    padding-left: 0.875rem;
    padding-right: 2rem;
}

.wff-card-panel .wff-cc-exp-year {
    flex: 0 0 auto;
    width: auto;
    min-width: 7.5rem;
    max-width: none;
    padding-left: 0.875rem;
    padding-right: 2rem;
}

.wff-card-expiry-sep {
    flex: 0 0 auto;
    user-select: none;
}

.checkout-payment-hint {
    font-size: 0.6875rem;
    color: #78716c;
    line-height: 1.5;
    margin-top: 0.25rem;
}
