/* ================================================================
   gw-consult-doctor / assets/css/consult.css
   予約ページ（フロントエンド）スタイル
   ================================================================ */

/* ── ベース ── */
.gwc-app {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.7;
}

/* ── ステッパー ── */
.gwc-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 28px;
    margin-bottom: 28px;
    gap: 0;
}
.gwc-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 72px;
}
.gwc-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    font-size: 0.9em;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.gwc-step-label {
    font-size: 0.75em;
    color: #9ca3af;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.2s;
}
.gwc-step-item.active .gwc-step-num {
    background: #6c7ae0;
    color: #fff;
}
.gwc-step-item.active .gwc-step-label {
    color: #6c7ae0;
}
.gwc-step-item.done .gwc-step-num {
    background: #16a34a;
    color: #fff;
}
.gwc-step-item.done .gwc-step-label {
    color: #16a34a;
}
.gwc-step-sep {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin-bottom: 20px;
    max-width: 48px;
}

/* ── サービス説明 ── */
.gwc-service-desc {
    margin-bottom: 28px;
}

/* ── ログイン促進メッセージ ── */
.gwc-notice {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    border-radius: 8px;
    margin: 16px 0 24px;
}
.gwc-notice-info {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
}
.gwc-notice-warn {
    background: #fffbeb;
    border: 1px solid #fde68a;
}
.gwc-notice-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
}
.gwc-notice-icon {
    font-size: 1.8em;
    flex-shrink: 0;
    line-height: 1;
}
.gwc-notice-title {
    font-weight: 700;
    margin: 0 0 8px;
    font-size: 1.05em;
}
.gwc-notice-text {
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.gwc-notice-register {
    margin: 0;
    font-size: 0.9em;
    color: #555;
}

/* ── ボタン共通 ── */
.gwc-btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95em;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s, transform 0.1s;
    line-height: 1.4;
}
.gwc-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}
.gwc-btn:active {
    transform: translateY(0);
}
.gwc-btn-primary {
    background: #6c7ae0;
    color: #fff;
}
.gwc-btn-secondary {
    background: #fff;
    color: #6c7ae0;
    border: 2px solid #6c7ae0;
}
.gwc-btn-pay {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 1.05em;
    background: #4f46e5;
    color: #fff;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
    cursor: pointer;
    border: none;
}
.gwc-btn-pay:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
@keyframes gwc-shimmer {
    0%   { background-position: -200% center; }
    35%  { background-position:  200% center; }
    100% { background-position:  200% center; } /* 残り65%は静止 */
}
.gwc-btn-meet {
    display: inline-block;
    background: linear-gradient(90deg, #7b4fa6, #20AEEF, #7b4fa6);
    background-size: 200% auto;
    animation: gwc-shimmer 3.5s ease-in-out infinite;
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 1.05em;
    margin: 8px 0 12px;
}

/* ── カレンダーナビ ── */
.gwc-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}
.gwc-month-title {
    font-size: 1.3em;
    font-weight: 700;
    margin: 0;
    min-width: 160px;
    text-align: center;
}
.gwc-nav-btn {
    background: none;
    border: 2px solid #ccc;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    font-size: 1.4em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s;
}
.gwc-nav-btn:hover {
    border-color: #6c7ae0;
    color: #6c7ae0;
}
.gwc-calendar-legend {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
    font-size: 0.85em;
    color: #555;
}
.gwc-legend.available { color: #16a34a; }
.gwc-legend.full      { color: #dc2626; }

/* ── カレンダーテーブル ── */
.gwc-calendar {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.gwc-calendar thead th {
    background: #1e293b;
    color: #fff;
    text-align: center;
    padding: 8px 4px;
    font-size: 0.85em;
    font-weight: 600;
}
.gwc-calendar td.gwc-day {
    height: 64px;
    vertical-align: top;
    border: 1px solid #e5e7eb;
    padding: 6px 4px;
    text-align: center;
    cursor: default;
}
.gwc-day-empty {
    background: #f9fafb;
}
.gwc-day-past {
    opacity: 0.4;
}
.gwc-day-available {
    cursor: pointer;
    background: #f0fdf4;
    transition: background 0.15s;
}
.gwc-day-available:hover {
    background: #dcfce7;
    outline: 2px solid #16a34a;
    outline-offset: -2px;
}
.gwc-day-full {
    background: #f8f8f8;
}
.gwc-day-num {
    display: block;
    font-size: 0.9em;
    font-weight: 600;
    color: #374151;
}
.gwc-day-mark {
    display: block;
    font-size: 0.85em;
    margin-top: 2px;
}
.gwc-day-mark.available { color: #16a34a; font-weight: 700; }
.gwc-day-mark.full      { color: #dc2626; font-weight: 700; }

.gwc-loading {
    text-align: center;
    padding: 24px;
    color: #888;
    font-size: 0.9em;
}

/* ── フォームエリア ── */
.gwc-back-btn {
    background: none;
    border: none;
    color: #6c7ae0;
    cursor: pointer;
    font-size: 0.95em;
    padding: 0;
    margin-bottom: 16px;
    display: inline-block;
}
.gwc-back-btn:hover {
    text-decoration: underline;
}
.gwc-form-date-title {
    font-size: 1.2em;
    font-weight: 700;
    margin: 0 0 16px;
    color: #1e293b;
}
.gwc-slot-label {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 10px;
}

/* ── 時間帯ボタン ── */
#gwc-slot-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}
.gwc-slot-btn {
    padding: 10px 18px;
    border-radius: 8px;
    border: 2px solid #d1d5db;
    background: #fff;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    transition: all 0.15s;
}
.gwc-slot-btn-available {
    border-color: #16a34a;
    color: #166534;
    background: #f0fdf4;
}
.gwc-slot-btn-available:hover {
    background: #16a34a;
    color: #fff;
}
.gwc-slot-btn-available.selected {
    background: #16a34a;
    color: #fff;
}
.gwc-slot-btn-full {
    border-color: #fecaca;
    color: #dc2626;
    background: #fff5f5;
    cursor: not-allowed;
}
.gwc-slot-status {
    font-size: 0.85em;
    margin-left: 4px;
}

/* ── 選択中スロット情報 ── */
.gwc-selected-slot {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #1e40af;
    font-size: 0.95em;
}

/* ── 入力フィールド ── */
.gwc-field {
    margin-bottom: 18px;
}
.gwc-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.95em;
    color: #374151;
}
.gwc-field input[type="text"],
.gwc-field input[type="tel"],
.gwc-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}
.gwc-field input:focus,
.gwc-field textarea:focus {
    outline: none;
    border-color: #6c7ae0;
    box-shadow: 0 0 0 3px rgba(108,122,224,0.15);
}
.gwc-required {
    color: #ef4444;
    margin-left: 2px;
}
.gwc-field-check label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}
.gwc-field-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ── 文字数カウンター ── */
.gwc-char-counter {
    text-align: right;
    font-size: 0.82em;
    color: #9ca3af;
    margin-top: 4px;
}
.gwc-char-counter.over {
    color: #ef4444;
    font-weight: 700;
}

/* ── 注意事項 ── */
.gwc-notes {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 0.88em;
    margin-bottom: 18px;
    color: #78350f;
}

/* ── 料金サマリー ── */
.gwc-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin: 20px 0 0;
}
.gwc-price-label {
    font-size: 0.95em;
    color: #555;
}
.gwc-price-value {
    font-size: 1.3em;
    font-weight: 700;
    color: #1e293b;
}
.gwc-stripe-note {
    text-align: center;
    font-size: 0.8em;
    color: #9ca3af;
    margin: 8px 0 0;
}

/* ── メッセージ ── */
.gwc-msg {
    min-height: 20px;
    margin-top: 10px;
    font-size: 0.9em;
    padding: 8px 12px;
    border-radius: 4px;
}
.gwc-msg:empty { display: none; }
.gwc-msg.error   { background: #fef2f2; color: #b91c1c; }
.gwc-msg.success { background: #f0fdf4; color: #166534; }
.gwc-msg.info    { background: #eff6ff; color: #1d4ed8; }

/* ── 完了ページ ── */
.gwc-completion {
    max-width: 580px;
    margin: 0 auto;
}

/* 予約内容サマリーカード */
.gwc-summary-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.gwc-summary-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.gwc-summary-icon {
    font-size: 1.4em;
    flex-shrink: 0;
    line-height: 1.2;
}
.gwc-summary-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.gwc-summary-label {
    font-size: 0.78em;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.gwc-summary-value {
    font-size: 1em;
    font-weight: 700;
    color: #1e293b;
}

/* メール通知インライン */
.gwc-notice-inline {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.88em;
    margin-bottom: 16px;
    line-height: 1.6;
}
.gwc-notice-email {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

/* 当日の流れ（STEPブロック） */
.gwc-card-flow {
    padding: 20px 20px 16px;
}
.gwc-flow-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 4px;
}
.gwc-flow-step-block {
    display: flex;
    align-items: center;
    background: #076951;
    border-radius: 6px;
    padding: 14px 20px 14px 16px;
    gap: 0;
    color: #fff;
    overflow: hidden;
}
.gwc-flow-step-num {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    min-width: 44px;
    padding-right: 0;
}
.gwc-flow-step-label {
    font-size: 0.6em;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2px;
}
.gwc-flow-step-n {
    font-size: 1.7em;
    font-weight: 900;
    line-height: 1;
    color: #fff;
    letter-spacing: -0.02em;
}
.gwc-flow-step-slash {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.35);
    margin: 0 16px;
    transform: rotate(12deg);
    flex-shrink: 0;
}
.gwc-flow-step-body {
    flex: 1;
}
.gwc-flow-title {
    font-weight: 700;
    font-size: 0.97em;
    color: #fff;
    margin: 0 0 3px;
}
.gwc-flow-desc {
    font-size: 0.82em;
    color: rgba(255,255,255,0.82);
    margin: 0;
    line-height: 1.55;
}
.gwc-flow-arrow {
    text-align: center;
    font-size: 1em;
    color: #076951;
    padding: 3px 0;
    line-height: 1;
}

/* アクションボタン群 */
.gwc-completion-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
/* LINE ボタン */
.gwc-btn-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: #06c755;
    color: #fff;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(6,199,85,0.3);
    transition: background 0.15s, box-shadow 0.15s;
}
.gwc-btn-line:hover {
    background: #05b04b;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(6,199,85,0.4);
}
.gwc-line-svg {
    flex-shrink: 0;
}
.gwc-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: #f8fafc;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}
.gwc-btn-secondary:hover {
    background: #f1f5f9;
    color: #111827;
    text-decoration: none;
}
.gwc-notes-list {
    margin: 0;
    padding-left: 20px;
    font-size: 0.88em;
    color: #6b7280;
}
.gwc-notes-list li {
    margin-bottom: 6px;
}
.gwc-completion-header {
    text-align: center;
    padding: 24px 0 20px;
}
.gwc-completion-icon {
    font-size: 3em;
    margin-bottom: 8px;
}
.gwc-completion-header h2 {
    font-size: 1.5em;
    margin: 0 0 8px;
    color: #166534;
}
.gwc-completion-header p {
    color: #555;
    margin: 0;
}
.gwc-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.gwc-card-title {
    font-size: 1em;
    font-weight: 700;
    margin: 0 0 14px;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
}
.gwc-card-meet {
    border-color: #bfdbfe;
    background: #f8fbff;
}
.gwc-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}
.gwc-info-table th,
.gwc-info-table td {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
}
.gwc-info-table th {
    width: 80px;
    color: #6b7280;
    font-weight: 600;
}
.gwc-meet-notes {
    font-size: 0.88em;
    color: #4b5563;
    margin: 0 0 12px;
    padding-left: 20px;
}
.gwc-meet-notes li {
    margin-bottom: 4px;
}
.gwc-meet-url {
    font-size: 0.82em;
    color: #6b7280;
    word-break: break-all;
    margin: 8px 0 4px;
}
.gwc-meet-url code {
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 3px;
}
.gwc-meet-save-note {
    font-size: 0.82em;
    color: #9ca3af;
    margin: 0;
}

/* ── レスポンシブ ── */
/* ── 待機ルーム ── */
.gwc-waiting-room {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}
.gwc-waiting-header {
    padding: 24px 0 20px;
}
.gwc-waiting-icon {
    font-size: 3em;
    margin-bottom: 8px;
}
.gwc-waiting-header h2 {
    font-size: 1.4em;
    margin: 0 0 6px;
    color: #1e293b;
}
.gwc-waiting-datetime {
    color: #6b7280;
    font-size: 0.95em;
    margin: 0;
}
.gwc-waiting-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.gwc-waiting-status {
    margin-bottom: 20px;
}
.gwc-waiting-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: #6c7ae0;
    border-radius: 50%;
    animation: gwc-spin 0.9s linear infinite;
    margin: 0 auto 14px;
}
@keyframes gwc-spin {
    to { transform: rotate(360deg); }
}
#gwc-waiting-msg {
    font-size: 0.95em;
    color: #374151;
    margin: 0;
    font-weight: 600;
}
.gwc-waiting-countdown {
    margin-bottom: 20px;
}
.gwc-countdown-label {
    font-size: 0.85em;
    color: #9ca3af;
    margin: 0 0 4px;
}
.gwc-countdown-time {
    font-size: 2em;
    font-weight: 700;
    color: #6c7ae0;
    margin: 0;
    font-variant-numeric: tabular-nums;
}
.gwc-waiting-notes {
    text-align: left;
    font-size: 0.85em;
    color: #6b7280;
    padding-left: 20px;
    margin: 0;
}
.gwc-waiting-notes li {
    margin-bottom: 6px;
}
.gwc-waiting-back {
    font-size: 0.88em;
    color: #9ca3af;
}
.gwc-waiting-back a {
    color: #6c7ae0;
}

/* ── LINE風チャットUI ── */
.gwc-chat-room {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 160px);
    min-height: 500px;
    background: #ebe5dd; /* LINEのトーク背景風 */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

/* ヘッダー */
.gwc-chat-header {
    background: #fff;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}
.gwc-chat-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.gwc-chat-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #7b4fa6, #20AEEF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    flex-shrink: 0;
}
.gwc-chat-title {
    font-weight: 700;
    font-size: 0.95em;
    color: #1e293b;
    margin: 0;
}
.gwc-chat-subtitle {
    font-size: 0.75em;
    color: #6b7280;
    margin: 0;
}

/* カウントダウン */
.gwc-chat-countdown {
    text-align: right;
    flex-shrink: 0;
}
.gwc-chat-countdown .gwc-countdown-label {
    font-size: 0.72em;
    color: #9ca3af;
    display: block;
    margin: 0;
}
.gwc-chat-countdown .gwc-countdown-time {
    font-size: 1.3em;
    font-weight: 700;
    color: #6c7ae0;
    margin: 0;
    font-variant-numeric: tabular-nums;
}

/* メッセージエリア */
.gwc-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scroll-behavior: smooth;
}

/* 吹き出し共通 */
.gwc-msg-row {
    display: flex;
    align-items: flex-end;
    gap: 6px;
}
.gwc-msg-row.system {
    justify-content: center;
}
.gwc-msg-row.user {
    flex-direction: row-reverse;
}
.gwc-msg-row.adviser {
    flex-direction: row;
}

/* システムメッセージ */
.gwc-bubble-system {
    background: rgba(0,0,0,0.30);
    color: #fff;
    font-size: 0.78em;
    padding: 5px 12px;
    border-radius: 12px;
    max-width: 90%;
    text-align: center;
    line-height: 1.5;
}

/* ユーザー吹き出し（右・キーカラー） */
.gwc-bubble-user {
    background: #7b4fa6;
    color: #fff;
    padding: 10px 14px;
    border-radius: 18px 4px 18px 18px;
    max-width: 72%;
    font-size: 0.92em;
    line-height: 1.5;
    word-break: break-word;
}

/* 専門家吹き出し（左・白） */
.gwc-bubble-adviser {
    background: #fff;
    color: #1e293b;
    padding: 10px 14px;
    border-radius: 4px 18px 18px 18px;
    max-width: 72%;
    font-size: 0.92em;
    line-height: 1.5;
    word-break: break-word;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

/* 吹き出しアバター */
.gwc-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7b4fa6, #20AEEF);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    flex-shrink: 0;
}

/* 送信時刻 */
.gwc-msg-time {
    font-size: 0.68em;
    color: #9ca3af;
    margin-bottom: 2px;
    align-self: flex-end;
}

/* 参加ボタン（join_button型） */
.gwc-join-btn-wrap {
    display: flex;
    justify-content: center;
    margin: 4px 0;
}
.gwc-join-btn {
    display: inline-block;
    background: linear-gradient(90deg, #7b4fa6, #20AEEF, #7b4fa6);
    background-size: 200% auto;
    animation: gwc-shimmer 3.5s ease-in-out infinite;
    color: #fff !important;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 1.05em;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 4px 16px rgba(32,174,239,0.35);
}

/* 入力エリア */
.gwc-chat-input-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}
.gwc-chat-input {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.92em;
    outline: none;
    background: #f9fafb;
}
.gwc-chat-input:focus {
    border-color: #7b4fa6;
    background: #fff;
}
.gwc-chat-send-btn {
    background: linear-gradient(135deg, #7b4fa6, #5b8de8);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 0 18px;
    height: 38px;
    font-size: 0.85em;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    letter-spacing: 0.03em;
    transition: opacity 0.18s;
    white-space: nowrap;
}
.gwc-chat-send-btn:hover {
    opacity: 0.88;
}
.gwc-chat-send-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    opacity: 1;
}

/* ── ガイドキャラクター 吹き出しUI ── */

/* 行レイアウト（アバター＋吹き出し） */
.gwc-guide-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

/* ガイドアバター画像 */
.gwc-guide-avatar {
    width: auto;
    height: 80px;
    border-radius: 8px;
    flex-shrink: 0;
    object-fit: contain;
    background: transparent;
}
.gwc-guide-avatar.gwc-guide-avatar-fallback {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f3e8ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
}

/* ガイド吹き出し */
.gwc-guide-bubble {
    background: #fff;
    color: #1e293b;
    padding: 11px 15px;
    border-radius: 4px 18px 18px 18px;
    max-width: 72%;
    font-size: 0.92em;
    line-height: 1.65;
    word-break: break-word;
    box-shadow: 0 1px 3px rgba(0,0,0,0.10);
}

/* フェードイン */
@keyframes gwc-guide-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.gwc-guide-appear .gwc-guide-bubble {
    animation: gwc-guide-in 0.3s ease forwards;
}

/* タイピングインジケーター（3点ドット） */
.gwc-typing-dots {
    background: #fff;
    border-radius: 4px 18px 18px 18px;
    padding: 13px 18px;
    display: flex;
    gap: 5px;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.10);
    min-width: 52px;
}
.gwc-typing-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #adb5bd;
    animation: gwc-dot-bounce 1.2s infinite;
}
.gwc-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.gwc-typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes gwc-dot-bounce {
    0%, 80%, 100% { transform: translateY(0); }
    40%           { transform: translateY(-5px); }
}

/* 確認ボタン */
.gwc-guide-confirm-wrap {
    display: flex;
    justify-content: center;
    padding: 6px 0 10px;
}
.gwc-guide-confirm-btn {
    background: linear-gradient(135deg, #7b4fa6, #5b8de8);
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 10px 28px;
    font-size: 0.88em;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.18s;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 8px rgba(91,141,232,0.30);
}
.gwc-guide-confirm-btn:hover:not(:disabled) {
    opacity: 0.85;
}
.gwc-guide-confirm-btn:disabled,
.gwc-guide-confirm-btn.gwc-confirmed {
    background: #d1d5db;
    color: #6b7280;
    box-shadow: none;
    cursor: default;
}

/* ── Stripeキャンセル通知 ── */
.gwc-cancel-notice {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    max-width: 560px;
    margin: 32px auto;
    padding: 24px 28px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
}
.gwc-cancel-icon {
    font-size: 2em;
    flex-shrink: 0;
    line-height: 1;
}
.gwc-cancel-title {
    font-weight: 700;
    font-size: 1.05em;
    color: #92400e;
    margin: 0 0 6px;
}
.gwc-cancel-body {
    font-size: 0.9em;
    color: #78350f;
    margin: 0 0 16px;
}
.gwc-cancel-btn {
    display: inline-block;
}

/* ── 完了ページ マイページリンク ── */
.gwc-completion-mypage {
    text-align: center;
    padding: 20px 0 8px;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}
.gwc-completion-mypage p {
    font-size: 0.9em;
    color: #6b7280;
    margin: 0 0 12px;
}
.gwc-btn-secondary {
    display: inline-block;
    padding: 10px 24px;
    background: #f8fafc;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}
.gwc-btn-secondary:hover {
    background: #f1f5f9;
    color: #111827;
    text-decoration: none;
}

/* ── マイページ ── */
.gwc-mypage {
    max-width: 660px;
    margin: 0 auto;
}
.gwc-mypage-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}
.gwc-mypage-empty-icon {
    font-size: 3em;
    margin-bottom: 12px;
}
.gwc-mypage-empty p {
    margin-bottom: 20px;
    font-size: 1em;
}
.gwc-booking-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}
.gwc-booking-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.gwc-booking-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    gap: 12px;
    flex-wrap: wrap;
}
.gwc-booking-datetime {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.gwc-booking-adviser-name {
    font-size: 0.8em;
    font-weight: 700;
    color: #7b4fa6;
    letter-spacing: 0.02em;
}
.gwc-booking-date-big {
    font-weight: 700;
    font-size: 1.05em;
    color: #1e293b;
}
.gwc-booking-time {
    font-size: 0.9em;
    color: #6c7ae0;
    font-weight: 600;
}
.gwc-status-badge {
    font-size: 0.8em;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}
.gwc-status-paid     { background: #dcfce7; color: #166534; }
.gwc-status-refunded { background: #f3f4f6; color: #6b7280; }
.gwc-status-cancelled{ background: #fef2f2; color: #b91c1c; }

/* バッジグループ */
.gwc-booking-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* 残り日数バッジ */
.gwc-countdown-badge {
    font-size: 0.8em;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}
.gwc-countdown-future { background: #eff6ff; color: #1d4ed8; }
.gwc-countdown-soon   { background: #fff7ed; color: #c2410c; }
.gwc-countdown-today  { background: #fef9c3; color: #92400e; }

/* 詳細アコーディオン */
.gwc-booking-details {
    border-top: 1px solid #e2e8f0;
}
.gwc-booking-details-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 20px;
    font-size: 0.88em;
    font-weight: 600;
    color: #6c7ae0;
    cursor: pointer;
    list-style: none;
    user-select: none;
    background: none;
    transition: background 0.15s;
}
.gwc-booking-details-toggle::-webkit-details-marker { display: none; }
.gwc-booking-details-toggle::after {
    content: '▼';
    font-size: 0.7em;
    transition: transform 0.2s;
}
.gwc-booking-details[open] > .gwc-booking-details-toggle::after {
    transform: rotate(180deg);
}
.gwc-booking-details-toggle:hover {
    background: #f8fafc;
}
.gwc-booking-details-body {
    border-top: 1px solid #e2e8f0;
    padding: 0;
}
.gwc-detail-section {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
}
.gwc-detail-section:last-child {
    border-bottom: none;
}
.gwc-detail-section-meet {
    background: #f8fbff;
}
.gwc-detail-section-title {
    font-size: 0.9em;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}
.gwc-detail-url-label {
    font-size: 0.82em;
    color: #6b7280;
    font-weight: 600;
    margin: 12px 0 4px;
}
.gwc-detail-url-text {
    margin: 0 0 14px;
}
.gwc-url-link {
    color: #6c7ae0;
    font-size: 0.82em;
    word-break: break-all;
    text-decoration: underline;
}
.gwc-btn-block {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 0.95em;
    box-sizing: border-box;
}
.gwc-mypage-footer {
    text-align: center;
    padding: 8px 0 16px;
}
.gwc-btn-sm {
    padding: 8px 18px;
    font-size: 0.9em;
}

@media (max-width: 600px) {
    .gwc-calendar td.gwc-day {
        height: 48px;
        padding: 3px 2px;
    }
    .gwc-day-num {
        font-size: 0.8em;
    }
    .gwc-day-mark {
        font-size: 0.75em;
    }
    .gwc-notice {
        flex-direction: column;
        gap: 10px;
    }
    .gwc-card {
        padding: 16px;
    }
    #gwc-slot-buttons {
        gap: 8px;
    }
    .gwc-slot-btn {
        padding: 8px 14px;
        font-size: 0.9em;
    }
}

/* ─── アバター画像（専門家・ユーザー共通） ─── */
.gwc-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.gwc-chat-avatar.gwc-avatar-img {
    width: 40px;
    height: 40px;
}

/* ─── 専門家待機ルーム: ホストコントロール ─── */
.gwc-host-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.12);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    flex-wrap: wrap;
}

/* ホスト側 Meet 入室ボタン（シマーなし・白テキスト） */
.gwc-btn-meet-host {
    animation: none !important;
    background: linear-gradient(135deg, #7b4fa6, #5a3d8a) !important;
    background-size: auto !important;
    color: #fff !important;
    border: none;
    cursor: pointer;
    font-weight: 700;
}
.gwc-btn-meet-host:hover {
    opacity: 0.88;
}

/* 相談を終了するボタン */
.gwc-host-end-btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.88em;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #d1d5db;
    color: #6b7280;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.gwc-host-end-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}
.gwc-host-end-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ホスト待機ルーム チャット案内テキスト */
.gwc-host-chat-note {
    margin: 0;
    padding: 6px 16px 8px;
    font-size: 0.82em;
    background: #086e75;
    color: #ffffff;
    text-align: center;
    border-bottom: 1px solid #f3f4f6;
}
}

/* ── Vimeo 録画プレーヤー（レスポンシブ） ── */
.gwc-vimeo-wrapper {
    width: 100%;
    max-width: 640px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}
.gwc-vimeo-iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}
/* 録画セクション */
.gwc-detail-section-recording {
    padding: 16px 20px;
}
.gwc-rec-processing {
    text-align: center;
    padding: 24px 16px;
    background: #f9fafb;
    border-radius: 8px;
}
.gwc-rec-processing-icon {
    font-size: 2em;
    display: block;
    margin-bottom: 8px;
}

/* スマホ: 親セクションの余白に揃える */
@media (max-width: 600px) {
    .gwc-vimeo-wrapper {
        max-width: 100%;
        border-radius: 6px;
    }
}
