.cmsb-reservation { --cmsb-border:#d6dbe5; --cmsb-muted:#64748b; width:100%; max-width:980px; color:var(--cmsb-text,#172033); background:var(--cmsb-bg,#fff); border:1px solid var(--cmsb-border); border-radius:var(--cmsb-radius); padding:18px; box-shadow:0 12px 34px rgba(15,23,42,.08); }
.cmsb-brand-header { display:flex; gap:14px; align-items:center; margin:0 0 20px; padding-bottom:18px; border-bottom:1px solid var(--cmsb-border); }
.cmsb-brand-header img { width:64px; height:64px; object-fit:contain; border:1px solid var(--cmsb-border); border-radius:var(--cmsb-radius); background:#fff; }
.cmsb-brand-header span { display:block; margin-bottom:3px; color:var(--cmsb-primary); font-weight:800; }
.cmsb-brand-header h2 { margin:0; color:var(--cmsb-text,#172033); font-size:clamp(22px,4vw,32px); line-height:1.15; }
.cmsb-brand-header p { margin:7px 0 0; color:var(--cmsb-muted); }
.cmsb-reservation * { box-sizing:border-box; }
.cmsb-reservation h2 { margin:0 0 12px; font-size:20px; line-height:1.2; }
.cmsb-step { margin:0 0 18px; }
.cmsb-step + .cmsb-step { padding-top:18px; border-top:1px solid #e5e7eb; }
.cmsb-reservation label { display:block; font-weight:650; margin:0; }
.cmsb-reservation input,.cmsb-reservation select,.cmsb-reservation textarea { width:100%; min-height:46px; border:1px solid var(--cmsb-border); border-radius:calc(var(--cmsb-radius) - 2px); padding:10px 12px; margin-top:6px; background:#fff; color:inherit; font-size:16px; }
.cmsb-reservation textarea { resize:vertical; min-height:92px; }
.cmsb-form-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:14px; margin-bottom:14px; }
.cmsb-button { appearance:none; border:0; border-radius:var(--cmsb-radius); background:var(--cmsb-button); color:#fff; min-height:46px; padding:0 18px; font-weight:750; cursor:pointer; font-size:16px; }
.cmsb-button:hover { filter:brightness(1.06); }
.cmsb-button:disabled { opacity:.5; cursor:not-allowed; }
.cmsb-button-wide { min-width:220px; }
.cmsb-mobile-progress { display:none; grid-template-columns:repeat(3,1fr); gap:6px; margin:0 0 16px; }
.cmsb-mobile-progress span { min-height:32px; display:flex; align-items:center; justify-content:center; border-radius:999px; background:#f1f5f9; color:#64748b; font-size:13px; font-weight:750; }
.cmsb-mobile-progress span.is-active { background:color-mix(in srgb, var(--cmsb-primary) 14%, white); color:var(--cmsb-primary); }
.cmsb-mobile-hint { margin:0 0 10px; color:var(--cmsb-muted); }
.cmsb-selected-summary { margin:0 0 10px; padding:10px 12px; border:1px solid color-mix(in srgb, var(--cmsb-secondary) 35%, white); border-radius:var(--cmsb-radius); background:color-mix(in srgb, var(--cmsb-secondary) 9%, white); color:#0f3f3b; font-weight:750; }
.cmsb-booking-review { margin:0 0 14px; padding:12px; border:1px solid color-mix(in srgb, var(--cmsb-primary) 22%, white); border-radius:var(--cmsb-radius); background:color-mix(in srgb, var(--cmsb-primary) 7%, white); }
.cmsb-booking-review h3 { margin:0 0 10px; font-size:16px; }
.cmsb-booking-review dl { display:grid; gap:7px; margin:0; }
.cmsb-booking-review div { display:flex; justify-content:space-between; gap:12px; }
.cmsb-booking-review dt { color:var(--cmsb-muted); font-weight:700; }
.cmsb-booking-review dd { margin:0; text-align:right; font-weight:750; }
.cmsb-prepayment-notice { margin:0 0 14px; padding:12px; border:1px solid #fde68a; border-radius:var(--cmsb-radius); background:#fffbeb; color:#92400e; font-weight:750; }
.cmsb-public-floorplan { margin:12px 0 0; }
.cmsb-legend { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px; font-size:14px; }
.cmsb-legend span { display:inline-flex; align-items:center; gap:6px; min-height:28px; padding:3px 8px; border-radius:999px; background:#f8fafc; border:1px solid #e5e7eb; }
.cmsb-legend i { width:12px; height:12px; border-radius:999px; display:inline-block; background:#e5e7eb; }
.cmsb-legend .free { background:#22c55e; }
.cmsb-legend .selected { background:#f59e0b; }
.cmsb-legend .unbookable { background:#94a3b8; }
.cmsb-floorplan-shell { overflow:hidden; border:1px solid var(--cmsb-border); border-radius:var(--cmsb-radius); background:#f8fafc; }
.cmsb-floorplan-scroll { position:relative; min-height:520px; overflow:auto; background:linear-gradient(#fbfdff,#eef3f8); -webkit-overflow-scrolling:touch; touch-action:pan-x pan-y; }
.cmsb-room-plan { position:relative; min-width:760px; min-height:520px; transform-origin:top left; }
.cmsb-room-plan-title { position:absolute; z-index:4; top:10px; left:10px; display:flex; gap:8px; align-items:center; max-width:calc(100% - 20px); background:rgba(255,255,255,.94); border:1px solid var(--cmsb-border); border-radius:var(--cmsb-radius); padding:7px 10px; box-shadow:0 4px 14px rgba(15,23,42,.08); }
.cmsb-room-plan-title strong,.cmsb-room-plan-title span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cmsb-room-plan-title span { color:var(--cmsb-muted); font-size:13px; }
.cmsb-public-layout { position:absolute; z-index:1; display:flex; align-items:center; justify-content:center; background:color-mix(in srgb, var(--cmsb-layout-color) 22%, transparent); border:2px solid var(--cmsb-layout-color); color:#0f172a; font-weight:700; text-align:center; pointer-events:none; overflow:hidden; }
.cmsb-public-layout span { padding:2px 6px; line-height:1.2; }
.cmsb-layout-wall { background:var(--cmsb-layout-color); color:transparent; min-height:8px; }
.cmsb-layout-door { background:#fff7ed; border:2px dashed var(--cmsb-layout-color); color:#92400e; border-radius:999px; }
.cmsb-layout-counter { background:color-mix(in srgb, var(--cmsb-layout-color) 60%, white); border-color:var(--cmsb-layout-color); color:#fff; border-radius:8px; }
.cmsb-layout-label { background:transparent; border:1px dashed var(--cmsb-layout-color); color:var(--cmsb-layout-color); }
.cmsb-layout-pillar { border-radius:999px; background:var(--cmsb-layout-color); border-color:#1e293b; color:#fff; }
.cmsb-layout-obstacle { background:color-mix(in srgb, var(--cmsb-layout-color) 30%, white); border:2px solid var(--cmsb-layout-color); color:#7f1d1d; }
.cmsb-public-table { position:absolute; z-index:3; display:flex; flex-direction:column; align-items:center; justify-content:center; min-width:44px; min-height:44px; border:2px solid #94a3b8; background:#e5e7eb; color:#172033; cursor:not-allowed; box-shadow:0 8px 20px rgba(15,23,42,.10); font:inherit; }
.cmsb-shape-round { border-radius:999px; }
.cmsb-shape-rect { border-radius:8px; }
.cmsb-public-table span { font-weight:850; line-height:1; }
.cmsb-public-table small { font-size:11px; }
.cmsb-public-table.is-free { background:#dcfce7; border-color:#22c55e; cursor:pointer; }
.cmsb-public-table.is-free:active { transform:scale(.98); }
.cmsb-public-table.is-reserved,
.cmsb-public-table.is-unbookable { background:#f1f5f9; border-color:#94a3b8; color:#64748b; opacity:.78; cursor:not-allowed; }
.cmsb-public-table.is-selected { background:#fef3c7; border-color:#f59e0b; outline:4px solid rgba(245,158,11,.32); }
.cmsb-table-picker { margin-top:12px; }
.cmsb-table-picker h3 { margin:0 0 8px; font-size:16px; }
.cmsb-table-picker-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:10px; }
.cmsb-table-card { appearance:none; min-height:58px; display:grid; gap:3px; justify-items:start; border:1px solid #bbf7d0; border-radius:var(--cmsb-radius); background:#f0fdf4; color:#14532d; padding:10px 12px; text-align:left; cursor:pointer; font:inherit; }
.cmsb-table-card strong { font-size:15px; }
.cmsb-table-card span { color:#166534; font-size:13px; }
.cmsb-table-card.is-selected { border-color:#f59e0b; background:#fef3c7; color:#78350f; outline:3px solid rgba(245,158,11,.24); }
.cmsb-table-card.is-selected span { color:#92400e; }
.cmsb-privacy { margin:12px 0; display:flex; gap:10px; align-items:flex-start; line-height:1.35; }
.cmsb-privacy input { width:20px; min-width:20px; min-height:20px; margin-top:0; }
.cmsb-response { margin-top:12px; padding:0; font-weight:750; color:var(--cmsb-secondary); }
.cmsb-response:not(:empty) { padding:12px; border-radius:var(--cmsb-radius); background:color-mix(in srgb, var(--cmsb-secondary) 9%, white); }
.cmsb-no-tables { padding:20px; }
.cmsb-cancel-panel { --cmsb-border:#d6dbe5; --cmsb-muted:#64748b; width:100%; max-width:720px; border:1px solid var(--cmsb-border); border-radius:var(--cmsb-radius); background:#fff; padding:18px; box-shadow:0 12px 34px rgba(15,23,42,.08); color:#172033; }
.cmsb-cancel-panel * { box-sizing:border-box; }
.cmsb-cancel-panel h2 { margin:0 0 12px; font-size:22px; line-height:1.2; }
.cmsb-cancel-panel dl { display:grid; grid-template-columns:minmax(110px, .5fr) 1fr; gap:8px 14px; margin:0 0 16px; }
.cmsb-cancel-panel dt { color:var(--cmsb-muted); font-weight:750; }
.cmsb-cancel-panel dd { margin:0; font-weight:650; }
.cmsb-cancel-panel .cmsb-button-danger { background:#b91c1c; }
.cmsb-cancel-notice { margin:0 0 14px; padding:12px; border-radius:var(--cmsb-radius); background:#f0fdf4; color:#14532d; font-weight:750; }
.cmsb-cancel-notice.is-error { background:#fef2f2; color:#991b1b; }

@media (max-width: 720px) {
    .cmsb-reservation { padding:14px; border-radius:0; border-left:0; border-right:0; max-width:100%; width:100%; box-shadow:none; }
    .cmsb-mobile-progress { display:grid; }
    .cmsb-reservation h2 { font-size:18px; }
    .cmsb-form-grid { grid-template-columns:1fr; gap:12px; }
    .cmsb-button-wide { width:100%; }
    .cmsb-floorplan-scroll { min-height:360px; max-height:68vh; }
    .cmsb-room-plan { min-width:760px; min-height:520px; }
    .cmsb-public-table { min-width:48px; min-height:48px; }
    .cmsb-table-picker { display:block; }
    .cmsb-table-picker-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .cmsb-table-card { min-height:62px; }
    .cmsb-legend { gap:6px; font-size:13px; }
    .cmsb-room-plan-title { top:8px; left:8px; max-width:calc(100% - 16px); font-size:13px; }
    .cmsb-mobile-submit { position:sticky; bottom:0; z-index:20; margin:14px -14px -14px; padding:12px 14px max(12px, env(safe-area-inset-bottom)); background:rgba(255,255,255,.96); border-top:1px solid #e5e7eb; backdrop-filter:blur(8px); }
    .cmsb-cancel-panel { max-width:100%; padding:14px; border-radius:0; border-left:0; border-right:0; box-shadow:none; }
    .cmsb-cancel-panel dl { grid-template-columns:1fr; gap:4px; }
    .cmsb-cancel-panel dt { margin-top:6px; }
}

@media (max-width: 420px) {
    .cmsb-floorplan-scroll { min-height:330px; }
    .cmsb-mobile-progress span { font-size:12px; }
}
