/* Readable fields across the storefront, including Journal3 checkout and option popups. */
html body :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]):not([type="color"]):not([type="range"]), textarea, select) {
    background: #fff4b8 !important;
    background-color: #fff4b8 !important;
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
    caret-color: #111 !important;
}

html body input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]):not([type="color"]):not([type="range"])::placeholder,
html body textarea::placeholder {
    color: #3b3527 !important;
    opacity: 1 !important;
}

html body :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]):not([type="color"]):not([type="range"]), textarea, select):focus {
    background: #fff4b8 !important;
    color: #111 !important;
    outline: 3px solid #222 !important;
    outline-offset: 2px !important;
}

html body input:-webkit-autofill,
html body input:-webkit-autofill:hover,
html body input:-webkit-autofill:focus,
html body textarea:-webkit-autofill,
html body select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fff4b8 inset !important;
    -webkit-text-fill-color: #111 !important;
    caret-color: #111 !important;
}

html body select option {
    background: #fff4b8;
    color: #111;
}

/* Two rows of actions on the product page, including Journal3's fixed mobile bar. */
html.route-product-product:not(.popup) .product-info .button-group-page .buttons-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 7px !important;
}

html.route-product-product:not(.popup) .product-info .button-group-page .stepper-group.cart-group,
html.route-product-product:not(.popup) .product-info .button-group-page .other-buttons > .extra-group {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    gap: 6px !important;
}

html.route-product-product:not(.popup) .product-info .button-group-page .other-buttons {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 6px !important;
}

html.route-product-product:not(.popup) .product-info .button-group-page .stepper-group.cart-group > .stepper {
    width: 62px !important;
    min-width: 62px !important;
    flex: 0 0 62px !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
}

html.route-product-product:not(.popup) .product-info .button-group-page .stepper-group.cart-group > #button-cart,
html.route-product-product:not(.popup) .product-info .button-group-page .stepper-group.cart-group > .btn-extra[data-quick-buy],
html.route-product-product:not(.popup) .product-info .button-group-page .other-buttons .extra-group > .btn {
    display: inline-flex !important;
    flex: 1 1 0 !important;
    align-items: center !important;
    justify-content: center !important;
    width: 0 !important;
    min-width: 0 !important;
    min-height: 44px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 8px 5px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    white-space: normal !important;
    line-height: 1.15 !important;
    font-size: 12px !important;
}

html.route-product-product:not(.popup) .product-info .button-group-page .btn-extra.btn-extra-93,
html.route-product-product:not(.popup) .product-info .button-group-page .btn-quote-request {
    background: #075ccc !important;
    border-color: #075ccc !important;
    color: #fff !important;
}

html.route-product-product:not(.popup) .product-info .button-group-page .btn-extra.btn-extra-93:hover,
html.route-product-product:not(.popup) .product-info .button-group-page .btn-extra.btn-extra-93:focus,
html.route-product-product:not(.popup) .product-info .button-group-page .btn-quote-request:hover,
html.route-product-product:not(.popup) .product-info .button-group-page .btn-quote-request:focus {
    background: #034a9e !important;
    border-color: #034a9e !important;
    color: #fff !important;
}

html.route-product-product:not(.popup) .product-info .button-group-page .btn-quote-request .btn-text {
    color: inherit !important;
    font-weight: 700 !important;
}

html.route-product-product:not(.popup) .product-info .button-group-page .btn-quote-request {
    font-weight: 700 !important;
}

@media (min-width: 1025px) {
    html.route-product-product:not(.popup) .product-info .button-group-page .stepper-group.cart-group,
    html.route-product-product:not(.popup) .product-info .button-group-page .other-buttons {
        flex-direction: column !important;
        width: 90% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    html.route-product-product:not(.popup) .product-info .button-group-page .other-buttons > .extra-group {
        flex-direction: column !important;
        width: 100% !important;
    }

    html.route-product-product:not(.popup) .product-info .button-group-page .stepper-group.cart-group > .stepper {
        width: 100% !important;
        flex: 0 0 auto !important;
    }

    html.route-product-product:not(.popup) .product-info .button-group-page .stepper-group.cart-group > #button-cart,
    html.route-product-product:not(.popup) .product-info .button-group-page .stepper-group.cart-group > .btn-extra[data-quick-buy],
    html.route-product-product:not(.popup) .product-info .button-group-page .other-buttons .extra-group > .btn {
        flex: 0 0 auto !important;
        width: 100% !important;
        font-size: 14px !important;
    }
}

@media (max-width: 1024px) {
    html.route-product-product:not(.popup) .product-info .button-group-page .stepper-group.cart-group .stepper .control-label {
        display: none !important;
    }
    html.route-product-product:not(.popup) .product-info .button-group-page.product-buttons-fixed .stepper-group.cart-group > .btn-extra.btn[data-quick-buy] {
        display: inline-flex !important;
        flex: 1 1 0 !important;
        width: 0 !important;
    }
    html.route-product-product:not(.popup) body:has(.button-group-page.product-buttons-fixed) {
        padding-bottom: 120px !important;
    }
    html.route-product-product:not(.popup) .product-info .button-group-page.product-buttons-fixed .other-buttons > .wishlist-compare {
        display: none !important;
    }
}

@media (max-width: 359px) {
    html.route-product-product:not(.popup) .product-info .button-group-page .stepper-group.cart-group > .stepper {
        width: 56px !important;
        min-width: 56px !important;
        flex-basis: 56px !important;
    }
    html.route-product-product:not(.popup) .product-info .button-group-page .buttons-wrapper .btn {
        font-size: 11px !important;
    }
}

/* Quote request dialog. */
html body .quote-request-overlay[hidden],
html body .quote-request-message[hidden],
html body .quote-request-success[hidden],
html body #quote-request-form[hidden] {
    display: none !important;
}

html body .quote-request-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10060 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px !important;
    box-sizing: border-box !important;
}

html body .quote-request-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .68);
}

html body .quote-request-panel {
    position: relative;
    width: min(640px, 100%);
    max-height: min(90vh, 90dvh);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 24px;
    box-sizing: border-box;
    background: #fff;
    color: #111;
    border-radius: 12px;
    box-shadow: 0 16px 55px rgba(0, 0, 0, .35);
}

html body .quote-request-panel h2 {
    margin: 0 40px 6px 0;
    color: #111;
    font-size: 22px;
}

html body .quote-request-product {
    margin: 0 0 16px;
    color: #333;
}

html body .quote-request-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: 2px solid #222;
    border-radius: 50%;
    background: #fff;
    color: #111;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

html body .quote-request-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

html body .quote-request-field label {
    display: block;
    margin-bottom: 5px;
    color: #111;
    font-weight: 700;
}

html body .quote-request-field label span {
    font-weight: 400;
}

html body .quote-request-field input {
    display: block;
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #444;
    border-radius: 5px;
}

html body .quote-request-field input[aria-invalid="true"] {
    border-color: #a10000 !important;
    box-shadow: 0 0 0 1px #a10000 !important;
}

html body .quote-field-error {
    display: block;
    color: #9a0000;
    font-size: 13px;
}

html body .quote-request-message:not([hidden]) {
    display: block;
    padding: 8px;
    color: #9a0000;
    background: #fff0f0;
}

html body .quote-request-success:not([hidden]) {
    display: block;
    padding: 12px;
    color: #12451d;
    background: #e1f4e5;
}

html body .quote-request-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

html body .quote-request-captcha {
    margin-top: 16px;
}

html body .quote-request-submit {
    width: 100%;
    min-height: 44px;
    margin-top: 16px;
}

@media (max-width: 560px) {
    html body .quote-request-panel {
        padding: 18px;
    }
    html body .quote-request-fields {
        grid-template-columns: 1fr;
    }
}
