/* =====================================================================
   Quote wizard — four-step estimator for the product page form
   Namespaced .qw-* so it cannot collide with the theme or with the older
   customQuoteFormCOM.css rules that still style the file uploader.
   ===================================================================== */
.qw {
    --qw-ink: #17223b;
    --qw-muted: #66738a;
    --qw-line: #dce4f0;
    --qw-soft: #f5f8fc;
    --qw-green: #0da487;
    --qw-green-dark: #0b8a71;
    --qw-green-soft: #e8f7f2;
    --qw-blue: #0ea8cb;
    --qw-orange: #e88a16;
    position: relative;
    border: 1px solid var(--qw-line);
    border-radius: 5px;
    background: #fff;
    overflow: hidden;
    color: var(--qw-ink);
}

/* the theme sets li{display:inline-block} globally */
.qw li {
    display: block;
}

.qw *,
.qw *::before,
.qw *::after {
    box-sizing: border-box;
}

.qw::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--qw-green);
    z-index: 2;
}

/* ---------- head + stepper ---------- */
.qw-head {
    padding: 16px 18px 0;
    border-bottom: 1px solid var(--qw-line);
    background: #fff;
}

.qw-eyebrow {
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--qw-orange);
    margin-bottom: 4px;
}

.qw-head h3 {
    font-size: 19px;
    margin: 0 0 3px;
    color: #164d5d;
    font-weight: 700;
}

.qw-head p {
    font-size: 13px;
    color: var(--qw-muted);
    margin: 0;
}

.qw-stepper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 14px -18px 0;
}

.qw-tab {
    position: relative;
    border: 0;
    border-top: 1px solid var(--qw-line);
    border-right: 1px solid var(--qw-line);
    background: var(--qw-soft);
    padding: 10px 2px 11px;
    font-size: 12px;
    font-weight: 700;
    color: #7b8494;
    line-height: 1.2;
    cursor: pointer;
    transition: background .18s, color .18s;
}

.qw-tab:last-child {
    border-right: 0;
}

.qw-tab:hover {
    background: #eef4f5;
}

.qw-tab span {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #d7dce4;
    color: #5f6877;
    font-size: 12px;
    margin-right: 4px;
    transition: background .18s;
}

.qw-tab.is-active {
    background: #fff;
    color: var(--qw-green-dark);
}

.qw-tab.is-active::after {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 0;
    height: 2px;
    background: var(--qw-green);
}

.qw-tab.is-active span,
.qw-tab.is-done span {
    background: var(--qw-green);
    color: #fff;
}

.qw-tab.is-done {
    color: var(--qw-green-dark);
}

/* ---------- panels ---------- */
.qw-body {
    padding: 16px 18px 18px;
}

.qw-panel {
    display: none;
}

.qw-panel.is-active {
    display: block;
}

.qw-intro {
    font-size: 13px;
    color: var(--qw-muted);
    margin: 0 0 14px;
}

.qw-intro strong {
    color: var(--qw-ink);
}

.qw-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    margin: 16px 0 7px;
    color: var(--qw-ink);
}

.qw-panel > .qw-label:first-child {
    margin-top: 0;
}

.qw-label .qw-hint {
    font-size: 11px;
    font-weight: 500;
    color: var(--qw-muted);
}

/* ---------- unit switch ---------- */
.qw-unitrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
}

.qw-unitrow > span {
    font-size: 13.5px;
    font-weight: 700;
}

.qw-units {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.qw-units li {
    margin: 0;
}

.qw-unit {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

.qw-unit input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.qw-unit span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 24px;
    padding: 0 8px;
    border: 1px solid #c9d0dc;
    border-radius: 3px;
    background: #fff;
    color: var(--qw-muted);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1;
}

.qw-unit:hover span {
    border-color: var(--qw-green);
    color: var(--qw-green-dark);
}

.qw-unit input:checked + span {
    border-color: var(--qw-green);
    background: var(--qw-green-soft);
    color: var(--qw-green-dark);
}

.qw-unit input:focus-visible + span {
    outline: 2px solid var(--qw-green);
    outline-offset: 2px;
}

/* ---------- inputs ---------- */
.qw-dims,
.qw-qtys {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.qw-dims.is-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qw-dims.is-one {
    grid-template-columns: minmax(0, 1fr);
}

.qw .qw-input {
    display: block;
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #c9d0dc;
    border-radius: 5px;
    background: #fff;
    color: var(--qw-ink);
    font-size: 15px;
    text-align: center;
    -moz-appearance: textfield;
}

.qw .qw-input::-webkit-inner-spin-button,
.qw .qw-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qw .qw-input:focus {
    outline: none;
    border-color: var(--qw-green);
    background: #fff;
}

.qw .qw-input.input-danger,
.qw .qw-input.input-error {
    border-color: #d94a4a;
    background: #fff7f7;
}

.qw-guides {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin: 5px 0 0;
    color: var(--qw-muted);
    font-size: 11px;
    line-height: 1.25;
    text-align: center;
}

/* ---------- option cards ---------- */
.qw-opts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.qw-opts.is-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.qw-opt {
    position: relative;
    display: block;
    margin: 0;
    border: 1px solid #d8e1ed;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    transition: border-color .18s, background .18s;
}

.qw-opt:hover {
    border-color: #8fcdbf;
}

.qw-opt input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.qw-opt > span {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 9px 30px 9px 11px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.25;
    color: #52607b;
}

.qw-opt:has(input:checked) {
    border-color: var(--qw-green);
    background: var(--qw-green-soft);
}

.qw-opt:has(input:checked) > span {
    color: var(--qw-green-dark);
}

.qw-opt:has(input:checked)::after {
    content: '';
    position: absolute;
    right: 9px;
    top: 35%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    border-radius: 50%;
    background-color: var(--qw-green);
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3E%3Cpath d='M6.2 11.3 3.5 8.6l1.1-1.1 1.6 1.6 4.2-4.2 1.1 1.1z'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 14px;
}

.qw-opt input:focus-visible ~ span {
    outline: 2px solid var(--qw-green);
    outline-offset: -2px;
    border-radius: 4px;
}

/* fallback for browsers without :has() so a choice is never invisible */
.qw-opt.is-checked {
    border-color: var(--qw-green);
    background: var(--qw-green-soft);
}

.qw-opt.is-checked > span {
    color: var(--qw-green-dark);
}

/* ---------- print setup ---------- */
.qw-print {
    border: 1px solid var(--qw-line);
    border-radius: 5px;
    background: #f8fafb;
    padding: 6px;
}

.qw-print-row {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 5px;
    align-items: center;
    padding: 6px;
}

.qw-print-row + .qw-print-row {
    border-top: 1px solid var(--qw-line);
}

.qw-print-title {
    display: flex;
    align-items: center;
    height: 40px;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.2;
}

.qw-chip {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

.qw-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.qw-chip > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    padding: 0 4px;
    border: 1px solid #d8e1ed;
    border-radius: 5px;
    background: #fff;
    color: #596579;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
}

.qw-chip:hover > span {
    border-color: #8fcdbf;
}

.qw-chip input:checked + span,
.qw-chip.is-checked > span {
    border-color: var(--qw-green);
    background: var(--qw-green-soft);
    color: var(--qw-green-dark);
}

.qw-chip input:focus-visible + span {
    outline: 2px solid var(--qw-green);
    outline-offset: 1px;
}

/* yes / no toggle */
.qw-yesno {
    display: flex;
    gap: 7px;
}

.qw-yesno .qw-chip {
    min-width: 76px;
}

.qw-c2-label {
    display: block;
    color: var(--qw-green-dark);
    font-weight: 600;
    font-size: 13px;
    margin: 16px 0 7px;
}

.qw-inside-wrap {
    margin-top: 9px;
}

.qw-inside-wrap.hide {
    display: none;
}

/* ---------- features / add-ons ---------- */
.qw-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.qw-check {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    min-height: 42px;
    padding: 8px 9px;
    border: 1px solid #d8e2ee;
    border-radius: 5px;
    background: #fff;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.2;
    color: #52607b;
    cursor: pointer;
    transition: border-color .18s, background .18s;
}

.qw-check:hover {
    border-color: #8fcdbf;
}

.qw .qw-check input {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 0;
    border: 1.5px solid #aab7ca;
    border-radius: 4px;
    background: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.qw .qw-check input:checked {
    border-color: var(--qw-green);
    background-color: var(--qw-green);
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3E%3Cpath d='M6.2 11.3 3.5 8.6l1.1-1.1 1.6 1.6 4.2-4.2 1.1 1.1z'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 12px;
}

.qw-check:has(input:checked),
.qw-check.is-checked {
    border-color: var(--qw-green);
    background: var(--qw-green-soft);
    color: var(--qw-green-dark);
}

/* ---------- timeline ---------- */
.qw-turn {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.qw-turn-opt {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 104px;
    margin: 0;
    padding: 12px 32px 11px 12px;
    border: 1px solid #d7e1ee;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    transition: border-color .18s, background .18s;
}

.qw-turn-opt:hover {
    border-color: #8fcdbf;
}

.qw-turn-opt input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.qw-turn-opt::after {
    content: '';
    position: absolute;
    right: 11px;
    top: 12px;
    width: 15px;
    height: 15px;
    border: 1.5px solid #b9c3d4;
    border-radius: 50%;
    background: #fff;
}

.qw-turn-opt:has(input:checked),
.qw-turn-opt.is-checked {
    border-color: var(--qw-green);
    background: var(--qw-green-soft);
}

.qw-turn-opt:has(input:checked)::after,
.qw-turn-opt.is-checked::after {
    border: 4px solid var(--qw-green);
}

.qw-tier {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--qw-green-dark);
    margin-bottom: 5px;
}

.qw-turn-opt:nth-child(1) .qw-tier {
    color: var(--qw-orange);
}

.qw-turn-opt:nth-child(3) .qw-tier {
    color: var(--qw-blue);
}

.qw-time {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

.qw-desc {
    font-size: 11.5px;
    line-height: 1.35;
    color: var(--qw-muted);
    margin-top: 4px;
}

.qw-cost {
    margin-top: auto;
    padding-top: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #53627b;
}

.qw-turn-opt.is-urgent {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.qw-turn-opt.is-urgent .qw-time {
    color: var(--qw-orange);
    font-size: 16px;
}

.qw-note {
    margin-top: 10px;
    padding: 10px 11px;
    border: 1px solid #e0e7f1;
    border-radius: 5px;
    background: #f8faff;
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--qw-muted);
}

.qw-note b {
    color: #475467;
}

/* ---------- material help popover ---------- */
.qw-info {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 1px solid var(--qw-blue);
    border-radius: 50%;
    background: #fff;
    color: #087f9d;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.qw-info:hover,
.qw-info:focus-visible {
    background: #eaf9fc;
}

.qw-pop {
    position: absolute;
    z-index: 30;
    left: 0;
    right: 0;
    bottom: calc(100% + 8px);
    padding: 15px 16px;
    border: 1px solid #b8d6d9;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(29, 50, 91, .14);
}

.qw-pop[hidden] {
    display: none !important;
}

.qw-pop h4 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
}

.qw-pop-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid var(--qw-line);
}

.qw-pop-swatch {
    height: 74px;
    display: grid;
    place-items: center;
    border: 1px solid #ccd8df;
    border-radius: 5px;
    background: #f3f7f8;
    color: #71808c;
    font-size: 10.5px;
    font-weight: 700;
    text-align: center;
}

.qw-pop-swatch.is-cardboard {
    background: #f7f7f4;
}

.qw-pop-swatch.is-corrugated {
    background: #dfc59b;
    color: #6c5433;
}

.qw-pop-swatch.is-kraft {
    background: #b68b59;
    color: #fff;
}

.qw-pop-swatch.is-rigid {
    background: #3c4757;
    color: #fff;
}

.qw-pop-copy strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13.5px;
}

.qw-pop-copy ul {
    margin: 0;
    padding-left: 17px;
    color: var(--qw-muted);
    font-size: 12.5px;
    line-height: 1.45;
}

.qw-pop-copy li {
    display: list-item;
    margin: 2px 0;
}

/* ---------- upload + contact ---------- */
.qw-upload {
    /* the uploader ships its own stylesheet (public/uploader/file.css) which floats
       .ajxUploaderCnt and the file list left. Once a file is added that list gains
       height, so without containment the float escapes and the captcha and the
       actions row wrap alongside it instead of sitting below. */
    display: flow-root;
    margin: 4px 0 0;
}

.qw .file-input-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 0 0 14px;
    padding: 12px;
    border: 1px dashed #9fb2d4;
    border-radius: 5px;
    background: #f7fbfa;
    color: #56677f;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
}

.qw .file-input-button:hover {
    border-color: var(--qw-green);
    background: var(--qw-green-soft);
    color: var(--qw-green-dark);
}

.qw-contact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.qw-field {
    position: relative;
    min-width: 0;
}

.qw-field.is-full {
    grid-column: 1 / -1;
}

.qw-field > i {
    position: absolute;
    left: 13px;
    top: 15px;
    color: #9aa6b8;
    font-size: 13px;
    pointer-events: none;
}

.qw .qw-field .form-control {
    width: 100%;
    min-height: 44px;
    padding: 11px 12px 11px 36px;
    border: 1px solid #c9d0dc;
    border-radius: 5px;
    background: #fff;
    color: var(--qw-ink);
    font-size: 14px;
    text-align: left;
}

.qw .qw-field textarea.form-control {
    min-height: 92px;
    resize: vertical;
}

.qw .qw-field .form-control:focus {
    outline: none;
    border-color: var(--qw-green);
}

.qw .qw-field .form-control.input-danger {
    border-color: #d94a4a;
    background: #fff7f7;
}

.qw-error {
    display: block;
    margin-top: 4px;
    color: #d94a4a;
    font-size: 11.5px;
    font-weight: 600;
}

.qw-error.hide {
    display: none;
}

.qw-captcha {
    clear: both;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    margin-top: 11px;
}

.qw-captcha img {
    max-width: 100%;
    height: auto;
}

.qw-privacy {
    margin: 10px 0 0;
    font-size: 11.5px;
    color: var(--qw-muted);
    text-align: center;
}

/* ---------- actions ---------- */
.qw-actions {
    clear: both;
    display: flex;
    gap: 8px;
    margin-top: 17px;
    padding-top: 15px;
    border-top: 1px solid #edf0f4;
}

.qw .qw-btn {
    flex: 1;
    min-height: 46px;
    padding: 12px 15px;
    border: 1px solid #b9c1cf;
    border-radius: 5px;
    background: #fff;
    color: var(--qw-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
}

.qw .qw-btn:hover {
    background: #f5fafb;
    border-color: #8fcdbf;
}

.qw .qw-btn-primary,
.qw .qw-btn-primary:hover {
    flex: 1.5;
    border-color: var(--qw-green-dark);
    background: var(--qw-green);
    color: #fff;
}

.qw .qw-btn-primary.disabled {
    opacity: .65;
    pointer-events: none;
}

/* ---------- responsive ---------- */
@media (max-width: 1660px) and (min-width: 1201px) {
    .qw-opts.is-three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1200px) {
    .qw-head,
    .qw-body {
        padding-left: 16px;
        padding-right: 16px;
    }

    .qw-stepper {
        margin-left: -16px;
        margin-right: -16px;
    }
}

@media (max-width: 767px) {
    .qw-tab {
        font-size: 11px;
        padding: 10px 1px;
    }

    .qw-tab span {
        width: 18px;
        height: 18px;
        font-size: 11px;
        margin-right: 3px;
    }

    .qw-contact {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 575px) {
    .qw-head h3 {
        font-size: 17px;
    }

    .qw-opts,
    .qw-opts.is-three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qw-features {
        grid-template-columns: minmax(0, 1fr);
    }

    .qw-print-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .qw-print-title {
        grid-column: 1 / -1;
        height: auto;
        margin-bottom: 2px;
    }

    .qw-pop-row {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 11px;
    }

    .qw-pop-swatch {
        height: 64px;
    }

    .qw-captcha {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 400px) {
    .qw-tab {
        font-size: 10px;
    }

    .qw-tab span {
        margin-right: 2px;
    }

    .qw-turn {
        grid-template-columns: minmax(0, 1fr);
    }

    .qw-turn-opt {
        min-height: 0;
    }
}

/* chip row inside the print setup; auto-fits however many colours the
   product returns from the database */
.qw-chips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
    gap: 5px;
    min-width: 0;
}

@media (max-width: 575px) {
    .qw-chips {
        grid-template-columns: repeat(auto-fit, minmax(62px, 1fr));
    }
}

/* The theme boxes #quote_form (padding, border, 780px cap, centred text).
   The wizard card provides its own frame, so undo that here. Scoped by
   .qw-host so every other quote form on the site is untouched. */
.qw-host {
    border: 0;
    background: transparent;
    padding: 0;
}

.qw-host #quote_form {
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    text-align: left;
}

/* The card is clipped so its rounded top bar sits flush, which also clipped the
   comparison popovers. Open it up only while a popover is on screen. */
.qw.has-pop {
    overflow: visible;
}

.qw:has(.qw-pop:not([hidden])) {
    overflow: visible;
}

.qw-pop {
    max-height: 60vh;
    overflow-y: auto;
}

.qw-pop-copy p {
    margin: 0;
    color: var(--qw-muted);
    font-size: 12.5px;
    line-height: 1.45;
}

.qw-pop-swatch.is-alt {
    background: #f7f4ed;
    color: #6d6455;
}

/* the popover anchors to its label */
.qw-label {
    position: relative;
}

/* never taller than the room above it */
.qw-pop {
    max-height: min(60vh, 460px);
}

/* ---------- design mapping: option descriptions, step titles, field labels ---------- */
.qw-step-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 4px;
}

.qw-opt > span {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 52px;
}

.qw-opt b {
    display: block;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

.qw-opt em {
    display: block;
    margin-top: 2px;
    font-style: normal;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--qw-muted);
}

.qw-opt:has(input:checked) b,
.qw-opt.is-checked b {
    color: var(--qw-green-dark);
}

/* optional features sit three to a row, as in the design */
.qw-features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.qw-field-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 5px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--qw-ink);
}

.qw-optional {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--qw-muted);
}

.qw-field-control {
    position: relative;
}

.qw-field-control > i {
    position: absolute;
    left: 13px;
    top: 15px;
    color: #9aa6b8;
    font-size: 13px;
    pointer-events: none;
}

/* the design stacks the contact fields full width */
.qw-contact {
    grid-template-columns: minmax(0, 1fr);
}

.qw .file-input-button {
    flex-direction: column;
    gap: 3px;
    margin-top: 4px;
}

.qw-upload-main i {
    margin-right: 7px;
}

.qw-upload-sub {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--qw-muted);
}

@media (max-width: 991px) {
    .qw-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .qw-features {
        grid-template-columns: minmax(0, 1fr);
    }

    .qw-opts.is-three {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- step 2 refinements ---------- */
/* keep the tick clear of the title only, so the description keeps the full
   card width and stays on a single line as in the design */
.qw-opt > span {
    padding-right: 11px;
}

.qw-opt b {
    padding-right: 24px;
}

.qw-opts.is-three .qw-opt em {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* the theme's .checkbox_animated paints a blank 21px box with ::after; this
   markup no longer uses that class, and this keeps it away for good */
.qw .qw-check input::before,
.qw .qw-check input::after {
    content: none !important;
    display: none !important;
}

.qw .qw-check input {
    width: 18px;
    height: 18px;
    margin: 0;
    border-radius: 4px;
}

.qw-check {
    gap: 9px;
    padding: 10px 11px;
}

/* ---------- type scale, matched to the design ----------
   The prototype's html{font-size:17px} is not copied: it would resize the
   whole theme. The mobile steps are restated below so these rules cannot
   flatten the responsive sizes declared earlier in this file. */
.qw-eyebrow {
    font-size: 12px;
}

.qw-head h3 {
    font-size: 21px;
}

.qw-head p {
    font-size: 13.5px;
}

.qw-tab {
    font-size: 13px;
}

.qw-tab span {
    font-size: 12.5px;
}

.qw-step-title {
    font-size: 18px;
}

.qw-intro {
    font-size: 13px;
}

.qw .qw-input {
    font-size: 16px;
}

.qw-guides {
    font-size: 11px;
}

.qw-note {
    font-size: 11px;
}

.qw-upload-sub {
    font-size: 11px;
}

.qw-privacy {
    font-size: 12px;
}

@media (max-width: 767px) {
    .qw-tab {
        font-size: 11.5px;
    }

    .qw-tab span {
        font-size: 11px;
    }

    .qw-head h3 {
        font-size: 19px;
    }
}

@media (max-width: 400px) {
    .qw-tab {
        font-size: 10.5px;
    }
}

/* ---------- component parity with the design ----------
   Measurements taken from the prototype. The mobile steps declared
   earlier in this file are restated at the end so these rules cannot
   flatten the responsive behaviour. */
.qw-head {
    padding: 18px 20px 0;
}

.qw-body {
    padding: 17px 20px 20px;
}

.qw-stepper {
    margin: 16px -20px 0;
}

.qw-tab {
    padding: 11px 3px 12px;
}

.qw-tab span {
    width: 21px;
    height: 21px;
    margin-right: 4px;
}

.qw-unitrow > span {
    font-size: 13px;
}

.qw-unit span {
    min-width: 31px;
    height: 23px;
    padding: 0 7px;
    border-radius: 2px;
}

/* the design lists the measuring hints left aligned under each input */
.qw-guides {
    margin: 5px 0 13px;
    text-align: left;
}

.qw .qw-input {
    height: 39px;
}

.qw-opt > span {
    min-height: 58px;
}

.qw-opts.is-three .qw-opt > span {
    min-height: 64px;
}

.qw-print-row {
    grid-template-columns: 76px minmax(0, 1fr);
    min-height: 56px;
}

.qw-chip > span {
    height: 42px;
}

.qw-turn-opt {
    min-height: 112px;
    padding: 13px 34px 11px 12px;
}

.qw-turn-opt:has(input:checked)::after,
.qw-turn-opt.is-checked::after {
    border-width: 3px;
}

.qw-check {
    min-height: 40px;
    padding: 8px 7px;
    gap: 6px;
}

.qw .qw-check input {
    width: 16px;
    height: 16px;
}

.qw .qw-btn {
    min-height: 44px;
    padding: 11px 15px;
}

/* ---------- responsive steps restated ---------- */
@media (max-width: 767px) {
    .qw-head,
    .qw-body {
        padding-left: 16px;
        padding-right: 16px;
    }

    .qw-stepper {
        margin-left: -16px;
        margin-right: -16px;
    }

    .qw-tab {
        padding: 10px 2px 11px;
    }

    .qw-tab span {
        width: 19px;
        height: 19px;
        margin-right: 3px;
    }
}

@media (max-width: 575px) {
    .qw-print-row {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }
}

@media (max-width: 400px) {
    .qw-turn-opt {
        min-height: 0;
    }
}

/* ---------- overrides for theme rules that use !important ----------
   style.css centres every #quote_form input and repaints the upload box in
   amber. These selectors are one class more specific and scoped to
   .qw-host, so every other quote form on the site keeps the theme styling. */
.qw-host #quote_form .qw-field .form-control {
    height: auto !important;
    padding: 11px 12px 12px 10px !important;
    border: 1px solid #c9d0dc !important;
    border-radius: 5px !important;
    text-align: left !important;
}

.qw-host #quote_form .qw-field textarea.form-control {
    min-height: 92px !important;
    padding-top: 11px !important;
}

.qw-host #quote_form .qw-field .form-control:focus {
    border-color: #0da487 !important;
}

.qw-host #quote_form .qw-field .form-control.input-danger {
    border-color: #d94a4a !important;
}

/* size and quantity keep the design's own alignment */
.qw-host #quote_form .qw-input {
    height: 39px !important;
    padding: 0 10px !important;
    border: 1px solid #c9d0dc !important;
    border-radius: 5px !important;
}

.qw-host #quote_form .qw-dims .qw-input {
    text-align: left !important;
}

.qw-host #quote_form .qw-qtys .qw-input {
    text-align: center !important;
}

.qw-host #quote_form .qw-input:focus {
    border-color: #0da487 !important;
}

/* the design's upload panel is a light dashed box, not the amber one */
.qw-host #quote_form .file-input-button {
    flex-direction: column !important;
    gap: 3px !important;
    margin: 4px 0 14px !important;
    padding: 12px !important;
    border: 1px dashed #9fb2d4 !important;
    border-radius: 5px !important;
    background-color: #f7fbfa !important;
    color: #56677f !important;
    font-size: 13.5px !important;
}

.qw-host #quote_form .file-input-button:hover {
    border-color: #0da487 !important;
    background-color: #e8f7f2 !important;
    color: #0b8a71 !important;
}

/* the older stylesheet pins this icon to the left edge of the button */
.qw-host #quote_form .file-input-button i {
    position: static !important;
    height: auto !important;
    width: auto !important;
}

/* ---------- comparison popover, matched to the design ---------- */
.qw-pop {
    left: -20px;
    right: -20px;
    padding: 16px 20px;
    border: 1px solid #b8d6d9;
    border-radius: 5px;
    box-shadow: none;
    max-height: min(78vh, 640px);
}

.qw-pop h4 {
    margin: 0 0 9px;
    font-size: 16px;
    font-weight: 700;
}

.qw-pop-row {
    grid-template-columns: 236px minmax(0, 1fr);
    gap: 17px;
    min-height: 128px;
    padding: 13px 0;
}

.qw-pop-swatch {
    height: 100px;
    border: 1px solid #ccd8df;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
}

.qw-pop-copy strong {
    margin-bottom: 3px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--qw-ink);
}

.qw-pop-copy ul {
    padding-left: 19px;
    font-size: 13.5px;
    font-weight: 100;
    line-height: 1.35;
}

.qw-pop-copy li {
    margin: 2px 0;
}

.qw-pop-copy li::marker {
    color: var(--qw-green);
}

.qw-pop-copy p {
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.45;
}

/* below 521px the design lifts the panel out and pins it to the viewport */
@media (max-width: 520px) {
    .qw-pop {
        position: fixed;
        left: 16px;
        right: 16px;
        top: auto;
        bottom: 18px;
        z-index: 60;
        max-height: calc(100vh - 36px);
        padding: 18px;
    }

    .qw-pop-row {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 13px;
        min-height: 108px;
        padding: 12px 0;
    }

    .qw-pop-swatch {
        height: 82px;
    }

    .qw-pop-copy ul,
    .qw-pop-copy p {
        font-size: 12.5px;
    }
}

/* ---------- validation, for the forms owned by jQuery Validate ----------
   custom.js inserts a .validation-icon straight after the field and adds
   .has-error to it; place the icon so it reads as part of the control. */
.qw .qw-field-control > .validation-icon {
    position: absolute;
    right: 11px;
    top: 14px;
    color: #d94a4a;
    cursor: pointer;
}

.qw .qw-field-control > textarea + i + .validation-icon,
.qw .qw-field-control > textarea ~ .validation-icon {
    top: 12px;
}

.qw .has-error {
    border-color: #d94a4a !important;
}

/* the custom quote form asks for a single quantity */
.qw-qtys.is-one {
    grid-template-columns: minmax(0, 1fr);
}

/* ajax response banner from custom.js */
.qw .response:not(:empty) {
    margin-bottom: 12px;
}

.qw .response .alert {
    margin-bottom: 0;
    font-size: 13px;
}

/* native selects share the field styling */
.qw .qw-field-control > select.form-control {
    height: 44px;
    cursor: pointer;
}
