/* Order page: choose size → payment → upload + live sketch preview, plus the gallery slideshow */
.od { max-width: 1180px; margin: 0 auto; padding: 48px max(16px, 5vw) 96px; }
.od-head { text-align: center; }
.od-head h1 { margin: 0; font: 500 clamp(40px, 5vw, 64px)/1.05 var(--serif); letter-spacing: -1px; color: var(--ink); }
.od-head p { max-width: 34em; margin: 16px auto 0; font-size: 16px; line-height: 1.6; color: #5f5a50; }
.od-steps { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 32px 0 0; padding: 0; }
.od-steps li { display: flex; align-items: center; gap: 8px; padding: 8px 16px 8px 8px; border-radius: 999px; background: #efe9de; font: 600 14px var(--sans); color: #6b665c; }
.od-steps li b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fffdf8; font-size: 12px; }
.od-steps li.on { background: var(--ink); color: #fffdf8; } .od-steps li.on b { background: #fffdf8; color: var(--ink); }
.od-steps li.done b { background: var(--olive); color: #fffdf8; }
.od-panel { margin-top: 48px; animation: odIn .5s ease both; }
.od-panel[hidden] { display: none; }
.od-h2 { margin: 0 0 24px; font: 500 30px/1.2 var(--serif); color: var(--ink); text-align: center; }
.od-actions { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 32px; }
.od-btn { font: 600 15px var(--sans); color: #fffdf8; background: var(--ink); border: 0; border-radius: 999px; padding: 16px 32px; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.od-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 5px 15px rgba(48,46,41,.2); }
.od-btn:disabled { background: #b9b3a8; cursor: not-allowed; }
.od-link { font: 600 14px var(--sans); color: var(--olive); background: none; border: 0; padding: 8px 0; cursor: pointer; }
.od-btn:focus-visible, .od-link:focus-visible, .sz-card:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }

/* step 1 · size */
.sz { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.sz-cards { display: grid; gap: 16px; }
.sz-card { display: grid; gap: 4px; text-align: left; padding: 24px; border-radius: 12px; background: #fffdf9; border: 2px solid var(--line); cursor: pointer; transition: border-color .25s, box-shadow .25s, transform .25s; }
.sz-card[aria-checked=true] { border-color: var(--olive); box-shadow: 0 10px 24px rgba(55,38,24,.12); }
.sz-card:hover { transform: translateY(-1px); }
.sz-name { font: 500 36px/1 var(--serif); color: var(--ink); }
.sz-dim { font: 600 16px var(--sans); color: var(--ink); } .sz-dim small { font-weight: 400; color: #6b665c; margin-left: 8px; font-size: 14px; }
.sz-framed { font-size: 14px; color: #5f5a50; }
.sz-price { margin-top: 8px; font: 600 14px var(--sans); color: var(--olive); }
.sz-note { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: #5f5a50; }
.sz-compare { margin: 0; text-align: center; }
.sz-svg { width: 100%; height: auto; display: block; border-radius: 12px; background: #f3eee4; }
.sz-paper-r { fill: #fffdf9; stroke: #8a8478; stroke-width: 1.5; stroke-dasharray: 6 4; }
.sz-paper-t, .sz-dim-wt, .sz-dim-ht { font: 600 13px var(--sans); fill: #5f5a50; paint-order: stroke; stroke: #fffdf9; stroke-width: 4px; stroke-linejoin: round; }
.sz-print-r { fill: #fffdf9; }
.sz-oak { fill: #c9955f; } .sz-mat { fill: #fffdf9; }
.sz-dims path { fill: none; stroke: var(--olive); stroke-width: 1.5; }
.sz-dim-wt, .sz-dim-ht { fill: var(--olive); }
/* size → real rooms where it fits best */
.sz-view { position: relative; }
.sz-places { position: absolute; inset: 0; overflow: hidden; border-radius: 12px; pointer-events: none; visibility: hidden; opacity: 0; background: #ece4d6; }
.sz-places img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 40%; }
.sz-compare figcaption { margin-top: 16px; display: flex; flex-direction: column; gap: 4px; min-height: 48px; }
.sz-cap-a { font: italic 400 22px/1.3 var(--serif); color: var(--ink); } .sz-cap-b { font-size: 14px; color: #5f5a50; }

/* step 2 · account choice */
.ac { max-width: 760px; margin: 0 auto 32px; }
.ac-q { margin: 0 0 16px; text-align: center; font: 600 15px var(--sans); color: var(--ink); }
.ac-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ac-opt { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 16px; border-radius: 12px; background: #fffdf9; border: 2px solid var(--line); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.ac-opt[aria-checked=true] { border-color: var(--olive); box-shadow: 0 5px 15px rgba(55,38,24,.10); }
.ac-opt b { font: 600 15px var(--sans); color: var(--ink); } .ac-opt span { font-size: 13px; color: #6b665c; }
.ac-opt:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
.ac-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.ac-col { padding: 16px 20px; border-radius: 12px; text-align: left; }
.ac-yes { background: #eef0e6; } .ac-no { background: #f3eee4; }
.ac-col h3 { margin: 0 0 8px; font: 600 14px var(--sans); color: var(--ink); }
.ac-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ac-col li { position: relative; padding-left: 24px; font-size: 14px; line-height: 1.5; color: #4f4b43; }
.ac-yes li::before { content: "✓"; position: absolute; left: 0; color: var(--olive); font-weight: 700; }
.ac-no li::before { content: "•"; position: absolute; left: 6px; color: #8a8478; font-weight: 700; }
.ac-google { margin-top: 16px; text-align: center; } .ac-google[hidden] { display: none; }
.ac-gbtn { display: inline-flex; align-items: center; gap: 12px; font: 600 15px var(--sans); color: var(--ink); background: #fffdf9; border: 1px solid #b9b3a8; border-radius: 999px; padding: 12px 24px; }
.ac-g { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid #b9b3a8; font: 700 13px var(--sans); }
.ac-google small { display: block; margin-top: 8px; font-size: 13px; color: #6b665c; }
.dt-pw[hidden] { display: none; }
.cf-acct { margin: -16px 0 32px; padding: 16px; border-radius: 12px; background: #eef0e6; font-size: 14px; line-height: 1.6; color: #4f4b43; }

/* step 2 · details */
.dt { max-width: 760px; margin: 0 auto; }
.dt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.dt-f { display: flex; flex-direction: column; gap: 8px; text-align: left; } .dt-wide { grid-column: 1 / -1; }
.dt-f span { font: 600 14px var(--sans); color: var(--ink); } .dt-f em { font-style: normal; font-weight: 400; color: #6b665c; }
.dt-f input, .dt-f select, .dt-f textarea { font: 400 16px var(--sans); color: var(--ink); background: #fffdf9; border: 1px solid #b9b3a8; border-radius: 8px; padding: 12px 14px; }
.dt-f input:focus, .dt-f select:focus, .dt-f textarea:focus { outline: 2px solid var(--olive); outline-offset: 1px; border-color: var(--olive); }
.dt-f small { font-size: 13px; color: #6b665c; }
.dt-f.bad input, .dt-f.bad select { border-color: #b04a3a; background: #fdf5f2; }
.dt-f small.dt-err { color: #b04a3a; font-weight: 600; }
.dt-ship { margin: 16px 0 0; min-height: 24px; font: 600 14px var(--sans); color: var(--olive); text-align: center; }
.up-drop.bad { border-color: #b04a3a; }

/* step 3 · delivery address + map */
.ad { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; max-width: 1080px; margin: 0 auto; }
.ad .dt { max-width: none; }
.ad-map-wrap { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.ad-map-head b { display: block; font: 600 15px var(--sans); color: var(--ink); } .ad-map-head span { font-size: 14px; color: #5f5a50; }
.ad-map { height: 380px; border-radius: 12px; border: 1px solid #b9b3a8; overflow: hidden; background: #ece6da; }
.ad-map:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }
.ad-map-tools { display: flex; flex-wrap: wrap; gap: 16px; }
.ad-pin { margin: 0; font-size: 14px; color: #5f5a50; } .ad-pin.bad { color: #b04a3a; font-weight: 600; }
.ad-marker span { position: absolute; left: 50%; top: 0; width: 26px; height: 26px; margin-left: -13px; border-radius: 50% 50% 50% 0; background: var(--olive); border: 3px solid #fffdf8; transform: rotate(-45deg); box-shadow: 0 4px 8px rgba(0,0,0,.3); }
.ad-marker span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fffdf8; }

/* contact note, delivery quote, courier terms */
.dt-note { padding: 16px; border-radius: 12px; background: #f3eee4; font-size: 14px; line-height: 1.6; color: #4f4b43; text-align: left; }
.dt-note b { color: var(--ink); }
.sh { margin-top: 24px; text-align: left; }
.sh-empty { margin: 0; padding: 16px; border-radius: 12px; border: 1px dashed #b9b3a8; font-size: 14px; color: #6b665c; text-align: center; }
.sh-opts { display: grid; gap: 8px; }
.sh-opt { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 16px; text-align: left; padding: 14px 16px; border-radius: 12px; background: #fffdf9; border: 2px solid var(--line); cursor: pointer; }
.sh-opt[aria-checked=true] { border-color: var(--olive); }
.sh-opt b { font: 600 15px var(--sans); color: var(--ink); } .sh-opt span { grid-row: 2; font-size: 13px; color: #6b665c; }
.sh-opt em { grid-row: 1 / span 2; align-self: center; font: 600 18px var(--sans); font-style: normal; color: var(--ink); }
.sh-meta { margin: 8px 0 0; font-size: 13px; color: #6b665c; }
.sh-terms { margin-top: 16px; padding: 16px; border-radius: 12px; background: #fbf3e8; border: 1px solid #e3cfae; }
.sh-terms[hidden] { display: none; } .sh-terms.bad { border-color: #b04a3a; background: #fdf5f2; }
.sh-terms p { margin: 0 0 12px; font-size: 14px; line-height: 1.6; color: #4f4b43; }
.sh-agree { display: flex; align-items: center; gap: 8px; font: 600 14px var(--sans); color: var(--ink); cursor: pointer; }
.sh-agree input { width: 18px; height: 18px; accent-color: var(--olive); }
.cf-claim { margin: -16px 0 32px; font-size: 14px; line-height: 1.6; color: #5f5a50; }

/* step 5 · confirmation */
.cf { max-width: 640px; margin: 0 auto; text-align: center; }
.cf-check svg { width: 72px; height: 72px; } .cf-check circle { fill: none; stroke: var(--olive); stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 151; animation: cfDraw .7s ease forwards; }
.cf-check path { fill: none; stroke: var(--olive); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: cfDraw .5s ease .55s forwards; }
.cf .od-h2 { margin: 16px 0 8px; } .cf-lead { margin: 0 0 32px; font-size: 16px; line-height: 1.6; color: #5f5a50; }
.cf-next { list-style: none; counter-reset: cf; margin: 0 0 32px; padding: 0; display: grid; gap: 12px; text-align: left; }
.cf-next li { counter-increment: cf; display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; padding: 16px; border-radius: 12px; background: #fffdf9; border: 1px solid var(--line); }
.cf-next li::before { content: counter(cf); grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--olive); color: #fffdf8; font: 600 14px var(--sans); }
.cf-next b { font: 500 20px var(--serif); color: var(--ink); } .cf-next span { font-size: 14px; color: #5f5a50; }
.cf-sum { margin: 0 0 32px; padding: 24px; border-radius: 12px; background: #fffdf9; border: 1px solid var(--line); display: grid; gap: 12px; text-align: left; }
.cf-sum div { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; } .cf-sum dt { color: #5f5a50; } .cf-sum dd { margin: 0; text-align: right; font-weight: 600; color: var(--ink); }
.cf .od-btn { display: inline-block; text-decoration: none; }
@keyframes cfDraw { to { stroke-dashoffset: 0; } }

/* step 3 · payment */
.pay { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 960px; margin: 0 auto; }
.pay-sum, .pay-box { padding: 32px; border-radius: 12px; background: #fffdf9; border: 1px solid var(--line); }
.pay h3 { margin: 0 0 16px; font: 500 24px var(--serif); color: var(--ink); }
.pay dl { margin: 0; display: grid; gap: 12px; } .pay dl div { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.pay dt { color: #5f5a50; } .pay dd { margin: 0; text-align: right; color: var(--ink); font-weight: 600; }
.pay-total { padding-top: 12px; border-top: 1px solid var(--line); }
.pay-who { padding-bottom: 20px; margin-bottom: 20px !important; border-bottom: 1px solid var(--line); }
.pay-who dt { white-space: nowrap; } .pay-who dd { max-width: 18em; font-weight: 500; line-height: 1.5; } .pay-who div:first-child dd { font-weight: 600; }
.pay-det { margin-bottom: -4px; } .pay-det dt { font-size: 13px; letter-spacing: .04em; color: #6b665c; }
.pay-sub { padding-left: 16px; } .pay-sub dt, .pay-sub dd { font-size: 14px; } .pay-sub dd { font-weight: 500; }
.pay-total dt, .pay-total dd { font-size: 17px; font-weight: 600; color: var(--ink); }
.pay-box p { margin: 0 0 16px; font-size: 15px; line-height: 1.6; color: #5f5a50; }
.pay-methods { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.pay-methods span { font: 600 13px var(--sans); color: var(--ink); background: #f3eee4; border-radius: 999px; padding: 8px 14px; }
.pay-box .od-btn { width: 100%; }
.pay-off { margin: 12px 0 0 !important; font-size: 13px !important; text-align: center; }

/* step 3 · upload */
.up { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.up-drop { display: flex; flex-direction: column; gap: 8px; padding: 32px; border: 2px dashed #b9b3a8; border-radius: 12px; background: #fffdf9; cursor: pointer; text-align: center; transition: border-color .2s, background .2s; }
.up-drop:hover, .up-drop.over { border-color: var(--olive); background: #f6f3ec; }
.up-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.up-drop b { font: 500 24px var(--serif); color: var(--ink); } .up-drop span { font-size: 14px; color: #5f5a50; line-height: 1.6; }
.up-thumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 0; padding: 0; }
.up-thumbs li { position: relative; width: 72px; height: 96px; border-radius: 6px; overflow: hidden; box-shadow: 0 4px 6px rgba(55,38,24,.15); animation: odIn .4s ease both; }
.up-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.up-thumbs button { position: absolute; right: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(48,46,41,.8); color: #fff; cursor: pointer; font-size: 14px; line-height: 1; }
.up-private { margin: 16px 0 0; font-size: 13px; color: #6b665c; }
.up-preview { margin: 0; text-align: center; }
.up-canvas { width: 100%; max-width: 520px; height: auto; display: block; margin: 0 auto; box-shadow: 0 15px 35px rgba(55,38,24,.24); }
.up-preview figcaption { margin: 16px auto 0; max-width: 32em; font-size: 14px; line-height: 1.6; color: #5f5a50; }

/* gallery */
.gal { margin-top: 96px; text-align: center; }
.gal h2 { margin: 0 0 32px; font: 500 clamp(32px, 4vw, 48px)/1.1 var(--serif); color: var(--ink); }
.gal-track { position: relative; display: grid; max-width: 960px; margin: 0 auto; }
.gal-slide { grid-area: 1 / 1; margin: 0; display: grid; grid-template-columns: minmax(0, 1.2fr) 64px minmax(0, .8fr); gap: 24px; align-items: center; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s .8s; }
.gal-slide.on { opacity: 1; visibility: visible; transition: opacity .8s ease; }
.gal-slide .g-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 8px solid #fffdf8; box-shadow: 0 10px 24px rgba(55,38,24,.18); transform: rotate(-2deg); }
.gal-slide .g-por { width: 100%; height: auto; box-shadow: 0 15px 35px rgba(55,38,24,.24); }
.gal-slide svg { width: 64px; } .gal-slide svg path { fill: none; stroke: var(--olive); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.gal-slide figcaption { grid-column: 1 / -1; margin-top: 16px; font: italic 400 22px var(--serif); color: var(--ink); }
.gal-filter { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 4px; margin: 0 auto 32px; border-radius: 12px; background: #ebe4d8; }
.gal-filter button { font: 600 14px var(--sans); color: #5f5a50; background: none; border: 0; border-radius: 8px; padding: 10px 16px; cursor: pointer; }
.gal-filter button[aria-pressed=true] { background: #fffdf9; color: var(--ink); box-shadow: 0 1px 3px rgba(55,38,24,.18); }
.g-left { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.g-tag { font: 600 12px var(--sans); letter-spacing: .6px; text-transform: uppercase; color: #302e29; background: #fffdf8; border-radius: 999px; padding: 6px 12px; box-shadow: 0 1px 3px rgba(55,38,24,.15); }
.g-cards { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 6px; }
.g-card { width: clamp(84px, 10vw, 136px); aspect-ratio: 3 / 4; object-fit: cover; object-position: center 25%; border: 6px solid #fffdf8; box-shadow: 0 10px 24px rgba(55,38,24,.18); transform: rotate(calc((var(--j) - 1.5) * 2deg)); }
.g-cards[data-n="4"] .g-card { width: clamp(72px, 8.5vw, 116px); }
.g-combo { display: flex; align-items: center; gap: 12px; width: 100%; } .g-combo .g-photo-sm { flex: 1 1 0; min-width: 0; } .g-combo .g-card { transform: rotate(3deg); }
.g-plus { font: 400 28px/1 var(--serif); color: var(--olive); }
.gal-slide.on .g-card { animation: odIn .6s ease both; animation-delay: calc(var(--j) * .1s); }
.gal-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.gal-dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: #d4cdbf; cursor: pointer; }
.gal-dots button[aria-selected=true] { background: var(--olive); }

@keyframes odIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .dt-grid { grid-template-columns: 1fr; } .ad { grid-template-columns: 1fr; } .ad-map { height: 320px; } .ac-opts, .ac-compare { grid-template-columns: 1fr; }
  .sz, .pay, .up { grid-template-columns: 1fr; gap: 32px; }
  .gal-slide { grid-template-columns: 1fr; } .gal-slide svg { justify-self: center; transform: rotate(90deg); }
}
@media (prefers-reduced-motion: reduce) { .od-panel, .up-thumbs li { animation: none; } .gal-slide { transition: none; } }
/* fields fill their column; six steps fit on one line on desktop */
.dt-f { min-width: 0; } .dt-f input, .dt-f select, .dt-f textarea { width: 100%; box-sizing: border-box; }
.od-steps { gap: 6px; } .od-steps li { padding: 6px 12px 6px 6px; font-size: 13px; }

/* QR Ph payment */
.qr { margin: 16px auto; max-width: 260px; text-align: center; }
.qr img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.qr figcaption { margin-top: 8px; font-size: 13px; line-height: 1.5; color: #5f5a50; }
.qr-amt { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: #eef0e6; display: grid; gap: 8px; }
.qr-amt div { display: flex; justify-content: space-between; gap: 16px; } .qr-amt dt { font-size: 14px; color: #4f4b43; }
.qr-amt dd { margin: 0; font: 700 18px var(--sans); color: var(--ink); } .qr-amt .qr-id { font-size: 15px; letter-spacing: .5px; }
.qr-steps { margin: 0 0 16px; padding-left: 20px; font-size: 14px; line-height: 1.6; color: #4f4b43; }
.qr-ref { margin-bottom: 16px; }

.sz-price small, .pay dt small { font-weight: 400; color: #6b665c; font-size: 13px; }

/* automatic QR Ph */
.ap [hidden], .qr-manual[hidden] { display: none !important; }
.ap .qr img { aspect-ratio: 1; object-fit: contain; background: #fff; padding: 8px; box-sizing: border-box; }
.ap-wait { text-align: center; color: #5f5a50; }
.ap-watch { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 8px; font: 600 14px var(--sans); color: var(--olive); }
.ap-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--olive); animation: apPulse 1.2s ease-in-out infinite; }
.ap-test { display: block; text-align: center; }
.ap-paid { text-align: center; padding: 16px 0; } .ap-paid b { display: block; margin-top: 8px; font: 500 24px var(--serif); color: var(--ink); } .ap-paid p { margin: 4px 0 0; }
@keyframes apPulse { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }

/* account pop-up after confirmation */
.sg { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 16px; background: rgba(48,46,41,.45); animation: odIn .3s ease both; }
.sg[hidden] { display: none; } .sg [hidden] { display: none !important; }
.sg-card { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 32px; border-radius: 16px; background: #fffdf9; box-shadow: 0 15px 35px rgba(0,0,0,.25); text-align: center; }
.sg-card h2 { margin: 0 0 8px; font: 500 28px/1.2 var(--serif); color: var(--ink); }
.sg-card > p { margin: 0 0 16px; font-size: 15px; line-height: 1.6; color: #5f5a50; }
.sg-x { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f3eee4; font-size: 20px; cursor: pointer; }
.sg .ac-compare { margin: 0 0 24px; }
.sg-google { margin: 0 auto; } .sg-soon { display: block; margin-top: 8px; font-size: 13px; color: #6b665c; }
.sg-links { display: flex; justify-content: center; gap: 24px; margin-top: 16px; flex-wrap: wrap; }
.sg-links .od-link:disabled { color: #9a958a; cursor: not-allowed; }
@media (max-width: 860px) { .sg .ac-compare { grid-template-columns: 1fr; } }

/* 3-stage progress with a bar per stage */
.od-steps.st3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 760px; margin: 32px auto 0; }
.od-steps.st3 li { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 0; border-radius: 0; background: none; color: #6b665c; text-align: left; }
.st3 .st-top { display: flex; align-items: center; gap: 8px; font: 600 14px var(--sans); }
.st3 .st-top b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #e6dfd2; color: #6b665c; font-size: 12px; transition: background .3s, color .3s; }
.st3 li.on .st-top { color: var(--ink); } .st3 li.on .st-top b { background: var(--ink); color: #fffdf8; }
.st3 li.done .st-top b { background: var(--olive); color: transparent; position: relative; }
.st3 li.done .st-top b::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fffdf8; font-size: 13px; }
.st3 .st-bar { height: 6px; border-radius: 999px; background: #e6dfd2; overflow: hidden; }
.st3 .st-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--olive); transition: width .6s cubic-bezier(.4,0,.2,1); }
.st3 .st-sub { font-size: 12px; color: #8a8478; } .st3 .st-sub em { font-style: normal; }
.st3 .st-sub em.now { color: var(--ink); font-weight: 600; } .st3 .st-sub em.past { color: var(--olive); }
@media (max-width: 560px) { .od-steps.st3 { gap: 8px; } .st3 .st-top span { font-size: 12px; } .st3 .st-sub { display: none; } }
@media (prefers-reduced-motion: reduce) { .st3 .st-bar i { transition: none; } }

/* store location on the confirmation (Metro Manila) */
.cf-store { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: center; margin: -16px 0 32px; padding: 12px; border-radius: 12px; background: #fffdf9; border: 1px solid var(--line); text-align: left; }
.cf-store[hidden] { display: none; }
.cf-map { height: 200px; border-radius: 8px; overflow: hidden; background: #ece6da; }
.cf-store-info { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #5f5a50; } .cf-store-info b { font: 600 16px var(--sans); color: var(--ink); }
@media (max-width: 560px) { .cf-store { grid-template-columns: 1fr; } }

.sg-email-signup { display: block; width: fit-content; margin: 12px auto 0; text-decoration: none; }

/* address suggestions */
.ac-wrap { position: relative; } .ac-wrap label span { font: 600 14px var(--sans); color: var(--ink); }
.ad-sugg { position: absolute; left: 0; right: 0; top: 74px; z-index: 50; margin: 0; padding: 4px; list-style: none; background: #fffdf9; border: 1px solid #b9b3a8; border-radius: 10px; box-shadow: 0 10px 24px rgba(55,38,24,.18); max-height: 320px; overflow: auto; }
.ad-sugg[hidden] { display: none; }
.ad-sugg li[data-i] { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 8px; cursor: pointer; text-align: left; }
.ad-sugg li[data-i]:hover, .ad-sugg li[aria-selected=true] { background: #eef0e6; }
.ad-sugg b { font: 600 14px var(--sans); color: var(--ink); } .ad-sugg span { font-size: 13px; color: #6b665c; }
.ad-sugg-foot { padding: 8px 12px; font-size: 12px; color: #8a8478; border-top: 1px solid var(--line); margin-top: 4px; }
.dt-f input.filled { background: #eef0e6; transition: background .8s; }

/* contact note as quick bullets */
.dt-note .dn-title { display: block; margin-bottom: 10px; font-size: 14px; color: var(--ink); }
.dn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.dn-grid b { display: block; margin-bottom: 4px; font: 600 13px var(--sans); color: var(--olive); text-transform: uppercase; letter-spacing: .5px; }
.dn-grid ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.6; color: #4f4b43; }
.dn-store { display: block; margin-top: 10px; font-size: 12px; color: #6b665c; }
@media (max-width: 560px) { .dn-grid { grid-template-columns: 1fr; } }

/* upload: who's in it */
.up-note { margin-top: 16px; } .up-note textarea { width: 100%; box-sizing: border-box; font: 400 15px/1.5 var(--sans); padding: 10px 12px; border-radius: 8px; border: 1px solid #b9b3a8; background: #fffdf9; resize: vertical; }
.up-err { margin: 8px 0 0; min-height: 20px; font: 600 14px var(--sans); color: #b04a3a; }

/* account step */
.ac-lead { max-width: 34em; margin: -8px auto 32px; text-align: center; font-size: 16px; line-height: 1.6; color: #5f5a50; }
.ac-card [hidden] { display: none !important; }
.ac-forgot { justify-self: center; }
.ac-verify, .ac-done { text-align: center; display: grid; gap: 12px; justify-items: center; }
.ac-verify h3 { margin: 0; font: 500 24px var(--serif); color: var(--ink); } .ac-verify p { margin: 0; font-size: 15px; line-height: 1.6; color: #5f5a50; }
.ac-mail svg { width: 48px; height: 48px; fill: none; stroke: var(--olive); stroke-width: 2; stroke-linejoin: round; }
.ac-dev { padding: 8px 12px; border-radius: 8px; background: #f3eee4; font-size: 13px !important; }
.ac-wait { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink) !important; }
.ac-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.ac-done b { font: 600 18px var(--sans); color: var(--ink); } .ac-done p { margin: 0; color: #5f5a50; }

/* order terms, agreed before the QR appears */
.tm { margin: 0 0 24px; padding: 16px; border-radius: 12px; background: #f6f1e7; border: 1px solid var(--line); text-align: left; }
.tm.bad { border-color: #b04a3a; }
.tm h4 { margin: 0 0 8px; font: 600 15px var(--sans); color: var(--ink); }
.tm-list { margin: 0 0 12px; padding: 0 8px 0 0; list-style: none; display: grid; gap: 8px; max-height: 240px; overflow: auto; }
.tm-list li { font-size: 13px; line-height: 1.5; color: #5f5a50; } .tm-list b { color: var(--ink); }
.tm-agree { display: flex; gap: 12px; align-items: flex-start; font: 600 14px/1.5 var(--sans); color: var(--ink); cursor: pointer; }
.tm-agree input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--olive); }

/* map tools as small buttons; the auto-placed pin message stands out */
.ad-map-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.ad-chip { font: 600 13px var(--sans); color: var(--ink); background: #fffdf9; border: 1px solid #b9b3a8; border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.ad-chip:hover { border-color: var(--olive); color: var(--olive); }
.ad-chip:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }
.ad-pin.placed { padding: 10px 14px; border-radius: 10px; background: #eef0e6; border: 1px solid #c9cfb8; color: var(--ink); font-weight: 600; }
.ad-pin.placed { display: flex; align-items: flex-start; gap: 8px; }
.ad-pin.placed::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5c-3.9 0-7 3-7 6.9 0 5.1 7 12.1 7 12.1s7-7 7-12.1c0-3.9-3.1-6.9-7-6.9z' fill='%235f6b46'/%3E%3Ccircle cx='12' cy='9.4' r='2.6' fill='%23fffdf9'/%3E%3C/svg%3E") center / contain no-repeat; }   /* olive map pin in the brand colour */

/* optional marketing permission (₱200 off) */
.tm-promo { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #d8cfbf; font-weight: 500; }
.tm-promo em { display: block; font-style: normal; font-weight: 600; color: var(--olive); }
.pay-disc dd { color: var(--olive); }

/* payment: summary first, then the "Before you pay" dialog */
.pay.pre { grid-template-columns: minmax(0, 560px); justify-content: center; }
.pay-go { width: 100%; margin-top: 24px; }
.pay-terms-link { display: block; margin: 16px auto 0; }
body.tmd-open { overflow: hidden; }
.tmd { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(40, 32, 24, .55); }
.tmd[hidden] { display: none; }
.tmd-card { width: 100%; max-width: 640px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; border-radius: 16px; background: #fffdf9; box-shadow: 0 15px 35px rgba(0,0,0,.25); overflow: hidden; }
.tmd-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.tmd-head h2 { margin: 0; font: 500 26px var(--serif); color: var(--ink); }
.tmd-x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f3eee4; font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink); }
.tmd-body { padding: 16px 24px; overflow: auto; }
.tmd-body .tm { margin: 0; padding: 0; border: 0; background: none; }
.tmd-body .tm-list { max-height: none; overflow: visible; margin-bottom: 16px; }
.tmd-body .tm-list li { font-size: 14px; }
.tmd-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 24px; border-top: 1px solid var(--line); background: #f9f5ee; }
.tmd-total { font: 400 15px var(--sans); color: #5f5a50; } .tmd-total b { font: 600 20px var(--sans); color: var(--ink); margin-left: 8px; }
.tmd-go:disabled { opacity: .4; cursor: not-allowed; }
@media (max-width: 560px) { .tmd { padding: 0; } .tmd-card { max-height: 100vh; height: 100%; border-radius: 0; } }
.pay [hidden], .tmd [hidden] { display: none !important; }

/* terms read as full justified blocks, never hyphenated */
.tm-list li, .tm-agree span { text-align: justify; hyphens: none; -webkit-hyphens: none; overflow-wrap: normal; word-break: normal; }

/* how many people (drives the sketch preview) */
.up-count { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.up-count > span { font: 600 14px var(--sans); color: var(--ink); }
.up-step { display: flex; align-items: center; gap: 10px; }
.up-step button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #b9b3a8; background: #fffdf9; font: 600 18px/1 var(--sans); color: var(--ink); cursor: pointer; }
.up-step button:hover { border-color: var(--olive); color: var(--olive); }
.up-step b { min-width: 24px; text-align: center; font: 600 18px var(--sans); color: var(--ink); }
.up-step em { font-style: normal; font-size: 14px; color: #5f5a50; }

/* photos and the people found in them */
.up-photos { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 16px; }
.ph { display: grid; gap: 12px; padding: 12px; border-radius: 12px; background: #fffdf9; border: 1px solid var(--line); animation: odIn .4s ease both; }
.ph-img { position: relative; border-radius: 8px; overflow: hidden; background: #efe8dc; }
.ph-img > img { display: block; width: 100%; max-height: 260px; object-fit: contain; }
.ph-pin { position: absolute; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 50%; background: var(--olive); color: #fffdf9; font: 700 13px/26px var(--sans); text-align: center; box-shadow: 0 0 0 3px rgba(255,253,249,.85); }
.ph-x { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(48,46,41,.8); color: #fff; cursor: pointer; font-size: 16px; line-height: 1; }
.ph-num { position: absolute; left: 8px; top: 8px; padding: 4px 10px; border-radius: 999px; background: rgba(255,253,249,.9); font: 600 12px var(--sans); color: var(--ink); }
.ph-state { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 8px; font-size: 14px; line-height: 1.5; color: #5f5a50; } .ph-state b { color: var(--ink); }
.pp { display: grid; grid-template-columns: 44px 18px minmax(0, 1fr) 72px 28px; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.pp-face { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #efe8dc; display: grid; place-items: center; color: #8a8478; font-weight: 700; }
.pp-n { font: 700 13px var(--sans); color: var(--olive); text-align: center; }
.pp input { width: 100%; box-sizing: border-box; padding: 9px 10px; border-radius: 8px; border: 1px solid #b9b3a8; background: #fffdf9; font: 400 15px var(--sans); color: var(--ink); }
.pp input:focus { outline: 2px solid var(--olive); outline-offset: 1px; }
.pp-del { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #d8cfbf; background: none; color: #8a8478; cursor: pointer; }
.pp-match { grid-column: 1 / -1; padding: 8px 12px; border-radius: 8px; background: #fbf3e2; font-size: 13px; line-height: 1.5; color: #5f5a50; }
.pp-match button { margin: 6px 8px 0 0; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ink); background: #fffdf9; font: 600 13px var(--sans); color: var(--ink); cursor: pointer; }
.pp-match.ok { background: #eef0e6; color: var(--olive); font-weight: 600; } .pp-match.warn { background: #f7e6df; color: #8a3d2e; }
.ph-add { justify-self: start; margin-top: 4px; }

/* faces found on each photo: a numbered marker, outlined while that person's row is in focus */
.ph-state { display: block; } .ph-state .ap-dot { display: inline-block; margin-right: 8px; vertical-align: middle; }
.ph-box { position: absolute; border-radius: 50%; border: 2px solid transparent; transition: border-color .2s, box-shadow .2s; pointer-events: none; }
.ph-box i { position: absolute; left: 50%; top: -12px; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--olive); color: #fffdf9; font: 700 12px/24px var(--sans); font-style: normal; text-align: center; box-shadow: 0 0 0 2px rgba(255,253,249,.9); }
.ph-box.hl { border: 3px solid #fffdf9; box-shadow: 0 0 0 3px var(--olive), 0 0 18px rgba(255,253,249,.9); }
.ph-img > img { transition: filter .2s; } .ph-img.focus > img { filter: brightness(.6) saturate(.8); }
.ph-img.focus .ph-box:not(.hl) i { opacity: .45; }
.ph-box.out i { background: #8a8478; opacity: .7; }
.pp { grid-template-columns: 44px 18px minmax(0, 1fr) 64px auto; }
.pp-out { padding: 7px 10px; border-radius: 999px; border: 1px solid #d8cfbf; background: none; font: 600 12px var(--sans); color: #6b665c; cursor: pointer; white-space: nowrap; }
.pp-out:hover { border-color: #b04a3a; color: #b04a3a; }
.pp.out { opacity: .65; } .pp.out .pp-face { filter: grayscale(1); }
.pp-outtext { grid-column: 3 / 5; font-size: 13px; color: #8a8478; }

.dt-max { margin: 0 0 12px; padding: 12px 16px; border-radius: 12px; background: #eef0e6; font-size: 14px; line-height: 1.6; color: #5f5a50; } .dt-max b { color: var(--ink); }

/* payment method: QR Ph or card (PayMongo's hosted card page) */
.pm-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 24px; }
.pm-tab { display: grid; gap: 4px; padding: 12px 14px; text-align: left; border-radius: 10px; border: 1px solid #d8cfbf; background: #fffdf9; cursor: pointer; font: 600 15px var(--sans); color: var(--ink); }
.pm-tab small { font: 400 12px var(--sans); color: #6b665c; }
.pm-tab:hover { border-color: var(--olive); }
.pm-tab[aria-selected=true] { border: 2px solid var(--olive); padding: 11px 13px; background: #f4f3ec; }
.pay-box.is-paid .pm-tabs { display: none; }
.pay-box:not(.by-card) .pm-card { display: none; }
.pay-box.by-card .ap, .pay-box.by-card .qr-manual { display: none !important; }
.pm-card [hidden] { display: none !important; }
.pm-logos { display: flex; gap: 8px; margin: 0 0 16px; } .pm-logos svg { width: 56px; height: 35px; }
.pm-card .qr-amt { margin-bottom: 24px; }
.pm-note { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0 !important; font-size: 13px !important; line-height: 1.5 !important; color: #6b665c !important; }
.pm-note svg { flex: none; width: 16px; height: 16px; margin-top: 2px; fill: none; stroke: var(--olive); stroke-width: 1.4; }
.pm-err:empty { display: none; } .pm-err { margin-top: 12px !important; }

/* payments not switched on yet: "orders open soon" */
.od-soon { max-width: 960px; margin: 0 auto 16px; padding: 12px 16px; border-radius: 12px; background: #f4f3ec; border: 1px solid #d8d2bf; font-size: 15px; line-height: 1.5; color: #5f5a50; text-align: center; }
.od-soon b { color: var(--ink); }
.pay-closed h3 { margin: 0 0 12px; } .pay-closed p { margin: 0 0 12px !important; }
.pay-closed-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 16px !important; } .pay-closed-links .od-btn { width: auto; }

.od-soon.od-test { background: #fbf3e2; border-color: #e7c98f; }
