.wp-order .wp-checkout-field-error {
    grid-column: 1 / -1;
    margin: 4px 0 0;
    color: #a41940;
    font-size: 14px;
    line-height: 1.4;
}
.wp-order [aria-invalid="true"] { outline: 2px solid #a41940; }
.wp-order #np-city-lookup { display: none; }

@media (max-width: 767px) {
    .wp-order { padding-bottom: calc(80px + env(safe-area-inset-bottom) + var(--checkout-banner-space, 0px)); }
    .wp-checkout-footer {
        --checkout-floating-clearance: calc(68px + env(safe-area-inset-bottom) + var(--checkout-banner-space, 0px));
    }
    .wp-checkout-footer .scrolltotop {
        bottom: var(--checkout-floating-clearance);
        transition-property: opacity;
    }
    /* Leave the full-width chat panel under the shared header and cookie rules. */
    body.wp-checkout-footer iframe[data-wonderpack-site-chat-v2-frame="true"].wp-checkout-chat-launcher {
        bottom: var(--checkout-floating-clearance) !important;
    }
    .wp-order #form-order-btn {
        position: fixed;
        z-index: 15;
        left: 12px;
        right: 12px;
        bottom: 8px;
        bottom: calc(8px + env(safe-area-inset-bottom) + var(--checkout-banner-space, 0px));
        inset: auto 12px calc(8px + env(safe-area-inset-bottom) + var(--checkout-banner-space, 0px)) 12px;
        transition-property: color, background-color;
        width: calc(100% - 24px);
        height: 52px;
        margin: 0;
        color: white;
        font-size: 16px;
        box-shadow: 0 2px 12px rgba(62, 20, 34, .25);
        transform: none;
    }
    .wp-order .wp-order-field input, .wp-order .wp-order-field select,
    .wp-order .product_qty_cart .qty input, .wp-order #order-note, .wp-order .wp-order-promo input {
        font-size: 16px !important;
        min-height: 44px;
    }
    .wp-order .wp-order-delivery-pills label span,
    .wp-order .wp-order-choice, .wp-order .wp-order-check label,
    .wp-order .wp-order-breadcrumb, .wp-order .wp-marketing-consent,
    .wp-order .wp-order-contact-header .wp-order-login-prompt a {
        min-height: 44px;
        min-width: 44px;
        align-items: center;
    }
    .wp-order .wp-order-contact-header .wp-order-login-prompt a,
    .wp-order .wp-marketing-consent a {
        display: inline-flex;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
    }
    .wp-order .wp-order-cart-item__name a { display: inline-flex; min-height: 44px; min-width: 44px; align-items: center; }
    .wp-order .delete_item_from_cart { min-width: 44px; min-height: 44px; }
    .wp-order .wp-order-cart-item__bottom { flex-wrap: wrap; }
    .wp-order .product_qty_cart .qty {
        grid-template-columns: 44px 44px 44px;
        width: 134px;
        height: 46px;
    }
    .wp-order .product_qty_cart .qty input,
    .wp-order .product_qty_cart .qty .qtybtn { width: 44px; height: 44px; }
    .wp-order .search_result { max-height: min(36vh, 240px); overflow-y: auto; }
    .wp-order .search_result > span {
        box-sizing: border-box;
        min-height: 44px;
        padding: 10px 12px;
        line-height: 24px;
        cursor: pointer;
    }
    .wp-order .city_search > [hidden] { display: none; }
    .wp-order #np-city-lookup:not([hidden]) {
        display: block;
        min-height: 44px;
        padding: 6px 10px;
        color: var(--wp-order-accent);
        background: #fff;
        border: 1px solid var(--wp-order-line);
        border-radius: 8px;
        font: inherit;
    }
}

@media (min-width: 761px) and (max-width: 767px) {
    .wp-order .wp-order-layout { grid-template-columns: minmax(0, 1fr); }
    .wp-order .wp-order-card > header .wp-order-login-prompt { flex-basis: auto; margin-left: 0; }
}
