/* itemsheet.css: photo boxes and the pop-up where a cake is customised. Shared by the customer shop and the staff dashboard. */
.ph{position:relative;display:grid;place-items:center;overflow:hidden;flex:none;background:var(--rose-pale)}
.ph::before{content:attr(data-emoji);font-size:2rem;line-height:1}
.ph img{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover}
.ph.sm{width:104px;height:104px;border-radius:14px}
.ph.lg{width:100%;height:210px}
@supports(aspect-ratio:16/10){.ph.lg{height:auto;aspect-ratio:16/10}}

/* ---------- the pop-up where a cake is customised ---------- */
.item-sheet .sheet-b{padding-top:0}
.is-photo{margin:0 -20px}
.is-head{display:flex;align-items:center;gap:10px;margin-top:18px}
.is-head h3{font-size:1.45rem}
.is-desc{margin-top:6px;color:var(--muted)}
.is-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.is-sec{margin-top:22px}
.is-sub{margin-top:2px}
.opt-list{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.opt-row{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:8px 14px;border:2px solid var(--line);border-radius:14px;background:var(--white);text-align:left;font-weight:700;color:var(--ink)}
.opt-row:hover{border-color:var(--rose)}
.opt-row.on{border-color:var(--rose-deep);background:var(--rose-pale)}
.opt-row[disabled]{opacity:.5;cursor:not-allowed}
.opt-mark{display:grid;place-items:center;flex:none;width:24px;height:24px;border:2px solid var(--line-strong);border-radius:7px;background:var(--white);color:#fff}
.opt-mark.radio{border-radius:50%}
.opt-mark.on{background:var(--rose-deep);border-color:var(--rose-deep)}
.opt-mark .i{width:15px;height:15px;stroke-width:3}
.opt-ph .ph{width:46px;height:46px;border-radius:10px}
.opt-ph .ph::before{font-size:1.3rem}
.opt-name{flex:1;min-width:0}
.opt-name small{display:block;color:var(--muted);font-weight:500;font-size:.8125rem}
.opt-name small.soldout{color:var(--danger);font-weight:700}
.opt-price{white-space:nowrap;font-weight:800;font-variant-numeric:tabular-nums}
.is-note{margin:22px 0 0}
.is-foot{flex:1;min-width:0}
.is-need{margin-bottom:8px;color:var(--danger);font-size:.875rem;font-weight:700}
.is-need:empty{display:none}
/* the shop's note shown under every cake, and the message written on the cake */
.is-info{margin-top:14px;border-radius:14px;background:var(--cream-deep);color:var(--ink);font-size:.875rem;line-height:1.5}
.is-info summary{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 14px;cursor:pointer;font-weight:700;color:var(--plum);list-style:none}
.is-info summary::-webkit-details-marker{display:none}
.is-info summary::after{content:'+';margin-left:auto;font-size:1.2rem;font-weight:700}
.is-info[open] summary::after{content:'−'}
.is-info .i{flex:none;width:18px;height:18px}
.is-info-b{padding:0 14px 12px}
.is-info-b h5{margin:10px 0 4px;font-size:.875rem;color:var(--plum)}
.is-info-b ul{margin:0;padding-left:18px}
.is-info-b li+li{margin-top:4px}
.is-msg .msg-in{display:block;width:100%;margin-top:10px;min-height:52px;padding:12px 14px;border:2px solid var(--rose-deep);border-radius:14px;background:var(--white);font:inherit;font-size:1.0625rem;font-weight:700;color:var(--ink)}
.is-msg .msg-in:focus{outline:3px solid var(--rose);outline-offset:1px}
.is-msg .hint{margin-top:6px}
.od-msg.cake{background:var(--rose-pale);color:var(--plum);font-style:normal}
/* how many of one add-on (3 snow sprays) */
.opt-qty{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin:-2px 4px 4px}
.opt-qty b{min-width:22px;text-align:center;font-size:1.05rem}
.opt-qty .iconbtn{width:40px;height:40px;border:1px solid var(--line-strong);border-radius:50%}
.is-deal{display:flex;align-items:center;gap:6px;margin-top:10px;padding:8px 12px;border-radius:12px;background:var(--sage-pale);color:var(--sage-deep);font-weight:700}
.is-deal .i{width:16px;height:16px;flex:none}
.opt-price s{font-weight:500;margin-right:4px}
/* numbered steps in the cake screen */
.stepn{display:inline-grid;place-items:center;flex:none;width:24px;height:24px;margin-right:8px;border-radius:50%;background:var(--plum);color:var(--cream);font:800 .8125rem/1 var(--sans, inherit);vertical-align:2px}
.is-step{display:flex;align-items:center;margin:22px 0 2px;font-size:1.0625rem}
.is-sec h4{display:flex;align-items:center}
.is-note .lab{display:flex;align-items:center}
.opt-row .diet{margin-right:2px}
/* celebration add-ons: folded until the customer opens them */
.is-addons{margin-top:18px;border:1px solid var(--line);border-radius:var(--r);background:var(--white)}
.is-addons>summary{display:flex;align-items:center;gap:4px;min-height:56px;padding:10px 14px;cursor:pointer;list-style:none}
.is-addons>summary::-webkit-details-marker{display:none}
.is-addons>summary small{display:block;color:var(--muted);font-size:.8125rem;font-weight:500}
.is-addons>summary .i{transition:transform .15s}
.is-addons[open]>summary .i{transform:rotate(180deg)}
.is-addons>div{padding:0 14px 12px}
.is-addons .is-sec:first-child{margin-top:0}
@media(min-width:760px){.item-sheet .is-foot .btn.lg{min-height:54px}}
.is-addons .is-sec:only-child>.row{display:none}
.is-note .lab .opt{margin-left:6px}
/* 1i: the cake screen. Price and labels at the top; delivery and cake-care text in folding sections;
   on a laptop or desktop two columns (picture and information left, choices right), on a phone one column. */
.is-price{margin-top:4px;font-size:1.125rem}
.is-price b{font-size:1.375rem;color:var(--plum)}
.is-labels{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.is-labels .badge[class*="tag-"]{background:var(--rose-pale);color:var(--plum)}
.is-labels .tag-bestseller{background:#fde7d9;color:#8a3a12}
.is-labels .badge .diet{width:13px;height:13px;border-width:1.5px;margin-right:2px}
.is-labels .badge .diet::after{width:5px;height:5px}
.is-legend{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:14px 0 2px}
.is-info+.is-info{margin-top:8px}
@media(min-width:900px){
  .sheet.item-sheet.is-wide{max-width:1040px;width:calc(100% - 48px);border-radius:var(--r-lg);margin:auto}
  .item-sheet.is-wide .is-cols{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:28px;align-items:start}
  .item-sheet.is-wide .is-photo .ph.lg{aspect-ratio:4/3}
  .item-sheet.is-wide .is-photo{margin:0;border-radius:16px;overflow:hidden}
  .item-sheet.is-wide .is-col2 .is-legend{margin-top:0}
  .item-sheet.is-wide .sheet-f{justify-content:flex-end}
  .item-sheet.is-wide .is-foot{max-width:560px;margin-left:auto;width:100%}
}
/* 1n: "Other weight" row on shop orders */
.opt-row.is-kg{flex-wrap:wrap;cursor:default}
.is-kg-pick{display:flex;align-items:center;gap:12px;flex:1 1 200px;min-width:0;background:none;border:0;padding:0;font:inherit;font-weight:700;color:inherit;text-align:left;cursor:pointer}
.is-kg-pick .opt-name small{display:block;font-weight:500}
.is-kg-sel{display:flex;align-items:center;gap:10px;margin-left:auto}
.is-kg-sel select{min-height:40px;border:2px solid var(--line);border-radius:10px;padding:0 10px;font:inherit;background:var(--white)}
