/* ──────────────────────────────────────────────────────
   SALT ORDER BLOCK
   One-screen ordering card. Built for gloved hands on a
   phone in winter: big targets, plain language, no hops.
   ────────────────────────────────────────────────────── */

.saltorder-block {
    background: #eef2f7;
    padding: 56px 20px 72px;
}

.saltorder-inner {
    max-width: 780px;
    margin: 0 auto;
}

/* ── Header ── */

.saltorder-head {
    text-align: center;
    margin-bottom: 32px;
}

.saltorder-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #1550a8;
    margin: 0 0 10px;
}

.saltorder-title {
    font-size: 42px;
    line-height: 1.1;
    margin: 0 0 14px;
    color: #101418;
}

.saltorder-sub {
    font-size: 17px;
    line-height: 1.6;
    color: #4a5561;
    margin: 0 auto;
    max-width: 560px;
}

.saltorder-empty {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    font-size: 17px;
}

/* ── Form shell ── */

.saltorder-form {
    background: #fff;
    border: 1px solid #dde4ec;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(16, 20, 24, 0.07);
    padding: 8px 28px 28px;
}

.saltorder-step {
    border: 0;
    border-bottom: 1px solid #eef1f5;
    margin: 0;
    padding: 26px 0;
}

.saltorder-step:last-of-type {
    border-bottom: 0;
}

.saltorder-step[hidden] {
    display: none;
}

.saltorder-legend {
    font-size: 18px;
    font-weight: 700;
    color: #101418;
    padding: 0;
    margin-bottom: 16px;
    text-transform: none;
}

.saltorder-opt {
    font-weight: 400;
    font-size: 14px;
    color: #7a838d;
    text-transform: none;
    letter-spacing: 0;
}

.saltorder-hint {
    font-size: 14px;
    color: #7a838d;
    margin: 10px 0 0;
}

/* ── Product tiles ── */

.saltorder-products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.saltorder-product {
    display: block;
    cursor: pointer;
    position: relative;
}

.saltorder-product input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.saltorder-product-card {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 2px solid #dde4ec;
    border-radius: 12px;
    padding: 14px;
    min-height: 92px;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    height: 100%;
}

.saltorder-product:hover .saltorder-product-card {
    border-color: #9dbbe6;
}

.saltorder-product.is-selected .saltorder-product-card {
    border-color: #1b6bd6;
    box-shadow: 0 0 0 3px rgba(27, 107, 214, 0.15);
}

.saltorder-product input:focus-visible + .saltorder-product-card {
    outline: 3px solid #1b6bd6;
    outline-offset: 2px;
}

.saltorder-product-img {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background-color: #e8f1fc;
    background-size: cover;
    background-position: center;
}

.saltorder-product-img--ph {
    background-color: #e8f1fc;
}

.saltorder-product-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.saltorder-product-name {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
    color: #101418;
}

.saltorder-product-price {
    font-size: 15px;
    font-weight: 700;
    color: #1b6bd6;
}

.saltorder-product-price small {
    font-weight: 400;
    color: #7a838d;
}

.saltorder-product-price em {
    font-style: normal;
    font-weight: 400;
    color: #9aa3ad;
}

.saltorder-product-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #5b6672;
}

.saltorder-product.is-oos {
    cursor: not-allowed;
}

.saltorder-product.is-oos .saltorder-product-card {
    opacity: 0.5;
    background: #f5f7f9;
}

/* ── Delivery / pickup toggle ── */

.saltorder-toggle {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.saltorder-toggle-opt {
    position: relative;
    cursor: pointer;
}

.saltorder-toggle-opt input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.saltorder-toggle-opt span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 16px;
    border: 2px solid #dde4ec;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    color: #39424d;
    text-align: center;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.saltorder-toggle-opt.is-selected span {
    border-color: #1b6bd6;
    background: #e8f1fc;
    color: #1550a8;
}

.saltorder-toggle-opt.is-disabled {
    display: none;
}

/* ── Quantity stepper ── */

.saltorder-stepper {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
}

.saltorder-step-btn {
    width: 64px;
    min-height: 64px;
    border: 2px solid #dde4ec;
    background: #fff;
    border-radius: 10px;
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
    color: #1b6bd6;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.saltorder-step-btn:hover {
    border-color: #1b6bd6;
    background: #e8f1fc;
}

.saltorder-qty-field {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid #dde4ec;
    border-radius: 10px;
    padding: 0 16px;
    flex: 1;
    max-width: 260px;
    background: #fff;
}

.saltorder-qty-field input {
    border: 0;
    font-size: 30px;
    font-weight: 700;
    color: #101418;
    width: 100%;
    min-width: 0;
    text-align: right;
    padding: 12px 0;
    background: transparent;
    -moz-appearance: textfield;
}

.saltorder-qty-field input::-webkit-outer-spin-button,
.saltorder-qty-field input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.saltorder-qty-field input:focus {
    outline: none;
}

.saltorder-qty-unit {
    font-size: 17px;
    font-weight: 700;
    color: #7a838d;
    white-space: nowrap;
}

.saltorder-truckmath {
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    color: #1550a8;
    margin: 16px 0 0;
    min-height: 22px;
}

.saltorder-qty-hint {
    text-align: center;
}

/* ── Fields ── */

.saltorder-f {
    display: block;
    margin-bottom: 14px;
}

.saltorder-cap {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #39424d;
    margin-bottom: 6px;
}

.saltorder-f input,
.saltorder-date,
.saltorder-notes {
    width: 100%;
    border: 2px solid #dde4ec;
    border-radius: 10px;
    padding: 14px 14px;
    font-size: 16px;
    color: #101418;
    background: #fff;
    font-family: inherit;
}

.saltorder-f input:focus,
.saltorder-date:focus,
.saltorder-notes:focus {
    outline: none;
    border-color: #1b6bd6;
    box-shadow: 0 0 0 3px rgba(27, 107, 214, 0.15);
}

.saltorder-f input[readonly] {
    background: #f5f7f9;
    color: #7a838d;
}

.saltorder-date {
    cursor: pointer;
}

.saltorder-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 16px;
}

.saltorder-addr-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 0 12px;
}

/* ── Submit ── */

.saltorder-submit {
    padding-top: 24px;
}

.saltorder-place {
    display: block;
    width: 100%;
    min-height: 62px;
    font-size: 18px;
    background: #1b6bd6;
    color: #fff;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.saltorder-place:hover {
    background: #1550a8;
    color: #fff;
}

.saltorder-place:disabled {
    opacity: 0.6;
    cursor: default;
}

.saltorder-reassure {
    text-align: center;
    font-size: 14px;
    color: #7a838d;
    margin: 14px 0 0;
}

.saltorder-reassure[hidden] {
    display: none;
}

.saltorder-error {
    background: #fdecec;
    border: 1px solid #f2b8b8;
    color: #a3231f;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
}

.saltorder-error[hidden] {
    display: none;
}

/* ── Confirmation ── */

.saltorder-done {
    background: #fff;
    border: 1px solid #dde4ec;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(16, 20, 24, 0.07);
    padding: 48px 32px;
    text-align: center;
}

.saltorder-done[hidden] {
    display: none;
}

.saltorder-done-title {
    font-size: 30px;
    margin: 0 0 14px;
}

.saltorder-done-msg {
    font-size: 17px;
    line-height: 1.6;
    color: #39424d;
    margin: 0 auto 10px;
    max-width: 460px;
}

.saltorder-done-phone {
    font-size: 15px;
    color: #7a838d;
    margin: 0;
}

/* ── Footnote ── */

.saltorder-footnote {
    margin-top: 24px;
    text-align: center;
    font-size: 15px;
    line-height: 1.6;
    color: #5b6672;
}

/* ──────────────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────────────── */

@media (max-width: 767px) {
    .saltorder-block {
        padding: 36px 16px 52px;
    }

    .saltorder-title {
        font-size: 32px;
    }

    .saltorder-sub {
        font-size: 16px;
    }

    .saltorder-form {
        padding: 4px 18px 22px;
    }

    .saltorder-products,
    .saltorder-grid {
        grid-template-columns: 1fr;
    }

    .saltorder-addr-row {
        grid-template-columns: 1fr 1fr;
    }

    .saltorder-addr-row .saltorder-f:first-child {
        grid-column: 1 / -1;
    }

    .saltorder-step-btn {
        width: 58px;
        min-height: 58px;
    }

    .saltorder-qty-field input {
        font-size: 26px;
    }
}

/* Product blurb on the choose-your-salt cards. Mirrors the wording the
   yard uses on its own price sheet; clamped so a long bagged-salt spec
   can't stretch the whole grid. */
.saltorder-product-desc {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 4px 0 6px;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #5a6472;
}
.saltorder-product.is-oos .saltorder-product-desc { opacity: 0.75; }
