/* Bulb Offer 1.1.1. Colours can be overridden in the module's Custom CSS field. */
.bo-box {
  --bo-blue: #22608f;
  --bo-green: #2eae2a;
  --bo-border: #d6dbe0;
  --bo-muted: #6b7178;
  --bo-tint: #eef4f9;
  font-size: 14px;
  line-height: 1.45;
  color: inherit;
  box-sizing: border-box;
}
.bo-box *, .bo-box *::before, .bo-box *::after { box-sizing: border-box; }

.bo-icon { flex: none; vertical-align: middle; }
.bo-muted { color: var(--bo-muted); }
.bo-test {
  display: inline-block; margin-left: 8px; padding: 1px 6px; border-radius: 3px;
  background: #fff3cd; color: #7a5a00; font-size: 11px; font-weight: 700; letter-spacing: .04em; vertical-align: middle;
}

/* product page */
.bo-product { width: 100%; margin: 0 0 14px; }
.bo-heading { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 15px; }
.bo-heading > span:first-of-type { font-weight: 700; }
.bo-row {
  display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 14px;
  border: 1px solid var(--bo-border); border-radius: 8px; cursor: pointer; font-weight: 400;
  transition: border-color .15s, background-color .15s;
}
.bo-row:hover { border-color: var(--bo-blue); }
.bo-row.bo-on { border: 2px solid var(--bo-blue); padding: 11px 13px; background: var(--bo-tint); }
.bo-row input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--bo-blue); cursor: pointer; }
.bo-row .bo-text { flex: 1; min-width: 0; }
.bo-price { flex: none; display: flex; gap: 8px; align-items: baseline; white-space: nowrap; }
.bo-each { color: var(--bo-muted); font-size: 13px; }
.bo-total { color: var(--bo-green); font-weight: 700; }
.bo-thumb { flex: none; width: 44px; height: 44px; object-fit: contain; border: 1px solid #eee; background: #fff; }

.bo-which { margin-top: 6px; font-size: 13px; }
.bo-which-toggle { color: var(--bo-blue); text-decoration: underline; }
.bo-which-list { list-style: none; margin: 6px 0 0; padding: 0; }
.bo-which-list li { margin: 2px 0; }
.bo-which-list a { color: inherit; }
.bo-qty { font-weight: 700; }

/* basket and checkout */
.bo-bar { margin: 12px 0; padding: 12px 14px; border: 2px solid var(--bo-blue); border-radius: 8px; background: var(--bo-tint); }
.bo-bar-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bo-bar-row .bo-text { flex: 1; min-width: 200px; }

.bo-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 8px 18px;
  border: 1px solid transparent; border-radius: 3px; font: inherit; font-size: 15px; line-height: 1.2; cursor: pointer;
}
.bo-btn:focus-visible { outline: 2px solid var(--bo-blue); outline-offset: 2px; }
.bo-btn[disabled] { opacity: .6; cursor: wait; }
.bo-btn-add { background: var(--bo-green); border-color: var(--bo-green); color: #fff; }
.bo-btn-add:hover { filter: brightness(.95); }
.bo-btn-skip { background: #fff; border-color: #c8ccd0; color: #222; }
.bo-bar .bo-btn-add { background: var(--bo-blue); border-color: var(--bo-blue); }

/* basket bulbs that no lamp takes */
.bo-mismatch { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--bo-border); color: #6b4e00; font-size: 13px; }
.bo-bar-info .bo-mismatch { margin: 0; padding: 0; border: 0; }
.bo-bar-info { border-width: 1px; border-color: #e6c870; background: #fff8e1; }
.bo-mismatch-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: #e0a800; color: #fff; font-weight: 700; font-size: 12px; line-height: 1; }

/* popup */
.bo-overlay {
  position: fixed; inset: 0; top: 0; right: 0; bottom: 0; left: 0; z-index: 100000;
  display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .5);
}
.bo-modal {
  position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow: auto;
  padding: 22px 22px 20px; border-radius: 8px; background: #fff; color: #222;
}
.bo-close {
  position: absolute; top: 6px; right: 8px; width: 36px; height: 36px; border: 0; background: none;
  font-size: 26px; line-height: 1; color: #888; cursor: pointer;
}
.bo-added { margin: 0 0 8px; color: var(--bo-green); font-size: 13px; padding-right: 30px; }
.bo-modal .bo-heading { font-size: 17px; }
.bo-sub { margin: 0 0 14px; color: var(--bo-muted); }
.bo-items { list-style: none; margin: 0 0 16px; padding: 0; }
.bo-items li { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.bo-items .bo-thumb { width: 56px; height: 56px; }
.bo-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bo-actions .bo-btn { flex: 1 1 150px; }

@media (max-width: 480px) {
  .bo-row { flex-wrap: wrap; }
  .bo-row .bo-text { flex-basis: calc(100% - 40px); }
  .bo-price { margin-left: 32px; }
}
