/* Enchanted Quote Builder – front end */
.ebsqb {
	--ebsqb-accent: #b08d57;
	--ebsqb-accent-text: #ffffff;
	--ebsqb-bg: #ffffff;
	--ebsqb-soft: #f7f4ef;
	--ebsqb-border: #e6e0d6;
	--ebsqb-text: #2b2a28;
	--ebsqb-muted: #7c766e;
	--ebsqb-radius: 16px;
	--ebsqb-shadow: 0 10px 30px rgba(40, 30, 10, 0.08);
	--ebsqb-cols: 3;
	position: relative;
	color: var(--ebsqb-text);
	font-family: inherit;
	line-height: 1.5;
	box-sizing: border-box;
}
.ebsqb *, .ebsqb *::before, .ebsqb *::after { box-sizing: inherit; }
.ebsqb [hidden], .ebsqb[hidden] { display: none !important; }
.ebsqb h3, .ebsqb h4, .ebsqb p { margin: 0; }
.ebsqb button { font-family: inherit; cursor: pointer; }
.ebsqb img { display: block; max-width: 100%; }

.ebsqb .ebsqb__intro { font-size: 1.05rem; color: var(--ebsqb-muted); max-width: 720px; margin: 0 auto 1.5rem; text-align: center; }
.ebsqb .ebsqb__intro--left { margin-left: 0; text-align: left; }
.ebsqb .ebsqb__intro--right { margin-right: 0; text-align: right; }

/* Event step */
.ebsqb__gate { background: var(--ebsqb-soft); border-radius: var(--ebsqb-radius); padding: 2.25rem 1.5rem; margin-bottom: 1.5rem; }
.ebsqb__gate-inner { max-width: 620px; margin: 0 auto; }
.ebsqb__gate-step { display: inline-block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ebsqb-accent); margin-bottom: 0.5rem; }
.ebsqb__gate-title { font-size: 1.6rem; font-weight: 600; margin-bottom: 0.35rem; }
.ebsqb__gate-sub { color: var(--ebsqb-muted); margin-bottom: 1.25rem; }
.ebsqb__gate .ebsqb__field input, .ebsqb__gate .ebsqb__field select { background: var(--ebsqb-bg); }
.ebsqb__field-label { font-size: 0.82rem; font-weight: 600; }
.ebsqb__field-label span, .ebsqb__field label span { color: var(--ebsqb-accent); }
.ebsqb__choice { display: flex; gap: 0.5rem; }
.ebsqb__choice label { flex: 1; cursor: pointer; position: relative; }
.ebsqb__choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ebsqb__choice span { display: block; text-align: center; padding: 0.65rem 0.8rem; border: 1.5px solid var(--ebsqb-border); border-radius: 10px; background: var(--ebsqb-bg); font-weight: 600; font-size: 0.92rem; transition: all 0.15s; }
.ebsqb__choice input:checked + span { border-color: var(--ebsqb-accent); background: var(--ebsqb-accent); color: var(--ebsqb-accent-text); }
.ebsqb__choice input:focus-visible + span { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ebsqb-accent) 25%, transparent); }
.ebsqb__gate-btn { margin-top: 1.25rem; padding: 0.9rem 1.6rem; font-size: 1rem; }
.ebsqb__gate .ebsqb__form-error { margin-top: 1rem; }
.ebsqb__gate--inline { padding: 1.25rem 1.5rem; }
.ebsqb__gate--inline .ebsqb__gate-step, .ebsqb__gate--inline .ebsqb__gate-title, .ebsqb__gate--inline .ebsqb__gate-sub, .ebsqb__gate--inline .ebsqb__gate-btn { display: none; }
.ebsqb__icon { display: inline-flex; width: 1.2em; height: 1.2em; flex: 0 0 auto; vertical-align: -0.2em; color: var(--ebsqb-accent); }
.ebsqb__icon svg { width: 100%; height: 100%; }
.ebsqb__label-icon { display: inline-flex; align-items: center; gap: 0.45rem; }
.ebsqb__label-icon .ebsqb__icon { width: 1.35em; height: 1.35em; }
.ebsqb__eventbar { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem 1rem; background: var(--ebsqb-soft); border: 1px solid var(--ebsqb-border); border-radius: 14px; padding: 0.9rem 1.1rem; margin-bottom: 1.25rem; }
.ebsqb__eventbar-label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ebsqb-muted); flex: 0 0 auto; }
.ebsqb__eventbar-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; flex: 1 1 auto; }
.ebsqb__chip { display: inline-flex; align-items: center; gap: 0.45rem; background: var(--ebsqb-bg); border: 1px solid var(--ebsqb-border); border-radius: 999px; padding: 0.5rem 0.95rem 0.5rem 0.75rem; font-size: 1rem; font-weight: 600; color: var(--ebsqb-text); font-family: inherit; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; margin: 0; }
button.ebsqb__chip:hover, button.ebsqb__chip:focus-visible { border-color: var(--ebsqb-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ebsqb-accent) 18%, transparent); outline: none; }
.ebsqb__chip-pen { display: inline-flex; width: 0.9em; height: 0.9em; color: var(--ebsqb-muted); margin-left: 0.1rem; opacity: 0.7; }
.ebsqb__chip-pen svg { width: 100%; height: 100%; }
button.ebsqb__chip:hover .ebsqb__chip-pen { color: var(--ebsqb-accent); opacity: 1; }
.ebsqb__chip--edit { cursor: default; border-color: var(--ebsqb-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ebsqb-accent) 18%, transparent); padding-right: 0.5rem; gap: 0.4rem; }
.ebsqb__chip--edit input { width: 4.6em; padding: 0.3rem 0.5rem; border: 1.5px solid var(--ebsqb-border); border-radius: 8px; font: inherit; font-weight: 600; text-align: center; background: var(--ebsqb-bg); color: inherit; }
.ebsqb__chip--edit input:focus { outline: none; border-color: var(--ebsqb-accent); }
.ebsqb__chip--edit input.is-invalid { border-color: #c0392b; }
.ebsqb__chip--edit input::-webkit-outer-spin-button, .ebsqb__chip--edit input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ebsqb__chip--edit input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.ebsqb__chip-unit { font-weight: 500; color: var(--ebsqb-muted); font-size: 0.9rem; }
.ebsqb__chip-toggle { display: inline-flex; border: 1.5px solid var(--ebsqb-border); border-radius: 8px; overflow: hidden; }
.ebsqb__chip-toggle button { border: 0; background: transparent; font: inherit; font-weight: 600; font-size: 0.85rem; padding: 0.3rem 0.65rem; color: var(--ebsqb-muted); cursor: pointer; }
.ebsqb__chip-toggle button.is-on { background: var(--ebsqb-accent); color: var(--ebsqb-accent-text); }
.ebsqb__chip-apply, .ebsqb__chip-cancel { width: 30px; height: 30px; border-radius: 50%; border: 0; font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.ebsqb__chip-apply { background: var(--ebsqb-accent); color: var(--ebsqb-accent-text); }
.ebsqb__chip-apply:hover { filter: brightness(1.08); }
.ebsqb__chip-cancel { background: var(--ebsqb-soft); color: var(--ebsqb-muted); }
.ebsqb__chip-cancel:hover { color: var(--ebsqb-text); }
.ebsqb__chip .ebsqb__icon { width: 1.35em; height: 1.35em; }
.ebsqb__chip--muted { color: var(--ebsqb-muted); font-weight: 500; }
.ebsqb__chip--muted .ebsqb__icon { color: var(--ebsqb-muted); }
.ebsqb__eventbar-edit { margin-left: auto; padding: 0.55rem 1rem; font-size: 0.9rem; gap: 0.45rem; }
.ebsqb__eventbar-hint { flex: 1 1 100%; font-size: 0.78rem; color: var(--ebsqb-muted); margin-top: -0.25rem; }
.ebsqb__eventbar-edit .ebsqb__icon { color: currentColor; width: 1.1em; height: 1.1em; }
@media (max-width: 600px) { .ebsqb__eventbar-label { display: none; } .ebsqb__eventbar-edit { margin-left: 0; width: 100%; } }
.ebsqb__field select { width: 100%; padding: 0.65rem 0.8rem; border: 1.5px solid var(--ebsqb-border); border-radius: 10px; font: inherit; background: var(--ebsqb-bg); color: inherit; }
.ebsqb__field select:focus { outline: none; border-color: var(--ebsqb-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ebsqb-accent) 20%, transparent); }
.ebsqb__field select.is-invalid { border-color: #c0392b; }

/* Category nav */
.ebsqb { --ebsqb-sticky-top: 0.75rem; }
.ebsqb__nav { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.6rem 0.75rem; margin-bottom: 1.25rem; scrollbar-width: none; position: sticky; top: var(--ebsqb-sticky-top); z-index: 5; border-radius: 999px; border: 1px solid transparent; background: color-mix(in srgb, var(--ebsqb-bg) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: box-shadow 0.2s, border-color 0.2s, background 0.2s; }
.ebsqb__nav.is-stuck { border-color: var(--ebsqb-border); box-shadow: 0 8px 24px rgba(40, 30, 10, 0.1); }
.ebsqb__nav::-webkit-scrollbar { display: none; }
.ebsqb__nav-link { flex: 0 0 auto; padding: 0.45rem 1rem; border-radius: 999px; border: 1px solid var(--ebsqb-border); text-decoration: none; color: var(--ebsqb-text); font-size: 0.9rem; background: var(--ebsqb-bg); transition: all 0.15s; }
.ebsqb__nav-link:hover, .ebsqb__nav-link.is-active { border-color: var(--ebsqb-accent); color: var(--ebsqb-accent); }

/* Layout: .ebsqb--wide / .ebsqb--narrow are set by JS from the builder's own width,
   so it behaves the same inside a narrow theme column or a full-width Elementor section. */
.ebsqb__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
.ebsqb--wide .ebsqb__layout { grid-template-columns: minmax(0, 1fr) 320px; }
.ebsqb--wide .ebsqb__summary { position: sticky; top: calc(var(--ebsqb-sticky-top) + var(--ebsqb-nav-h, 0px) + 1rem); }

/* Sections */
.ebsqb__section { margin-bottom: 2.5rem; scroll-margin-top: calc(var(--ebsqb-sticky-top) + 72px); }
.ebsqb__section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--ebsqb-border); }
.ebsqb__section-title { font-size: 1.35rem; font-weight: 600; }
.ebsqb__section-desc { color: var(--ebsqb-muted); font-size: 0.92rem; margin-top: 0.15rem; }
.ebsqb__section-mode { flex: 0 0 auto; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ebsqb-accent); white-space: nowrap; }
.ebsqb__empty-catalog, .ebsqb__loading { color: var(--ebsqb-muted); padding: 2rem 0; }

/* Grid + cards: tiles wrap to fit whatever width is available. */
.ebsqb { --ebsqb-tile-min: 210px; }
.ebsqb[data-columns="2"] { --ebsqb-tile-min: 280px; }
.ebsqb[data-columns="4"] { --ebsqb-tile-min: 170px; }
.ebsqb__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(var(--ebsqb-tile-min), 100%), 1fr)); gap: 1.1rem; }
.ebsqb--narrow .ebsqb__grid { grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); }
.ebsqb--phone .ebsqb__grid { grid-template-columns: minmax(0, 1fr); }

.ebsqb-card { background: var(--ebsqb-bg); border: 1.5px solid var(--ebsqb-border); border-radius: var(--ebsqb-radius); overflow: hidden; transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s; display: flex; flex-direction: column; }
.ebsqb-card:hover { transform: translateY(-3px); box-shadow: var(--ebsqb-shadow); }
.ebsqb-card.is-selected { border-color: var(--ebsqb-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ebsqb-accent) 22%, transparent), var(--ebsqb-shadow); }
.ebsqb-card__media { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--ebsqb-soft); aspect-ratio: 4 / 3; overflow: hidden; }
.ebsqb-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.ebsqb-card:hover .ebsqb-card__media img { transform: scale(1.04); }
.ebsqb-card__placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 3rem; font-weight: 300; color: var(--ebsqb-accent); background: linear-gradient(135deg, var(--ebsqb-soft), #ece5d9); }
.ebsqb-card__badge { position: absolute; top: 0.75rem; left: 0.75rem; background: rgba(255,255,255,0.92); color: var(--ebsqb-accent); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.3rem 0.6rem; border-radius: 999px; font-weight: 600; }
.ebsqb-card__check { position: absolute; top: 0.75rem; right: 0.75rem; width: 30px; height: 30px; border-radius: 50%; background: var(--ebsqb-accent); color: var(--ebsqb-accent-text); display: flex; align-items: center; justify-content: center; font-size: 0.95rem; transform: scale(0); transition: transform 0.2s cubic-bezier(.34,1.56,.64,1); }
.ebsqb-card.is-selected .ebsqb-card__check { transform: scale(1); }
.ebsqb-card__body { padding: 0.9rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.ebsqb-card__title { font-size: 1.02rem; font-weight: 600; line-height: 1.3; }
.ebsqb-card__desc { font-size: 0.86rem; color: var(--ebsqb-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ebsqb-card__price { font-size: 1.05rem; font-weight: 600; color: var(--ebsqb-accent); margin-top: 0.2rem; }
.ebsqb-card__price small { font-size: 0.75rem; font-weight: 400; color: var(--ebsqb-muted); }
.ebsqb-card__note { font-size: 0.78rem; color: var(--ebsqb-muted); }
.ebsqb-card__actions { display: flex; gap: 0.5rem; align-items: center; margin-top: auto; padding-top: 0.6rem; }

/* Buttons */
.ebsqb__btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.7rem 1.4rem; border-radius: 999px; border: 1.5px solid var(--ebsqb-accent); background: transparent; color: var(--ebsqb-accent); font-size: 0.92rem; font-weight: 600; text-decoration: none; transition: all 0.15s; line-height: 1.2; }
.ebsqb__btn:hover { background: var(--ebsqb-accent); color: var(--ebsqb-accent-text); }
.ebsqb__btn--primary { background: var(--ebsqb-accent); color: var(--ebsqb-accent-text); }
.ebsqb__btn--primary:hover { filter: brightness(1.08); }
.ebsqb__btn--ghost { border-color: var(--ebsqb-border); color: var(--ebsqb-text); }
.ebsqb__btn--ghost:hover { background: var(--ebsqb-soft); color: var(--ebsqb-text); }
.ebsqb__btn--block { width: 100%; }
.ebsqb__btn:disabled { opacity: 0.6; cursor: wait; }
.ebsqb__btn--select { flex: 1; padding: 0.55rem 0.9rem; font-size: 0.85rem; }
.ebsqb-card__added { display: none; }
.ebsqb-card.is-selected .ebsqb__btn--select { background: var(--ebsqb-accent); color: var(--ebsqb-accent-text); }
.ebsqb-card.is-selected .ebsqb-card__add { display: none; }
.ebsqb-card.is-selected .ebsqb-card__added { display: inline; }

/* Quantity stepper */
.ebsqb-qty { display: none; align-items: center; border: 1.5px solid var(--ebsqb-border); border-radius: 999px; overflow: hidden; }
.ebsqb-card.is-selected .ebsqb-qty { display: inline-flex; }
.ebsqb-qty button { width: 30px; height: 32px; border: 0; background: transparent; color: var(--ebsqb-text); font-size: 1.1rem; line-height: 1; padding: 0; }
.ebsqb-qty button:hover { background: var(--ebsqb-soft); }
.ebsqb-qty span { min-width: 24px; text-align: center; font-size: 0.9rem; font-weight: 600; }

/* Summary */
.ebsqb__summary { background: var(--ebsqb-bg); border: 1.5px solid var(--ebsqb-border); border-radius: var(--ebsqb-radius); padding: 1.25rem; box-shadow: var(--ebsqb-shadow); }
.ebsqb__summary-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.ebsqb__summary-title { font-size: 1.15rem; font-weight: 600; }
.ebsqb__summary-close { display: none; border: 0; background: transparent; font-size: 1.6rem; line-height: 1; color: var(--ebsqb-muted); padding: 0 0.25rem; }
.ebsqb__lines { list-style: none; margin: 0 0 0.75rem; padding: 0; max-height: 40vh; overflow-y: auto; }
.ebsqb__line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0.5rem; align-items: center; padding: 0.55rem 0; border-bottom: 1px dashed var(--ebsqb-border); font-size: 0.9rem; }
.ebsqb__line--empty { display: block; color: var(--ebsqb-muted); font-size: 0.88rem; border-bottom: 0; padding: 0.5rem 0 0.75rem; }
.ebsqb__line-main { display: flex; flex-direction: column; min-width: 0; }
.ebsqb__line-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ebsqb__line-meta { font-size: 0.75rem; color: var(--ebsqb-muted); }
.ebsqb__line-total { font-weight: 600; white-space: nowrap; }
.ebsqb__line-remove { border: 0; background: transparent; color: var(--ebsqb-muted); font-size: 1.2rem; line-height: 1; padding: 0 0.2rem; }
.ebsqb__line-remove:hover { color: #c0392b; }
.ebsqb__totals { margin: 0.5rem 0 1rem; }
.ebsqb__total-row { display: flex; justify-content: space-between; font-size: 0.88rem; color: var(--ebsqb-muted); padding: 0.2rem 0; }
.ebsqb__total-row--grand { font-size: 1.25rem; font-weight: 700; color: var(--ebsqb-text); border-top: 1px solid var(--ebsqb-border); margin-top: 0.4rem; padding-top: 0.6rem; }
.ebsqb__total-row--grand span:last-child { color: var(--ebsqb-accent); }
.ebsqb__total-row--muted { font-size: 0.8rem; }
.ebsqb__summary-note { font-size: 0.78rem; color: var(--ebsqb-muted); margin-top: 0.75rem; text-align: center; }

/* Narrow: summary becomes a bottom drawer, plus a fixed bar with the running total.
   (.ebsqb__bar and .ebsqb__modal are moved to <body> by the script and carry the .ebsqb class themselves.) */
.ebsqb--narrow .ebsqb__summary { display: none; }
.ebsqb--narrow .ebsqb__summary.is-open { display: block; position: fixed; left: 0; right: 0; bottom: 0; max-width: 720px; margin: 0 auto; z-index: 99998; border-radius: var(--ebsqb-radius) var(--ebsqb-radius) 0 0; max-height: 80vh; overflow-y: auto; box-shadow: 0 -10px 40px rgba(0,0,0,0.18); }
.ebsqb--narrow .ebsqb__summary-close { display: block; }
.ebsqb--narrow.has-selection { padding-bottom: 80px; }
.ebsqb__bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 99997; background: var(--ebsqb-bg); border-top: 1px solid var(--ebsqb-border); padding: 0.7rem 1rem; box-shadow: 0 -6px 24px rgba(0,0,0,0.08); align-items: center; justify-content: space-between; gap: 1rem; }
.ebsqb__bar.is-visible.is-narrow { display: flex; }
.ebsqb__bar.is-hidden { display: none; }
.ebsqb__bar-summary { border: 0; background: transparent; text-align: left; display: flex; flex-direction: column; padding: 0; color: inherit; }
.ebsqb__bar-count { font-size: 0.75rem; color: var(--ebsqb-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.ebsqb__bar-total { font-size: 1.2rem; font-weight: 700; color: var(--ebsqb-accent); }

/* Modal */
.ebsqb__modal { position: fixed; inset: 0; z-index: 99999; }
/* The detail view can open on top of the package summary, so it sits one layer higher. */
.ebsqb__modal--detail { z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.ebsqb__modal-backdrop { position: absolute; inset: 0; background: rgba(30, 25, 15, 0.55); backdrop-filter: blur(2px); }
.ebsqb__modal-panel { position: relative; background: var(--ebsqb-bg); color: var(--ebsqb-text); border-radius: var(--ebsqb-radius); width: 100%; max-width: 580px; max-height: 92vh; overflow-y: auto; padding: 2rem; box-shadow: 0 30px 80px rgba(0,0,0,0.3); animation: ebsqb-pop 0.22s ease-out; }
@keyframes ebsqb-pop { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.ebsqb__modal-close { position: absolute; top: 0.75rem; right: 0.9rem; border: 0; background: transparent; font-size: 1.8rem; line-height: 1; color: var(--ebsqb-muted); padding: 0.1rem 0.3rem; }
.ebsqb__modal-close:hover, .ebsqb__modal-close:focus { color: var(--ebsqb-text); background: transparent; }
.ebsqb__modal-title { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.35rem; }
.ebsqb__modal-sub { color: var(--ebsqb-muted); font-size: 0.95rem; margin-bottom: 1.25rem; }
.ebsqb__form-total, .ebsqb__success-total { display: flex; justify-content: space-between; align-items: center; background: var(--ebsqb-soft); border-radius: 12px; padding: 0.75rem 1rem; margin-bottom: 1.25rem; font-size: 0.95rem; }
.ebsqb__form-total strong, .ebsqb__success-total strong { font-size: 1.3rem; color: var(--ebsqb-accent); }
.ebsqb__grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1rem; }
@media (max-width: 560px) { .ebsqb__grid2 { grid-template-columns: 1fr; } }
.ebsqb__field { display: flex; flex-direction: column; gap: 0.3rem; }
.ebsqb__field--full { grid-column: 1 / -1; }
.ebsqb__field label { font-size: 0.82rem; font-weight: 600; color: var(--ebsqb-text); }
.ebsqb__field label span { color: var(--ebsqb-accent); }
.ebsqb__field input, .ebsqb__field textarea { width: 100%; padding: 0.65rem 0.8rem; border: 1.5px solid var(--ebsqb-border); border-radius: 10px; font: inherit; background: var(--ebsqb-bg); color: inherit; }
.ebsqb__field input:focus, .ebsqb__field textarea:focus { outline: none; border-color: var(--ebsqb-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ebsqb-accent) 20%, transparent); }
.ebsqb__field .is-invalid { border-color: #c0392b; }
.ebsqb__field--check label { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; font-size: 0.85rem; color: var(--ebsqb-muted); cursor: pointer; }
.ebsqb__field--check input { width: auto; margin-top: 0.2rem; accent-color: var(--ebsqb-accent); }
.ebsqb__field--check input.is-invalid { outline: 2px solid #c0392b; }
.ebsqb__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ebsqb__form-error { background: #fdecea; color: #a33; padding: 0.7rem 0.9rem; border-radius: 10px; font-size: 0.9rem; margin: 1rem 0 0; }
.ebsqb__form [data-ebsqb-submit] { margin-top: 1.25rem; padding: 0.9rem 1.5rem; font-size: 1rem; }

/* Collections */
.ebsqb__chooser { margin-bottom: 1.5rem; }
.ebsqb__chooser-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 1rem; margin-top: 0.75rem; }
.ebsqb__chooser-card { display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; text-align: left; padding: 1.5rem 1.5rem 1.4rem; background: var(--ebsqb-bg); border: 1.5px solid var(--ebsqb-border); border-radius: var(--ebsqb-radius); font: inherit; color: var(--ebsqb-text); transition: all 0.18s; cursor: pointer; }
.ebsqb__chooser-card:hover, .ebsqb__chooser-card:focus-visible { border-color: var(--ebsqb-accent); transform: translateY(-3px); box-shadow: var(--ebsqb-shadow); outline: none; }
.ebsqb__chooser-card strong { font-size: 1.2rem; font-weight: 600; }
.ebsqb__chooser-card > span:last-child { color: var(--ebsqb-muted); font-size: 0.92rem; }
.ebsqb__chooser-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--ebsqb-soft); color: var(--ebsqb-accent); display: flex; align-items: center; justify-content: center; margin-bottom: 0.35rem; }
.ebsqb__chooser-icon svg { width: 24px; height: 24px; }
.ebsqb__modeswitch { display: inline-flex; background: var(--ebsqb-soft); border-radius: 999px; padding: 4px; margin-bottom: 1.25rem; }
.ebsqb__modeswitch-btn { border: 0; background: transparent; color: var(--ebsqb-muted); font: inherit; font-weight: 600; font-size: 0.9rem; padding: 0.5rem 1.1rem; border-radius: 999px; transition: all 0.15s; cursor: pointer; }
.ebsqb__modeswitch-btn.is-active { background: var(--ebsqb-bg); color: var(--ebsqb-text); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.ebsqb__collections-head { margin-bottom: 1.25rem; }
.ebsqb__collections-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1.25rem; }
.ebsqb-coll { background: var(--ebsqb-bg); border: 1.5px solid var(--ebsqb-border); border-radius: var(--ebsqb-radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s; }
.ebsqb-coll:hover { transform: translateY(-3px); box-shadow: var(--ebsqb-shadow); }
.ebsqb-coll.is-current { border-color: var(--ebsqb-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ebsqb-accent) 22%, transparent); }
.ebsqb-coll__media { aspect-ratio: 3 / 2; }
.ebsqb-coll__body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.ebsqb-coll__title { font-size: 1.15rem; font-weight: 600; }
.ebsqb-coll__desc { font-size: 0.9rem; color: var(--ebsqb-muted); }
.ebsqb-coll__meta { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.2rem; }
.ebsqb-coll__price { font-size: 1.25rem; font-weight: 700; color: var(--ebsqb-accent); }
.ebsqb-coll__count { font-size: 0.8rem; color: var(--ebsqb-muted); }
.ebsqb-coll__actions { display: flex; gap: 0.5rem; margin-top: auto; padding-top: 0.6rem; flex-wrap: wrap; }
.ebsqb-coll__actions .ebsqb__btn { flex: 1; padding: 0.6rem 0.9rem; font-size: 0.88rem; }
.ebsqb__basis { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; background: color-mix(in srgb, var(--ebsqb-accent) 10%, var(--ebsqb-bg)); border: 1px solid color-mix(in srgb, var(--ebsqb-accent) 35%, transparent); border-radius: 12px; padding: 0.7rem 1rem; margin-bottom: 1rem; font-weight: 600; font-size: 0.95rem; }
.ebsqb__basis-clear { margin-left: auto; border: 0; background: transparent; color: var(--ebsqb-accent); font-weight: 600; text-decoration: underline; font-size: 0.85rem; padding: 0.2rem 0.3rem; cursor: pointer; }
.ebsqb__detail-includes--inside ul { gap: 0.5rem; }
.ebsqb__inside { display: grid !important; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 0.6rem; padding-left: 0 !important; }
.ebsqb__inside::before { display: none; }
.ebsqb__inside img, .ebsqb__inside-ph { width: 48px; height: 36px; object-fit: cover; border-radius: 6px; background: var(--ebsqb-soft); display: flex; align-items: center; justify-content: center; color: var(--ebsqb-accent); font-weight: 600; }
.ebsqb__inside-name em { font-style: normal; color: var(--ebsqb-muted); font-size: 0.8rem; }
.ebsqb__inside-price { font-weight: 600; white-space: nowrap; }

/* Item detail view */
.ebsqb-card__zoom { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.45rem 0.75rem; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: linear-gradient(to top, rgba(0,0,0,0.45), transparent); text-align: left; opacity: 0; transition: opacity 0.2s; }
.ebsqb-card:hover .ebsqb-card__zoom, .ebsqb-card__media:focus-visible .ebsqb-card__zoom { opacity: 1; }
.ebsqb-card__titlebtn { all: unset; cursor: pointer; font: inherit; color: inherit; }
.ebsqb-card__titlebtn:hover { color: var(--ebsqb-accent); }
.ebsqb__modal-panel--detail { max-width: 1040px; padding: 0; overflow: hidden; }
.ebsqb__detail { display: grid; grid-template-columns: minmax(0, 1fr); max-height: 92vh; overflow-y: auto; }
@media (min-width: 820px) { .ebsqb__detail { grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); overflow: hidden; } .ebsqb__detail-info { overflow-y: auto; max-height: 92vh; } }
.ebsqb__detail-media { background: var(--ebsqb-soft); display: flex; flex-direction: column; position: relative; }
.ebsqb__detail-main { aspect-ratio: 4 / 3; width: 100%; background: var(--ebsqb-soft); }
@media (min-width: 820px) { .ebsqb__detail-main { flex: 1; aspect-ratio: auto; min-height: 420px; } }
.ebsqb__detail-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ebsqb__detail-main .ebsqb-card__placeholder { height: 100%; font-size: 5rem; }
.ebsqb__detail-thumbs { display: flex; gap: 0.5rem; padding: 0.6rem; overflow-x: auto; background: var(--ebsqb-bg); border-top: 1px solid var(--ebsqb-border); }
.ebsqb__detail-thumbs:empty { display: none; }
.ebsqb__detail-thumb { flex: 0 0 auto; width: 64px; height: 48px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--ebsqb-soft); opacity: 0.7; transition: all 0.15s; }
.ebsqb__detail-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ebsqb__detail-thumb:hover, .ebsqb__detail-thumb.is-active { opacity: 1; border-color: var(--ebsqb-accent); }
.ebsqb__detail-info { padding: 2.25rem 2rem 2rem; display: flex; flex-direction: column; gap: 0.6rem; }
.ebsqb__detail-cat { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ebsqb-accent); }
.ebsqb__detail-title { font-size: 1.6rem; font-weight: 600; line-height: 1.2; }
.ebsqb__detail-price { font-size: 1.35rem; font-weight: 600; color: var(--ebsqb-accent); display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.ebsqb__detail-price small { font-size: 0.8rem; font-weight: 400; color: var(--ebsqb-muted); }
.ebsqb__detail-badge { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; background: var(--ebsqb-soft); color: var(--ebsqb-accent); padding: 0.25rem 0.55rem; border-radius: 999px; font-weight: 600; }
.ebsqb__detail-note { font-size: 0.85rem; color: var(--ebsqb-muted); }
.ebsqb__detail-note:empty { display: none; }
.ebsqb__detail-actions { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin: 0.4rem 0 0.6rem; }
.ebsqb__btn--detail-add.is-on { background: var(--ebsqb-soft); color: var(--ebsqb-text); border-color: var(--ebsqb-border); }
.ebsqb-qty--detail { display: inline-flex; }
.ebsqb__detail-desc { font-size: 0.95rem; line-height: 1.65; color: var(--ebsqb-text); }
.ebsqb__detail-desc p { margin: 0 0 0.75rem; }
.ebsqb__detail-desc ul, .ebsqb__detail-desc ol { margin: 0 0 0.75rem 1.2rem; padding: 0; }
.ebsqb__detail-desc h2, .ebsqb__detail-desc h3, .ebsqb__detail-desc h4 { font-size: 1.05rem; margin: 1rem 0 0.4rem; }
.ebsqb__detail-includes { border-top: 1px solid var(--ebsqb-border); padding-top: 1rem; margin-top: 0.4rem; }
.ebsqb__detail-includes h4 { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ebsqb-muted); margin-bottom: 0.5rem; }
.ebsqb__detail-includes ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.ebsqb__detail-includes li { padding-left: 1.4rem; position: relative; font-size: 0.92rem; }
.ebsqb__detail-includes li::before { content: "\2713"; position: absolute; left: 0; color: var(--ebsqb-accent); font-weight: 700; }
.ebsqb__detail-media { position: relative; }
.ebsqb__detail-arrow { position: absolute; top: 50%; margin-top: -22px; z-index: 2; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,0.92); color: #2b2a28; font-size: 1.8rem; line-height: 1; box-shadow: 0 4px 14px rgba(0,0,0,0.18); display: flex; align-items: center; justify-content: center; }
.ebsqb__detail-arrow:hover { background: var(--ebsqb-accent); color: var(--ebsqb-accent-text); }
.ebsqb__detail-arrow--prev { left: 0.75rem; }
.ebsqb__detail-arrow--next { right: 0.75rem; }
.ebsqb__detail-media:has(.ebsqb__detail-thumbs:not(:empty)) .ebsqb__detail-arrow { top: calc(50% - 32px); }
.ebsqb__detail-count { position: absolute; right: 0.9rem; bottom: 0.75rem; z-index: 2; background: rgba(0,0,0,0.55); color: #fff; font-size: 0.72rem; letter-spacing: 0.05em; padding: 0.25rem 0.55rem; border-radius: 999px; }
.ebsqb__detail-media:has(.ebsqb__detail-thumbs:not(:empty)) .ebsqb__detail-count { bottom: calc(0.75rem + 66px); }
.ebsqb__modal-panel--detail .ebsqb__modal-close { z-index: 3; background: rgba(255,255,255,0.92); color: #2b2a28; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
.ebsqb__modal-panel--detail .ebsqb__modal-close:hover, .ebsqb__modal-panel--detail .ebsqb__modal-close:focus { background: #fff; color: #000; }

/* Package summary */
.ebsqb__modal-panel--package { max-width: 720px; }
.ebsqb__package-list { display: flex; flex-direction: column; margin: 0.25rem 0 1rem; }
.ebsqb__pkg-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 0.9rem; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid var(--ebsqb-border); }
.ebsqb__pkg-media { width: 72px; height: 54px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--ebsqb-soft); cursor: pointer; }
.ebsqb__pkg-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ebsqb__pkg-media .ebsqb__inside-ph { width: 100%; height: 100%; font-size: 1.4rem; }
.ebsqb__pkg-main { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.ebsqb__pkg-name { all: unset; cursor: pointer; font-weight: 600; font-size: 0.98rem; line-height: 1.3; }
.ebsqb__pkg-name:hover { color: var(--ebsqb-accent); }
.ebsqb__pkg-cat { font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ebsqb-accent); }
.ebsqb__pkg-maths { font-size: 0.82rem; color: var(--ebsqb-muted); }
.ebsqb__pkg-controls { display: flex; align-items: center; gap: 0.6rem; }
.ebsqb-qty--pkg { display: inline-flex; }
.ebsqb__pkg-total { font-weight: 700; white-space: nowrap; min-width: 5.5em; text-align: right; }
.ebsqb__package-totals { margin-bottom: 1rem; }
.ebsqb__package-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; border-top: 1px solid var(--ebsqb-border); padding-top: 1rem; }
@media (max-width: 560px) {
	.ebsqb__pkg-row { grid-template-columns: 56px minmax(0, 1fr); }
	.ebsqb__pkg-media { width: 56px; height: 42px; }
	.ebsqb__pkg-controls { grid-column: 2; justify-content: space-between; }
	.ebsqb__package-actions .ebsqb__btn { flex: 1 1 100%; }
}

/* Mood board */
.ebsqb__btn--mood { margin-top: 0.6rem; }
.ebsqb__mood-icon { display: inline-block; width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 3px; position: relative; }
.ebsqb__mood-icon::before, .ebsqb__mood-icon::after { content: ""; position: absolute; background: currentColor; }
.ebsqb__mood-icon::before { left: 50%; top: 0; bottom: 0; width: 1.5px; }
.ebsqb__mood-icon::after { top: 50%; left: 0; right: 0; height: 1.5px; }
.ebsqb__modal-panel--wide { max-width: 960px; }
.ebsqb__mood-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; margin: 0.5rem 0 1.25rem; }
.ebsqb__mood-grid[data-count="few"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ebsqb__mood-grid[data-count="many"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 700px) { .ebsqb__mood-grid, .ebsqb__mood-grid[data-count] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ebsqb__mood-tile { margin: 0; background: var(--ebsqb-soft); border-radius: 12px; overflow: hidden; border: 1px solid var(--ebsqb-border); }
.ebsqb__mood-tile img, .ebsqb__mood-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; font-size: 2.5rem; color: var(--ebsqb-accent); background: linear-gradient(135deg, var(--ebsqb-soft), #ece5d9); }
.ebsqb__mood-tile figcaption { padding: 0.5rem 0.65rem 0.6rem; font-size: 0.82rem; line-height: 1.3; display: flex; flex-direction: column; gap: 0.1rem; background: var(--ebsqb-bg); }
.ebsqb__mood-tile figcaption em { font-style: normal; color: var(--ebsqb-accent); }
.ebsqb__mood-tile figcaption span { color: var(--ebsqb-muted); font-size: 0.74rem; }
.ebsqb__mood-empty { color: var(--ebsqb-muted); padding: 1.5rem 0; text-align: center; grid-column: 1 / -1; }
.ebsqb__mood-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--ebsqb-border); padding-top: 1rem; }
.ebsqb__mood-note { color: var(--ebsqb-muted); font-size: 0.85rem; flex: 1 1 260px; }
.ebsqb__success-mood { display: block; margin: 0.25rem auto 1rem; max-width: 460px; border-radius: 12px; overflow: hidden; border: 1px solid var(--ebsqb-border); }
.ebsqb__success-mood img { width: 100%; height: auto; display: block; }

/* Success */
.ebsqb__success { text-align: center; padding: 0.5rem 0; }
.ebsqb__success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--ebsqb-accent); color: var(--ebsqb-accent-text); font-size: 2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.ebsqb__success-ref { color: var(--ebsqb-muted); font-size: 0.9rem; margin-bottom: 0.75rem; }
.ebsqb__success-ref strong { color: var(--ebsqb-text); letter-spacing: 0.04em; }
.ebsqb__success-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin: 1.25rem 0 1rem; }
.ebsqb__success-email { font-size: 0.82rem; color: var(--ebsqb-muted); }

body.ebsqb-modal-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	.ebsqb *, .ebsqb *::before, .ebsqb *::after { transition: none !important; animation: none !important; }
}

/* Defeat theme-level button:hover / :focus styling (backgrounds, borders, underlines) on the
   builder's plain text/icon buttons. Modals live directly under <body>, so class-only selectors. */
.ebsqb-card__titlebtn:hover, .ebsqb-card__titlebtn:focus, .ebsqb-card__titlebtn:active,
.ebsqb__pkg-name:hover, .ebsqb__pkg-name:focus, .ebsqb__pkg-name:active,
.ebsqb__line-remove:hover, .ebsqb__line-remove:focus, .ebsqb__line-remove:active,
.ebsqb__summary-close:hover, .ebsqb__summary-close:focus, .ebsqb__summary-close:active,
.ebsqb__bar-summary:hover, .ebsqb__bar-summary:focus, .ebsqb__bar-summary:active,
.ebsqb__basis-clear:hover, .ebsqb__basis-clear:focus, .ebsqb__basis-clear:active,
.ebsqb__chip-toggle button:hover, .ebsqb__chip-toggle button:focus,
.ebsqb-qty button:focus, .ebsqb-qty button:active,
.ebsqb__modeswitch-btn:not(.is-active):hover, .ebsqb__modeswitch-btn:not(.is-active):focus,
.ebsqb__modal:not(.ebsqb__modal--detail) .ebsqb__modal-close:hover, .ebsqb__modal:not(.ebsqb__modal--detail) .ebsqb__modal-close:focus { background: transparent !important; background-color: transparent !important; background-image: none !important; border: 0 !important; box-shadow: none !important; outline: none; text-decoration: none !important; }
.ebsqb-card__titlebtn:hover, .ebsqb-card__titlebtn:focus-visible, .ebsqb__pkg-name:hover, .ebsqb__pkg-name:focus-visible { color: var(--ebsqb-accent) !important; }
.ebsqb__basis-clear:hover, .ebsqb__basis-clear:focus-visible { color: var(--ebsqb-accent) !important; text-decoration: underline; }
.ebsqb__line-remove:hover { color: #c0392b !important; }
.ebsqb__summary-close:hover, .ebsqb__summary-close:focus-visible, .ebsqb__chip-toggle button:hover, .ebsqb__modeswitch-btn:not(.is-active):hover { color: var(--ebsqb-text) !important; }
.ebsqb__bar-summary:hover, .ebsqb__bar-summary:focus { color: inherit !important; }
.ebsqb-card__media:hover, .ebsqb-card__media:focus, .ebsqb__pkg-media:hover, .ebsqb__pkg-media:focus { background: var(--ebsqb-soft) !important; border: 0 !important; box-shadow: none !important; outline: none; text-decoration: none !important; }
.ebsqb__detail-thumb:hover, .ebsqb__detail-thumb:focus { background: var(--ebsqb-soft) !important; border-width: 2px !important; border-style: solid !important; box-shadow: none !important; outline: none; text-decoration: none !important; }
.ebsqb__detail-thumb:hover, .ebsqb__detail-thumb:focus-visible { border-color: var(--ebsqb-accent) !important; }
.ebsqb__detail-arrow:hover, .ebsqb__detail-arrow:focus, .ebsqb__chip-apply:hover, .ebsqb__chip-cancel:hover { border: 0 !important; text-decoration: none !important; }
.ebsqb__detail-arrow:hover, .ebsqb__detail-arrow:focus { box-shadow: 0 4px 14px rgba(0,0,0,0.18) !important; }
.ebsqb__modal--detail .ebsqb__modal-close:hover, .ebsqb__modal--detail .ebsqb__modal-close:focus { border: 0 !important; box-shadow: none !important; text-decoration: none !important; }
.ebsqb__btn:hover, .ebsqb__btn:focus { border-width: 1.5px !important; border-style: solid !important; border-color: var(--ebsqb-accent) !important; box-shadow: none !important; text-decoration: none !important; }
.ebsqb__btn--ghost:hover, .ebsqb__btn--ghost:focus { border-color: var(--ebsqb-border) !important; }
.ebsqb__chip:hover, .ebsqb__chip:focus { background: var(--ebsqb-bg) !important; border-width: 1px !important; border-style: solid !important; text-decoration: none !important; }
.ebsqb-card__titlebtn:focus-visible, .ebsqb__pkg-name:focus-visible, .ebsqb__line-remove:focus-visible, .ebsqb__modal-close:focus-visible { outline: 2px solid var(--ebsqb-accent); outline-offset: 2px; }
