/* Overlay only: do not rename or remove the existing booking fields. */
#app{max-width:1160px;padding:0 24px 110px}
.shop-header{padding:32px 0 24px}
.shop-header h1{font-size:1.55rem;font-weight:500}
#view-form{max-width:650px;margin:auto}
.step{margin:30px 0 38px;scroll-margin-top:20px}
.step h2{font-size:1.1rem;font-weight:500;border-bottom:1px solid var(--line);padding-bottom:13px;gap:12px}
.step-no{background:none;color:var(--ink);border-radius:0;width:1.25em;height:auto;font-size:1.15em;font-weight:700;line-height:inherit;font-variant-numeric:tabular-nums}
.cards{gap:20px}
.card{border:0;border-bottom:1px solid var(--line);border-radius:4px 4px 0 0;text-align:left;padding:14px;box-shadow:none}
.card.selected{border:0;border-bottom:2px solid var(--selbox);background:var(--sel)}
.card .card-name{font-size:1rem;font-weight:500}.card .card-desc{font-size:.85rem}.card .card-price{font-size:.95rem;color:var(--ink)}
.card .card-photo{border-radius:3px;margin-bottom:12px}.card .card-emoji{display:none}
.pill{border-width:1px;border-radius:5px;padding:10px 16px;font-family:inherit}
.group{padding:8px 0 20px;border:0;border-bottom:1px solid var(--line);border-radius:0;margin:22px 0;background:transparent}
.group h3{font-weight:500;font-size:1rem}.group .group-desc{font-size:.9rem}.group .group-note{font-size:.85rem}
.opt{padding:12px 8px;border-radius:4px}.opt .opt-name{font-size:.95rem}.opt .opt-note,.opt .opt-desc{font-size:.83rem}
.field input,.field textarea,.field select{border-width:1px!important;border-radius:5px!important;font-size:1rem}
.btn-primary,.btn-secondary{border-radius:5px;border-width:1px;font-family:inherit}
.preview-canvas{border:0;border-radius:4px;max-width:100%;background:#f6f6f4}
.preview-box{display:none}
.booking-layer .preview-box,.booking-image .preview-box{display:block}
.preview-note{font-size:.78rem;line-height:1.55;color:var(--ink)}
.preview-caption{font-weight:500}
.price-bar{border-top:1px solid var(--line);box-shadow:none}
.booking-expand{display:none}
#booking-preview-dialog{width:min(520px,calc(100vw - 24px));max-height:90vh;max-height:90dvh;margin:auto;padding:18px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--ink);font-family:var(--ff)}
#booking-preview-dialog::backdrop{background:rgba(0,0,0,.45)}
.booking-dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px}
.booking-dialog-heading h2{font-size:1rem;font-weight:500;margin:0}
.booking-dialog-close{min-height:44px;padding:8px 14px;border:1px solid var(--line);border-radius:5px;background:var(--bg);color:var(--ink);font:inherit;cursor:pointer}
.booking-dialog-picture{display:flex;justify-content:center;background:#f6f6f4}
.booking-dialog-picture canvas,.booking-dialog-picture img{display:block;width:100%;height:auto;max-height:calc(90vh - 180px);max-height:calc(90dvh - 180px);object-fit:contain}
.booking-dialog-note{font-size:.8rem;line-height:1.6;margin:14px 0 0;white-space:pre-wrap}
@media(min-width:850px){
 #view-form.booking-layer{max-width:none;display:grid;grid-template-columns:minmax(0,650px) clamp(280px,30vw,360px);column-gap:44px;align-items:start;overflow:visible}
 .booking-layer>.step{grid-column:1}
 .booking-layer>.preview-box{grid-column:2;grid-row:1 / span 6;align-self:start;height:max-content;position:-webkit-sticky;position:sticky;top:24px;margin:30px 0 0;padding:0 0 20px;background:var(--bg)}
 .booking-layer .preview-canvas{width:100%;height:auto;aspect-ratio:1}
}
@media(max-width:849px){
 #app{padding-left:16px;padding-right:16px}
 .booking-layer>.preview-box{position:-webkit-sticky;position:sticky;top:0;z-index:10;align-self:start;height:max-content;background:var(--bg);display:grid;grid-template-columns:110px minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:14px;align-items:start;padding:10px 0;margin:0;border-bottom:1px solid var(--line);text-align:left}
 .booking-layer .preview-canvas{grid-row:1 / span 3;width:110px;height:110px;margin:0}
 .booking-layer .preview-caption{margin:0 0 6px;font-size:.85rem}
 .booking-layer .preview-note{margin:0;font-size:.75rem}
 .booking-layer .btn-reset-design{grid-column:2;width:fit-content;margin:7px 0 0;min-height:40px;padding:7px 10px;font-size:.76rem}
 .booking-layer .booking-expand,.booking-image .booking-expand{display:block;width:fit-content;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:5px;background:var(--bg);color:var(--ink);font:inherit;font-size:.8rem;cursor:pointer;margin-top:6px}
 .booking-layer .booking-expand{grid-column:2}
 .booking-image .booking-expand{margin:8px auto 0}
 .booking-layer>.step{scroll-margin-top:calc(var(--booking-preview-height,150px) + 14px)}
 /* スマホ：上の固定エリアの高さはそのまま、イラストを大きく・リセットと拡大を小さく（2026-10-04 まりほ要望） */
 .booking-layer>.preview-box{--pv:min(164px,43vw);grid-template-columns:var(--pv) minmax(0,1fr);grid-template-rows:auto auto auto auto 1fr;column-gap:12px}
 .booking-layer .preview-canvas{grid-column:1;grid-row:1 / -1;width:var(--pv);height:var(--pv)}
 .booking-layer .preview-caption,.booking-layer .preview-note{grid-column:2}
 .booking-layer .preview-caption{margin:0 0 4px}
 .booking-layer .preview-note{font-size:.72rem;line-height:1.5}
 .booking-layer .btn-reset-design,.booking-layer .booking-expand{grid-column:2;width:fit-content;max-width:100%;min-height:32px;margin:6px 0 0;padding:4px 10px;font-size:.72rem;line-height:1.3;letter-spacing:0;border-radius:5px;white-space:normal;text-align:left}
}
@media(max-width:540px){
 .cards{display:block}
 .card{padding:16px 6px;display:flow-root;margin-bottom:0}
 .card .card-photo{width:96px;float:left;margin:0 14px 0 0}
.card .card-name{margin-top:0}.card .card-desc{font-size:.82rem}.card .card-emoji{float:left;margin-right:14px;font-size:24px}
}

/* Keep the existing shop theme controls effective in the redesigned form. */
.card{border-radius:var(--r-lg) var(--r-lg) 0 0;border-bottom-color:var(--box)}
.card .card-photo,.opt,.preview-canvas{border-radius:var(--r)}
.pill,.btn-primary,.btn-secondary,.booking-expand,.booking-dialog-close{border-radius:var(--r)!important}
.field input,.field textarea,.field select{border-radius:var(--r)!important}
.group{background:var(--boxbg)}
/* 背景色とケーキ色が重なっても、透明な輪郭へ落とす影で形を見せる。 */
.preview-canvas,.booking-dialog-picture{background:#faf9f7}
.preview-canvas canvas,.booking-dialog-picture canvas{filter:drop-shadow(0 3px 6px rgba(48,42,38,.24))}
#booking-preview-dialog{border-radius:var(--r-lg)}
.opt:hover{background:var(--sel);color:var(--selink)}

/* Service attribution stays separate from the booking controls and fixed total. */
.booking-credit{margin:40px 0 0;padding:16px 0;text-align:center;color:var(--mute);font-weight:400;line-height:1.6}
.booking-credit small{font-size:12px}

/* 説明・見本と、押して選ぶ項目の境界を明確にする。 */
#sec-groups .group>h3{font-size:1.05rem;font-weight:700;margin-bottom:12px}
#sec-groups .group-guide{padding:12px 14px;margin:0 0 18px;border-left:3px solid var(--line);background:var(--boxbg)}
#sec-groups .group-guide:empty{display:none}
#sec-groups .group-guide .sample-img{margin-bottom:0}
#sec-groups .group-sample-caption{margin:12px 0 6px;font-size:.78rem;color:var(--mute)}
#sec-groups .group-choice-label{margin:18px 0 10px;font-size:.85rem;font-weight:700;color:var(--ink)}
#sec-groups .group>.opt{border:1px solid var(--box);background:var(--card);padding:14px 12px;margin:10px 0;border-radius:var(--r);min-height:56px}
#sec-groups .group>.opt:has(>input:checked){border-color:var(--selbox);box-shadow:inset 0 0 0 1px var(--selbox);background:var(--sel);color:var(--selink)}
#sec-groups .group>.opt:not(.opt-disabled):hover{border-color:var(--primary-deep)}
#sec-groups .group>.opt:focus-within{outline:2px solid var(--primary-deep);outline-offset:2px}
#sec-groups .group>.opt>.opt-name{font-weight:700;min-width:0;overflow-wrap:anywhere}
#sec-groups .group>.opt .opt-desc,#sec-groups .group>.opt .opt-note{font-weight:400;margin-top:5px;line-height:1.6}
#sec-groups .group>.opt>.opt-price{font-weight:700}
#sec-groups .group>.opt>input{flex-shrink:0}
@media(max-width:540px){
 #sec-groups .group>.opt{display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:10px}
 #sec-groups .group>.opt>input{grid-column:1;grid-row:1;margin:0}
 #sec-groups .group>.opt>.opt-name{grid-column:2;grid-row:1}
 #sec-groups .group>.opt>.opt-price{grid-column:3;grid-row:1;max-width:7em;white-space:normal;text-align:right;overflow-wrap:anywhere}
 #sec-groups .group>.opt>.opt-sample-button{grid-column:2;justify-self:start}
 #sec-groups .group>.opt>.qty-stepper{grid-column:2 / 4;justify-self:end}
}
.booking-credit a{color:inherit;text-decoration:underline;text-underline-offset:2px}
