/* electek — order page. Uses the colours and fonts defined in site.css */

.order-top { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.order-top .container { padding-top: 28px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 18px; }
.order-top__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.order-top h1 { font-size: 30px; font-weight: 800; }
.order-top p { margin: 0; font-size: 14px; color: var(--text-2); }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.quick-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.qcard {
  display: flex; gap: 12px; align-items: center; padding: 12px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink);
}
.qcard:hover { border-color: #C7D2FE; color: var(--ink); }
.qcard__icon { width: 40px; height: 40px; border-radius: 8px; background: var(--primary-tint); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.qcard > span:last-child { display: flex; flex-direction: column; line-height: 1.5; }
.qcard b { font-size: 15px; }
.qcard small { font-size: 12px; color: var(--muted); text-align: right; }

.order-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; padding-top: 28px; padding-bottom: 48px; }
.order-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
/* The side column follows the page while scrolling, so the price is always in sight. */
.order-side { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 12px;
              position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; overscroll-behavior: contain;
              scrollbar-width: thin; padding-inline-end: 2px; }
@media (max-width: 1100px) { .order-side { position: static; max-height: none; overflow: visible; } }

.notice { padding: 12px 16px; border-radius: 10px; background: var(--primary-tint); color: var(--primary-dark); font-size: 14px; }
.form-alert ul { margin: 0; padding-inline-start: 18px; }

/* Sections */
.osec { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.osec__head {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 18px; margin: 0;
  background: var(--bg-alt); border: 0; border-bottom: 1px solid var(--line);
  font-family: inherit; color: var(--ink); text-align: right;
}
.osec__head--switch, .osec__head--toggle { cursor: pointer; }
.osec__icon { width: 32px; height: 32px; border-radius: 8px; background: var(--primary); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.osec__titles { display: flex; flex-direction: column; flex: 1 1 auto; line-height: 1.5; }
.osec__title { font-size: 16px; font-weight: 800; margin: 0; }
.osec__sub { font-size: 12px; color: var(--muted); }
.osec__chev { transition: transform .2s ease; transform: rotate(180deg); }
.osec__head[aria-expanded="false"] .osec__chev { transform: none; }
.osec__body { padding: 0 18px; }
.osec__hint { margin: 0; padding: 0 0 18px; font-size: 14px; color: var(--text-2); }
.osec.is-off .osec__head { border-bottom: 0; }
.osec.is-off .osec__body, .osec.is-off-all, .is-hidden { display: none !important; }
.osec--note { padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; }
.osec--note .osec__title { font-size: 16px; }

/* Switch */
.sw-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw { position: relative; width: 48px; height: 28px; border-radius: 14px; background: #D1D5DB; flex: 0 0 auto; transition: background .15s ease; }
.sw::after {
  content: ''; position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: right .15s ease;
}
.sw-input:checked + .sw { background: var(--primary); }
.sw-input:checked + .sw::after { right: 23px; }
.sw-input:focus-visible + .sw { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Rows */
.orow { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 11px 0; border-bottom: 1px solid #F0F1F3; }
.osec__body > .orow:last-child { border-bottom: 0; }
.orow__label { flex: 0 0 150px; display: flex; align-items: center; gap: 4px; min-height: 38px; font-size: 14px; font-weight: 700; }
.orow__label small { font-size: 12px; font-weight: 400; color: var(--muted); }
.orow__field { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.orow__field--inline { flex-direction: row; align-items: center; gap: 12px 16px; flex-wrap: wrap; }
.orow--error .num-input { border-color: var(--error-text); }
.help-btn { width: 38px; height: 38px; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.help-btn span { width: 20px; height: 20px; border-radius: 50%; border: 1px solid #C7CDD6; color: var(--muted); font-size: 12px; display: flex; align-items: center; justify-content: center; }
.help-btn[aria-expanded="true"] span { border-color: var(--primary); color: var(--primary); }
.help-text { margin: 0; padding: 10px 14px; background: var(--bg-alt); border-radius: 8px; font-size: 14px; color: var(--text-2); }
.muted { color: var(--muted); font-size: 13px; margin: 0; }
.small { font-size: 12px; margin: 0; }
.mono { font-family: var(--font-mono); }
.field-error { margin: 0; color: var(--error-text); font-size: 13px; }
.note-red { margin: 0; color: var(--error-text); font-size: 13px; font-weight: 500; }

/* Choices (tiles, pills, swatches) */
.choices { display: flex; gap: 8px; flex-wrap: wrap; }
.choices--pill, .choices--mono, .choices--swatch { gap: 6px; }
.choice { position: relative; cursor: pointer; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px;
          transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.choice:hover { box-shadow: 0 2px 10px rgba(11, 27, 46, .08); }
.choice > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice:has(> input:checked) { border: 2px solid var(--primary); background: var(--primary-tint); }
.choice:has(> input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.choice__title { font-size: 13px; font-weight: 700; }
.choice__sub { font-size: 11px; color: var(--muted); }
.choice--card { width: 112px; padding: 8px 6px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.choice__tick { position: absolute; top: 6px; left: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); display: none; align-items: center; justify-content: center; }
.choice--card:has(> input:checked) .choice__tick { display: flex; }
.choice--pill, .choice--mono { min-width: 62px; min-height: 38px; padding: 0 12px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; border-radius: 8px; }
.choice--mono { font-family: var(--font-mono); font-weight: 500; font-size: 14px; min-width: 56px; }
.choices--size { gap: 6px; }
.choice--size { width: 104px; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; border-radius: 8px; }
.choice--size .choice__title { font-size: 14px; }
/* "Specialist options" button inside a section */
.adv-toggle { display: flex; align-items: center; gap: 10px; width: 100%; margin: 4px 0 0; padding: 10px 14px; border: 1px dashed var(--line);
              border-radius: 10px; background: var(--bg-alt); color: var(--ink); font: inherit; cursor: pointer; text-align: right; }
.adv-toggle span { font-weight: 700; font-size: 14px; }
.adv-toggle small { color: var(--muted); font-size: 12px; flex: 1; }
.adv-toggle svg { transition: transform .2s ease; flex: 0 0 auto; }
.adv-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.choice--swatch { width: 62px; padding: 6px 4px 5px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.choice--swatch .choice__title { font-weight: 500; font-size: 13px; }
.swatch { position: relative; width: 38px; height: 26px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.swatch__pad { position: absolute; left: 6px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: #D9DDE1; }
.swatch__line { position: absolute; right: 6px; bottom: 7px; width: 18px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); }
.choice--silk { width: 112px; padding: 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.silk { width: 100%; height: 36px; border-radius: 6px; background: var(--mask, #1E7B3E); display: flex; align-items: center; justify-content: center; gap: 8px;
        font-family: var(--font-mono); font-size: 13px; font-weight: 600; }
.silk__box { border: 1px solid; padding: 0 4px; border-radius: 2px; }
.choice--wide { width: 180px; padding: 8px 10px; display: flex; align-items: center; gap: 10px; }
.choice__texts { display: flex; flex-direction: column; line-height: 1.45; }
.choice--check { min-height: 40px; padding: 4px 12px; display: flex; align-items: center; gap: 10px; border-radius: 8px; }
.choice__box { width: 20px; height: 20px; border-radius: 5px; border: 1px solid #9CA3AF; background: #fff; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.choice__box svg { visibility: hidden; }
.choice--check:has(> input:checked) .choice__box { background: var(--primary); border-color: var(--primary); }
.choice--check:has(> input:checked) .choice__box svg { visibility: visible; }
.choice--source { width: 200px; padding: 10px 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.choice--source .choice__sub { color: var(--text-2); }

/* Size inputs */
.size { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.size__item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.size__x { color: var(--muted); font-size: 18px; }
.num-input { width: 86px; min-height: 38px; border: 1px solid #D1D5DB; border-radius: 8px; padding: 0 12px; font-family: var(--font-mono); font-size: 16px;
             font-weight: 500; color: var(--ink); background: #fff; direction: ltr; text-align: center; }
.num-input--sm { width: 80px; font-size: 15px; }
.num-input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.seg { display: flex; border: 1px solid #D1D5DB; border-radius: 8px; overflow: hidden; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: flex; align-items: center; min-height: 36px; padding: 0 12px; font-size: 13px; font-weight: 500; }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: -2px; }
.select { min-width: 140px; min-height: 38px; border: 1px solid #D1D5DB; border-radius: 8px; padding: 0 12px; font-family: inherit; font-size: 15px; color: var(--ink); background: #fff; }
.textarea { border: 1px solid #D1D5DB; border-radius: 8px; padding: 12px; font-family: inherit; font-size: 15px; color: var(--ink); background: #fff; resize: vertical; }

/* Side cards */
.card { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.card h2 { font-size: 15px; font-weight: 800; }
.card__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 2px 10px; border-radius: 999px; background: #F3F4F6; color: #374151; font-size: 12px; font-weight: 500; }
.chip--blue { background: var(--primary-tint); color: var(--primary); font-weight: 700; }
.pv { background: var(--bg-alt); border-radius: 10px; }
.pv svg { display: block; width: 100%; height: auto; }
.stack { position: relative; display: flex; gap: 12px; margin: 4px 0; }
.stack__bars { flex: 1 1 auto; display: flex; flex-direction: column; }
.stack__bar { border-radius: 1px; }
.stack__labels { position: relative; flex: 0 0 120px; }
.stack__label { position: absolute; left: 0; transform: translateY(-50%); font-family: var(--font-mono); font-size: 11px; line-height: 1; color: var(--text-2); white-space: nowrap; }

.upload-block { display: flex; flex-direction: column; gap: 8px; }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 92px;
        border: 2px dashed #C7CDD6; border-radius: 10px; background: #FBFCFD; cursor: pointer; text-align: center; padding: 14px; }
.drop:hover, .drop.is-over { border-color: var(--primary); background: #F5F8FF; }
.drop b { font-size: 14px; }
.drop small { font-size: 12px; color: var(--muted); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop--small { min-height: 0; flex-direction: row; gap: 8px; padding: 10px 14px; border-width: 1px; font-size: 14px; font-weight: 500; }
.has-error .drop { border-color: var(--error-text); }
.file-ok { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; background: var(--success-bg); color: var(--success-text); font-size: 14px; }
.file-name { font-family: var(--font-mono); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.card--sum { padding: 12px 14px 10px; }
.plans { display: flex; flex-direction: column; gap: 6px; }
.plan { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 12px; border-radius: 10px; cursor: pointer; border: 1px solid var(--line); background: #fff; }
.plan input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.plan:has(input:checked) { border: 2px solid var(--primary); background: var(--primary-tint); }
.plan:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.plan__dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #9CA3AF; flex: 0 0 auto; }
.plan:has(input:checked) .plan__dot { border: 5px solid var(--primary); }
.plan__texts { display: flex; flex-direction: column; flex: 1 1 auto; line-height: 1.45; }
.plan__texts b { font-size: 14px; }
.plan__texts small { font-size: 12px; color: var(--muted); }
.plan__price { font-size: 14px; font-weight: 800; white-space: nowrap; }
.eligible { margin: 0; font-size: 12px; color: var(--success-text); }
.lines { margin: 2px 0 0; padding-top: 8px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.lines div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.lines dt { color: var(--text-2); }
.lines dd { margin: 0; font-weight: 500; }
.total { padding: 8px 0 2px; border-top: 2px solid var(--ink); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.total span { font-size: 15px; font-weight: 700; }
.total b { font-size: 21px; font-weight: 800; }
.btn--submit { min-height: 48px; font-size: 16px; font-weight: 800; border-radius: 10px; }
.submit-box { display: flex; flex-direction: column; gap: 6px; }
.btn--submit[disabled] { opacity: .7; cursor: wait; }

/* Option pictures a little smaller */
.choice--card svg { width: 88px; height: auto; }
.choice--wide svg { width: 36px; height: auto; flex: 0 0 auto; }

/* Price bar on phones and tablets (the side column is then below the form) */
.mbar { display: none; }
@media (max-width: 1100px) {
  .mbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between;
          gap: 12px; padding: 10px 16px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(11, 27, 46, .08); }
  .mbar__texts { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
  .mbar__texts small { font-size: 12px; color: var(--muted); }
  .mbar__texts b { font-size: 18px; font-weight: 800; }
  .mbar .btn { min-height: 40px; padding: 0 14px; font-size: 14px; white-space: nowrap; }
  .order { padding-bottom: 72px; }
}

/* Tips */
.tips { background: var(--bg-alt); border-top: 1px solid var(--line); }
.tips .container { padding-top: 48px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 24px; }
.tips h2 { font-size: 22px; font-weight: 800; }
.tips__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.tip { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.tip h3 { font-size: 16px; font-weight: 700; }
.tip p { margin: 0; font-size: 14px; color: var(--text-2); }
body:has(.tips) .footer { margin-top: 0; }

@media (max-width: 560px) {
  .osec__head { padding: 14px 16px; }
  .osec__body { padding: 0 16px; }
  .orow__label { flex-basis: 100%; min-height: 0; }
  .choice--card { width: calc(50% - 5px); }
  .choice--size { width: calc(33.333% - 4px); }
  .adv-toggle small { display: none; }
  .choice--wide, .choice--source { width: 100%; }
  .order-top h1 { font-size: 24px; }
}
