@charset "utf-8";

/* --- Ticket Body Wrapper --- */
/* 本番に移植可能なラッパー設定 */
.ticket-body {
    position: relative;
    /* バッジの基準点 */
    background: #fff;
    /* 本番のカードスタイルに合わせるための設定があればここに追記 */
    /* overflow: hidden; */
    /* 必要に応じて */
}

/* --- Ticket Header Section --- */
.ticket-header {
    text-align: center;
    background-color: #f5f5f5;
    /* グレー背景 */

    /* 親要素のpaddingを無視して全幅にするためのネガティブマージン */
    /* ※親(.ticket-body等)のpaddingが20px程度と想定 */
    margin: 0;
    width: 100%;
    box-sizing: border-box;

    padding: 10px 20px;

    border-bottom: 1px solid #ddd;
    /* 境界線 */
    position: relative;
    /* バッジの基準点(念のため) */

    /* Flexアイテムとして縮まないようにする */
    flex-shrink: 0;
}

.ticket-header-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    align-items: center;
}

.ticket-header .store-name {
    font-size: 13px;
    /* 少し小さめに */
    font-weight: 500;
    color: #888;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.ticket-header .ticket-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.05em;
}

/* --- User Name Display --- */
.ticket-user-name {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

/* --- Created At Display --- */
.ticket-timestamps {
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
    padding: 12px 20px 16px;
    background: #fff;
}

.ticket-created-at,
.ticket-updated-at {
    line-height: 1.6;
}

/* --- System Info Section (Admin Only) --- */
.ticket-system-info {
    font-size: 11px;
    color: #94a3b8;
    padding: 12px 20px;
    background: #f8fafc;
    border-top: 1px dashed #e2e8f0;
    text-align: left;
}

.ticket-system-info .system-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    line-height: 1.8;
}

.ticket-system-info .system-label {
    font-weight: 600;
    flex-shrink: 0;
}

.ticket-system-info .system-value {
    font-family: 'Outfit', sans-serif;
    word-break: break-all;
    text-align: right;
}

/* --- Status Badge Overrides for Header --- */
/* 左上に絶対配置 & 丸型デザイン */
.ticket-header .ticket-status-badge {
    position: absolute;
    top: 15px;
    left: 20px;

    /* 丸型にするための設定 */
    width: 50px;
    height: 50px;
    border-radius: 50%;

    /* テキストをど真ん中に配置 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    /* 既存スタイルのリセットと微調整 */
    padding: 0;
    /* 固定サイズなのでpadding不要 */
    margin: 0;
    font-size: 11px;
    /* 丸の中に収めるため少し小さく */
    line-height: 1.1;
    /* 改行時の行間を詰める */

    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* 少し浮かせる */
}

/* --- Bottom Note Section (Notes at the very bottom of the ticket) --- */
.ticket-bottom-note {
    width: 100%;
    padding: 16px 20px;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    font-size: 12px;
    line-height: 1.6;
    color: #475569;
    text-align: left;
    box-sizing: border-box;
    position: relative;
    order: 10;
    /* 他の order(1〜3) よりも後に配置 */
}

/* プランに応じた左端のアクセントライン */
.ticket-bottom-note.unmanned {
    border-left: 4px solid var(--accent-unmanned);
}

.ticket-bottom-note.manned {
    border-left: 4px solid var(--accent-manned);
}

.ticket-bottom-note br {
    display: block;
    content: "";
    margin-top: 4px;
}

/* --- Vertical Layout (Detail View) --- */
.summary-layout-wrapper.detail-view {
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* すべてを中央寄せ */
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.detail-view .ticket-vertical-body {
    order: 1;
    /* 日付・時間 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2px 0 5px 0;
    /* さらに上下を詰める */
    width: 100%;
}

.ticket-date-large {
    font-size: 32px;
    font-weight: 800;
    color: #333;
    line-height: 1;
    /* 行間を最小に */
    font-family: 'Outfit', sans-serif;
    display: block;
    width: 100%;
}

.ticket-date-large .dow {
    font-size: 20px;
    font-weight: 600;
    margin-left: 6px;
    opacity: 0.8;
}

.ticket-date-large.sun {
    color: #d9534f;
}

.ticket-date-large.sat {
    color: #0275d8;
}

.ticket-time-sub {
    width: 100%;
    display: flex;
    flex-direction: column;
    /* ラベルとバッジを縦に並べる */
    justify-content: center;
    align-items: center;
}

/* 詳細ビュー内では時間バッジの背景や枠線を消してスッキリさせる（ステッパー自体の外枠と重複しないように） */
.detail-view .summary-overall-badge {
    background: transparent;
    border: none;
    padding: 4px 0;
}

/* Original Time Label (Small gray text above stepper) */
.original-time-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 4px;
    letter-spacing: 0.05em;
    width: 100%;
    text-align: center;
}

.detail-view .summary-datetime {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    /* 日付に合わせて少し大きく */
    font-weight: 700;
    color: #333;
    letter-spacing: 0.02em;
}

/* --- PIN Section (Simple Icon Pattern) --- */
.detail-view .pin-section {
    order: 2;
    /* パスコード（時間の下、プランの上） */
    margin-top: 0;
    padding: 2px 0;
    /* パスコード周辺もさらに凝縮 */
    display: flex;
    flex-wrap: wrap;
    /* 改行を許可 */
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #555;
    width: 100%;
}

.pin-section .pin-icon {
    font-size: 16px;
    /* アイコンも少し控えめに */
}

.pin-section .pin-label {
    font-size: 14px;
    font-weight: 500;
}

.pin-section .pin-value {
    font-size: 20px;
    font-weight: 800;
    color: #d9534f;
    letter-spacing: 0.1em;
    font-family: 'Outfit', sans-serif;
}

.pin-section .pin-note {
    width: 100%;
    /* 強制的に改行 */
    font-size: 11px;
    color: #999;
    margin-top: 2px;
    /* 注釈の上の隙間も最小限に */
    font-weight: 400;
}

/* --- Plans Section --- */
.detail-view .summary-details-area {
    order: 3;
    /* プラン情報 */
    margin-top: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.detail-view .segment-row,
.detail-view .time-range-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.detail-view .segment-note {
    text-align: center;
    margin-top: 0;
}

/* --- Member List Layout Overrides --- */
.summary-date-text {
    font-family: 'Outfit', sans-serif;
    color: #333;
    line-height: 1;
}

.summary-date-text .date-main {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.summary-date-text .dow {
    font-size: 0.85em;
    font-weight: 500;
    margin-left: 2px;
}

.summary-date-text.sun .date-main {
    color: #d9534f;
}

.summary-date-text.sat .date-main {
    color: #0275d8;
}

/* Ensure time range also uses Outfit */
.res-time-tabular {
    font-family: 'Outfit', sans-serif !important;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.member-list-date {
    margin: 0;
    padding: 0 10px 0 0;
    border: none;
    background: transparent;
    min-width: auto;
}

.member-list-date .date-main {
    font-size: 22px !important;
}

/* ==========================================================================
   List View Styles (Migrated from style.css)
   ========================================================================== */

/* Status Badge (List View Footer) */
.status-badge {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

.status-badge.confirmed {
    background: #e3f9e5;
    color: #1f7a24;
}

.status-badge.cancelled {
    background: #f1f5f9;
    color: #64748b;
}

/* 直前キャンセル（警告：琥珀色） */
.status-badge.cancelled-late {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #ffedd5;
}

/* 無断キャンセル（警告：重い赤） */
.status-badge.no-show {
    background: #7f1d1d;
    /* ダークレッド */
    color: #ffffff;
    /* 白文字でコントラストを強調 */
    border: 1px solid #450a0a;
    font-weight: 700;
}

/* 未報告（要対応：オレンジ強調） */
.status-badge.missed-checkout {
    background: #ea580c;
    /* ビビッドオレンジ */
    color: #ffffff;
    /* 白文字 */
    border: 1px solid #c2410c;
    font-weight: 700;
}

.status-badge.finished {
    background: #f8fafc;
    color: #94a3b8;
}

/* Info Layout */
.res-info-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.res-time-row {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.02em;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.2;
}

.res-time-tabular {
    font-family: 'Outfit', sans-serif !important;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Selection Summary & Tags (Migrated from style.css)
   ========================================================================== */

.summary-layout-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    align-items: flex-start;
}

.summary-top-row-simple {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.summary-details-area {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Note Boxes (Warning/Info/Error) */
.summary-note-box {
    width: fit-content;
    /* 文字幅に合わせる */
    max-width: 100%;
    /* 親要素をはみ出さないように */
    padding: 6px 14px;
    /* 上下を少し詰める */
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
    display: block;
    /* アイコンを消したので単純なブロックに */
    margin: 0 0 8px;
    /* 左寄せ & 下の隙間 */
    box-sizing: border-box;
    text-align: left;
    /* テキストを左寄せ */
    border-width: 1.5px;
    /* 枠線を少し強調 */
    border-style: solid;
}

.summary-note-box.error {
    background: #fef2f2;
    border-color: #fee2e2;
    color: #991b1b;
    font-weight: 700;
}

.summary-note-box.warning {
    background: #fffbeb;
    border-color: #fef3c7;
    color: #92400e;
    font-weight: 600;
}

.summary-note-box.success {
    background: #f0fdf4;
    border-color: #dcfce7;
    color: #15803d;
    font-weight: 600;
}

.summary-note-box.neutral {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #475569;
}

.summary-note-box.info {
    background: #f0fdfa;
    border-color: #ccfbf1;
    color: #0d9488;
}

.summary-note-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.summary-note-text {
    flex: 1;
}

/* Editing State Highlight */
.summary-overall-badge.editing {
    background: #f0f7ff;
    padding: 12px;
    border-radius: 12px;
    border: 2px dashed #3b82f6;
    display: flex;
    flex-direction: row;
    /* 横並びに修正 */
    flex-wrap: wrap;
    /* 入り切らない場合は折り返し */
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

/* Tags / Badges */
.summary-tag {
    display: inline-block;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    padding: 1px 6px;
    border-radius: 4px;
    margin-right: 6px;
    vertical-align: middle;
    white-space: nowrap;
}

.summary-tag.unmanned {
    background: var(--accent-unmanned);
}

.summary-tag.manned {
    background: var(--accent-manned);
}



/* Segment Rows */
.segment-row {
    margin-bottom: 8px;
    padding-left: 12px;
}

.time-range-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.segment-note {
    font-size: 12px;
    font-weight: 500;
    color: #444;
    line-height: 1.5;
    margin: 0;
}

/* Time components */
.summary-overall-badge {
    background: transparent;
    border: none;
    color: var(--primary-color);
    padding: 0;
    font-size: 20px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    width: fit-content !important;
    white-space: nowrap;
}

.time-stepper {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    height: 40px;
}

.stepper-btn {
    width: 36px;
    height: 100%;
    border: none;
    background: #f8fafc;
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stepper-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.time-value {
    padding: 0 12px;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    min-width: 105px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.time-separator {
    font-size: 22px;
    font-weight: 800;
    color: #94a3b8;
    padding: 0 4px;
}

.duration-value {
    font-size: 14px;
    font-weight: 700;
    opacity: 0.8;
    color: var(--primary-color);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}

.time-stepper.static-time {
    border: none;
    background: transparent;
    height: auto;
}


.time-stepper.static-time .time-value {
    padding: 0;
    min-width: 0;
}

/* ==========================================================================
   Selection Summary Box (Migrated from style.css)
   ========================================================================== */

.selection-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto 24px;
    border: 2px solid var(--primary-color);
    background: #fff;
    border-radius: var(--radius-lg);
    width: 100%;
    min-height: 150px;
    padding: 24px 40px;
    font-size: 1.1em;
}

.summary-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.summary-action {
    display: flex;
    flex-direction: column;
    margin: 0;
    align-self: stretch;
    border-left: 1px solid var(--border-color);
    padding-left: 40px;
    justify-content: center;
    min-width: 280px;
}



.summary-text {
    width: 100%;
    text-align: left;
    font-weight: 700;
}

.instruction-text {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 1.1em;
    font-weight: 700;
    color: var(--text-muted);
}

/* Empty State */
.selection-summary.empty-state .summary-action {
    display: none;
}

/* ==========================================================================
   Selection Summary Mobile Optimization (Migrated from style.css)
   ========================================================================== */
@media (max-width: 768px) {
    .selection-summary {
        flex-direction: column !important;
        align-items: center !important;
        padding: 24px 10px !important;
        gap: 16px !important;
        min-height: auto !important;
        text-align: center !important;
    }

    .summary-main {
        width: 100% !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .summary-top-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        order: 1 !important;
        gap: 12px !important;
    }

    .summary-top-row-simple {
        flex-direction: column !important;
    }

    .summary-date-text .date-main {
        font-size: 28px !important;
        text-align: center !important;
    }

    /* Inner div that contains the stepper */
    .summary-top-row>div:not(.summary-date-calendar) {
        order: 3 !important;
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
    }



    .instruction-text {
        font-size: 20px !important;


    }

    /* 2. Manned/Unmanned Tag */
    .summary-details-area {
        order: 2 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .segment-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding-left: 0 !important;
    }

    .time-range-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .summary-tag {
        order: 2 !important;
        margin: 8px 0 !important;
        font-size: 18px !important;
        padding: 2px 10px !important;
    }

    /* 3. Stepper */
    .summary-overall-badge {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        column-gap: 0px !important;
        row-gap: 8px !important;
        width: 100% !important;
        margin-bottom: 0 !important;
    }

    .time-stepper {
        flex: 1 0 auto !important;
        height: 44px !important;
        background: #f1f5f9;
        border-radius: 12px;
        padding: 0 4px !important;
    }

    .stepper-btn {
        flex: 0 0 30px !important;
        width: 30px !important;
        height: 30px !important;
        background: #fff !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
        border-radius: 8px !important;
    }

    .time-value {
        flex: 1 0 70px !important;
        min-width: 70px !important;
        padding: 0 4px !important;
        font-size: 22px !important;
    }

    .duration-value {
        width: 100% !important;
        text-align: right !important;
        margin-top: 4px !important;
        padding-right: 10px !important;
        font-size: 20px !important;
        display: block !important;
    }

    /* 4. Plan Notes */
    .segment-note {
        order: 4 !important;
        text-align: left !important;
        padding: 0 10px !important;
        font-size: 16px !important;
        line-height: 1.4 !important;
        width: 100% !important;
    }

    .summary-action {
        width: 100% !important;
        min-width: unset !important;
        border-top: 1px solid var(--border-color) !important;
        border-left: none !important;
        padding-top: 20px !important;
        padding-left: 0 !important;
        display: flex !important;
    }

    .selection-summary.empty-state .summary-action {
        display: none !important;
    }



    #to-next-step {
        order: 7 !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .mixed-plan-warning {
        order: 10 !important;
        margin-top: 10px !important;
    }

    /* Missing Ticket Mobile Overrides */
    .reservation-ticket .ticket-body,
    #completion-details-list .ticket-body {
        padding: 16px 10px !important;
    }

    .ticket-header .summary-layout-wrapper {
        padding: 24px 10px !important;
    }

    .ticket-user-name-row {
        padding: 0 4px 16px 10px !important;
        background: #fff;
    }
}

/* ==========================================================================
   Ticket UI & Misc Labels (Migrated from style.css)
   ========================================================================== */

.reservation-ticket {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 0px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}




.brand-venue {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 4px;
    display: block;
}

.brand-service {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.05em;
    display: block;
    color: var(--text-main);
}

.ticket-body {
    padding: 16px;
}

.ticket-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--text-muted);
}

.ticket-row.total {
    margin-top: 12px;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: 700;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.total-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.ticket-user-name-row {
    padding: 0 4px 16px 8px;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.ticket-name-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

/* Editing State */
.reservation-ticket.is-editing {
    border: 2px solid #2563eb !important;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
    animation: editing-glow 2s infinite alternate ease-in-out;
}

@keyframes editing-glow {
    from {
        border-color: #2563eb;
        box-shadow: 0 0 10px rgba(37, 99, 235, 0.1);
    }

    to {
        border-color: #60a5fa;
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
    }
}

/* Summary Login Overlay */
.summary-login-overlay {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 5px 0;
}

.summary-login-message {
    font-weight: 700;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- Member List Header Design (IDEA 03) --- */
.list-section-header-v2 {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-left: 3px solid #1e293b;
    padding-left: 15px;
    margin-bottom: 25px;
}

.list-section-header-v2.member-future-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
}

.list-section-header-v2 .header-titles {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.list-section-header-v2 .en {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #94a3b8;
    text-transform: uppercase;
    line-height: 1;
}

.list-section-header-v2 .jp {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.member-limit-display {
    margin-bottom: 0 !important;
}

.member-limit-display .reservation-limit-status {
    padding: 0 !important;
}

@media (max-width: 768px) {
    .list-section-header-v2.member-future-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- Quick Reserve Badge --- */
.quick-reserve-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #f8fafc;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: fadeInDown 0.4s ease-out;
}

.quick-reserve-badge .badge-icon {
    color: #fbbf24;
    /* Amber/Gold color */
    font-size: 14px;
    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.4));
}

.quick-reserve-badge .badge-text {
    letter-spacing: 0.02em;
}

.cancel-confirm-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.confirm-body-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
    display: block;
    letter-spacing: 0.05em;
}

.text-success {
    color: #10b981;
}

.text-error {
    color: #ef4444;
}

.confirm-warning-box {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
    border-width: 1px;
    border-style: solid;
    margin: 8px 0;
    box-sizing: border-box;
}

/* 通常キャンセル */
.confirm-warning-box.normal {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

/* 直前/無断キャンセル */
.confirm-warning-box.late,
.confirm-warning-box.no-show {
    background: #fff1f2;
    border-color: #fecaca;
    color: #991b1b;
}

.confirm-warning-box strong {
    color: #e11d48;
    text-decoration: underline;
}

/* 有人プラン注意書き (付箋風デザイン) */
.cancel-policy-note {
    margin-top: 12px;
    padding: 10px 12px;
    border-left: 4px solid #f59e0b;
    background: #fffbeb;
    color: #92400e;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px 8px 8px 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cancel-policy-note::before {
    content: '⚠️';
}

.confirm-warning-subtext {
    margin-top: 12px;
    font-size: 12px;
    opacity: 0.8;
}


/* 無断キャンセルによるブロック時の案内ボックス */
.blocked-period-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--accent-color, #d4af37);
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
    border-radius: 4px;
    font-size: 1.1rem;
    color: var(--accent-color, #d4af37);
}

.blocked-period-box strong {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    margin-left: 0.5rem;
    display: block;
    margin-top: 0.5rem;
}

/* Blocked Modal Text Styles */
.blocked-main-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-main, #333);
    margin-bottom: 16px;
}

.blocked-sub-text {
    font-size: 0.85rem;
    color: var(--text-muted, #666);
    opacity: 0.8;
    margin-top: 16px;
}

/* ==========================================================================
   Extend Button (Inline in Member List)
   ========================================================================== */
.res-status-extend-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.btn-extend-inline {
    display: inline-block;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(255, 152, 0, 0.3);
}

.btn-extend-inline:hover {
    background: linear-gradient(135deg, #f57c00, #ef6c00);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 152, 0, 0.4);
}

/* ==========================================================================
   Highlight Styles for Missed Checkout (Nudge Action)
   ========================================================================== */

/* 「要対応」状態の予約ボックス全体を強調 (脈動アニメーション付き) */
.reservation-item.missed-checkout {
    border: 2px solid #ea580c !important;
    /* ビビッドなオレンジ強調 */
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.2);
    position: relative;
    z-index: 100;
    /* 他より少し前面に */
    background: #fff;
    animation: missed-checkout-pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes missed-checkout-pulse {
    0% {
        box-shadow: 0 0 0 0px rgba(234, 88, 12, 0.5);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(234, 88, 12, 0);
    }

    100% {
        box-shadow: 0 0 0 0px rgba(234, 88, 12, 0);
    }
}

/* 過去アイテムとしての暗転を無効化（要対応は明るく保つ） */
.reservation-item.missed-checkout.past-item {
    opacity: 1 !important;
    filter: none !important;
    background: #fff8f1 !important;
    /* わずかに暖色系にする */
}

/* 1. Shake Animation for Checkout Button */
/* 水平方向に激しく振動させる */
@keyframes shake-interval {
    0% {
        transform: translateX(0);
    }

    /* 震えるフェーズ (最初の約10%) */
    2%,
    6%,
    10% {
        transform: translateX(-4px);
    }

    4%,
    8% {
        transform: translateX(4px);
    }

    /* 待機フェーズ */
    12% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(0);
    }
}

.btn-shake {
    animation: shake-interval 3s ease-in-out infinite;
    /* 強調スタイル */
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.4) !important;
    background: linear-gradient(135deg, #fff7ed 0%, #fff 100%) !important;
    color: #c2410c !important;
    border: 2px solid #ea580c !important;
    font-weight: 800 !important;
}

/* 2. Independent Nudge Container */
.checkout-nudge-container {
    width: 100%;
    display: flex;
    /* 中央寄せ */
    justify-content: center;
    margin-bottom: 0px;
    /* ボタンとの隙間 (アクションエリアの内側にある場合) */
    padding: 0 16px;
    box-sizing: border-box;
    animation: fadeInDown 0.5s ease-out;
}

.nudge-badge-text {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 8px 16px;
    border-radius: 50px;
    /* 丸みのあるカプセル型 */
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    /* 浮き上がる影 */
    z-index: 10;
}

.nudge-icon {
    font-size: 16px;
    animation: bounce-icon 1.5s infinite;
}

@keyframes bounce-icon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

/* Hidden Utility Overrides if needed */
.checkout-nudge-container.hidden {
    display: none !important;
}

/* ========================================
   特定商取引法に基づく表記 モーダル
   (独立したスタイル - 既存要素への影響なし)
   ======================================== */

.legal-disclosure-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.legal-disclosure-modal.hidden {
    display: none !important;
}

.legal-disclosure-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.legal-disclosure-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.legal-disclosure-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 16px 16px 0 0;
}

.legal-disclosure-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.legal-disclosure-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.legal-disclosure-close:hover {
    color: #374151;
}

.legal-disclosure-body {
    padding: 24px;
}

.legal-disclosure-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.legal-disclosure-item:last-child {
    border-bottom: none;
}

.legal-disclosure-label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

.legal-disclosure-value {
    font-size: 14px;
    color: #1f2937;
    line-height: 1.6;
}

/* フッターリンク */
.legal-footer-link {
    text-align: center;
    padding: 16px;
    border-top: 1px solid #e5e7eb;
    margin-top: 24px;
}

.legal-footer-link a {
    color: #6b7280;
    font-size: 12px;
    text-decoration: underline;
    transition: color 0.2s;
}

.legal-footer-link a:hover {
    color: #374151;
}

/* ==========================================================================
   Checkout Detail Section (Member Modal)
   ========================================================================== */

.checkout-detail-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    margin-top: 16px;
}

.checkout-detail-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.checkout-detail-group {
    margin-bottom: 10px;
}

.checkout-detail-group:last-child {
    margin-bottom: 0;
}

.checkout-detail-label {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 4px;
}

.checkout-detail-value {
    font-size: 0.9rem;
    color: #1e293b;
}

.checkout-detail-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.checkout-slot-chip {
    background: #e2e8f0;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #334155;
    font-family: 'Outfit', sans-serif;
}

.checkout-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 0.85rem;
    color: #334155;
}

.checkout-item-qty {
    color: #64748b;
    font-family: 'Outfit', sans-serif;
}

.checkout-detail-total {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    font-family: 'Outfit', sans-serif;
}

.checkout-detail-method {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    background: #e2e8f0;
    padding: 3px 10px;
    border-radius: 6px;
}