/* Styles of the example shop. The colors of the shop (primary_color, secondary_color) arrive from the API. */
:root { --primary: #2a5e5c; --secondary: #3c8480; --text: #1b1b1b; --muted: #666; --line: #e3e3e3; --error: #b00020; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, sans-serif; color: var(--text); background: #fafafa; }
a { color: var(--primary); }
.banner { padding: 8px 16px; background: #fff7d6; border-bottom: 1px solid #ecd98a; font-size: 14px; text-align: center; }
.shop-header { padding: 16px; background: var(--primary); }
.shop-header a { color: #fff; font-size: 1.4rem; font-weight: 700; text-decoration: none; }
main { max-width: 880px; margin: 0 auto; padding: 24px 16px 64px; }
h2 { margin: 32px 0 8px; }
h3 { margin: 0 0 8px; }
.muted { color: var(--muted); }
.error { color: var(--error); }
.note { min-height: 1.5em; margin: 12px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.card img, .placeholder { display: block; width: 100%; aspect-ratio: 4 / 3; margin-bottom: 12px; border-radius: 6px; object-fit: cover; background: linear-gradient(135deg, var(--secondary), var(--primary)); opacity: .85; }
.price { font-weight: 600; }
.gallery { display: flex; gap: 8px; overflow-x: auto; }
.gallery img { max-height: 280px; border-radius: 6px; }
.properties { padding-left: 20px; }

.button, button { display: inline-block; padding: 10px 18px; border: 0; border-radius: 6px; background: var(--primary); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.button:hover, button:hover:not(:disabled) { background: var(--secondary); }
button:disabled { opacity: .5; cursor: not-allowed; }
button:focus-visible, .button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #f5a623; outline-offset: 2px; }

form { display: grid; gap: 4px; max-width: 520px; margin-top: 32px; }
label, .label { margin-top: 12px; font-weight: 600; }
input, select, textarea { width: 100%; padding: 9px 10px; border: 1px solid #bbb; border-radius: 6px; background: #fff; font: inherit; }
input[aria-invalid="true"] { border-color: var(--error); }
input[type="checkbox"], input[type="radio"] { width: auto; }
.field { display: grid; gap: 4px; }
.field-error { min-height: 0; color: var(--error); font-size: 14px; }
.terms { display: flex; gap: 8px; align-items: center; font-weight: 400; }
fieldset { margin: 0; padding: 0; border: 0; }
.method { display: flex; gap: 10px; align-items: center; margin: 4px 0; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-weight: 400; }

.slots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.slot { padding: 8px 14px; border: 1px solid var(--primary); background: #fff; color: var(--primary); }
.slot.selected { background: var(--primary); color: #fff; }
.slot:hover:not(:disabled) { background: var(--secondary); color: #fff; }

.price-box { max-width: 520px; margin: 16px 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.price-box:empty { display: none; }
.price-box p { margin: 6px 0; }
.row { display: flex; justify-content: space-between; gap: 16px; }
.total { padding-top: 8px; border-top: 1px solid var(--line); font-weight: 700; }

.hours { border-collapse: collapse; }
.hours th, .hours td { padding: 4px 24px 4px 0; text-align: left; font-weight: 400; }
.hours th { font-weight: 600; }

dialog { max-width: 640px; border: 1px solid var(--line); border-radius: 8px; }
