/* HB Options (#32) — option form. Inherits the theme's font and colours (currentColor); works in Eurus (SPB)
   and the WordPress themes (MATE, HB Fab). Override --hbo-accent per theme if needed. */
.hbo { --hbo-accent: currentColor; --hbo-line: color-mix(in srgb, currentColor 22%, transparent); --hbo-soft: color-mix(in srgb, currentColor 6%, transparent);
  --hbo-err: #c0392b; display: grid; gap: 14px; margin: 4px 0 16px; font-size: 15px; line-height: 1.4; }
.hbo-set { display: grid; gap: 14px; }
.hbo-field[hidden] { display: none !important; }
.hbo-label, .hbo-header { display: block; font-weight: 600; margin: 0 0 6px; }
.hbo-header { font-size: 1.05em; margin-top: 4px; }
.hbo-req { color: var(--hbo-err); }
.hbo-tip { display: inline-block; margin-left: 6px; opacity: .7; cursor: help; font-weight: 400; }
.hbo-help { font-size: .88em; opacity: .75; margin: -2px 0 6px; }
.hbo-price-note { font-weight: 400; opacity: .75; }
.hbo-input { width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 12px; font: inherit; color: inherit; background: transparent;
  border: 1px solid var(--hbo-line); border-radius: 6px; }
textarea.hbo-input { min-height: 88px; resize: vertical; }
.hbo-input:focus-visible, .hbo-tile:focus-visible, .hbo-img:focus-visible, .hbo-choice input:focus-visible { outline: 2px solid var(--hbo-accent); outline-offset: 2px; }
.hbo-choices { display: grid; gap: 6px; }
.hbo-choice { display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; min-height: 44px; box-sizing: border-box; border: 1px solid var(--hbo-line);
  border-radius: 6px; cursor: pointer; font-weight: 400; margin: 0; }
.hbo-choice:has(input:checked) { border-color: var(--hbo-accent); background: var(--hbo-soft); }
.hbo-choice input { margin: 3px 0 0; flex: none; width: 18px; height: 18px; accent-color: var(--hbo-accent); }
.hbo-tiles, .hbo-imgs { display: flex; flex-wrap: wrap; gap: 8px; }
.hbo-tile, .hbo-img { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; font: inherit; color: inherit; cursor: pointer;
  background: transparent; border: 1px solid var(--hbo-line); border-radius: 6px; }
.hbo-tile.is-on, .hbo-img.is-on { border-color: var(--hbo-accent); box-shadow: inset 0 0 0 1px var(--hbo-accent); background: var(--hbo-soft); }
.hbo-swatch { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--hbo-line); flex: none; }
.hbo-font .hbo-tile { font-size: 1.1em; }
.hbo-img { flex-direction: column; padding: 6px; width: 104px; text-align: center; font-size: .85em; }
.hbo-img img { width: 90px; height: 90px; object-fit: cover; border-radius: 4px; }
.hbo-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; min-height: 44px; font-weight: 400; margin: 0; }
.hbo-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hbo-switch-ui { width: 42px; height: 24px; border-radius: 12px; background: var(--hbo-line); position: relative; transition: background .15s; flex: none; }
.hbo-switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.hbo-switch input:checked + .hbo-switch-ui { background: var(--hbo-accent); }
.hbo-switch input:checked + .hbo-switch-ui::after { left: 21px; }
.hbo-switch input:focus-visible + .hbo-switch-ui { outline: 2px solid var(--hbo-accent); outline-offset: 2px; }
.hbo-upload-status { font-size: .88em; margin-top: 6px; opacity: .85; }
.hbo-error { color: var(--hbo-err); font-size: .88em; margin-top: 4px; min-height: 0; }
.hbo-error:empty { display: none; }
.hbo-invalid .hbo-input, .hbo-invalid .hbo-choice, .hbo-invalid .hbo-tile, .hbo-invalid .hbo-img { border-color: var(--hbo-err); }
.hbo-total { font-weight: 600; }
.hbo-total:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .hbo-switch-ui, .hbo-switch-ui::after { transition: none; } }
/* Shopify: "Buy it now" would skip the add-on lines → hidden on products with options */
.hbo-active .shopify-payment-button, .hbo-active .payment-button-container { display: none !important; }
/* Shopify, while ShopPad is still installed (dev theme / switch-over): hide its form where ours is active */
.hbo-active #infiniteoptions-container, .hbo-active .infiniteoptions-container, .hbo-active #infiniteoptions-price { display: none !important; }
