/* Quick COD order form in the product buy box (partials/quick_order.php). */
.shop-qo {
    margin: var(--space-4, 1rem) 0;
    padding: var(--space-4, 1rem);
    border: 2px solid var(--shop-primary, #b8336a);
    border-radius: 14px;
    background: color-mix(in srgb, var(--shop-primary, #b8336a) 4%, var(--shop-bg, #fff));
}
.shop-qo-heading { margin: 0 0 .25rem; font-size: 1.15rem; line-height: 1.3; }
.shop-qo-sub { margin: 0 0 .75rem; font-size: .92rem; opacity: .85; }
.shop-qo .shop-field { margin-bottom: .7rem; }
.shop-qo .field-help { margin: .25rem 0 0; font-size: .82rem; opacity: .8; }
.shop-qo-packs { border: 0; margin: 0 0 .8rem; padding: 0; display: grid; gap: .5rem; }
.shop-qo-label { font-weight: 600; margin-bottom: .35rem; padding: 0; }
.shop-qo-pack {
    display: flex; align-items: center; gap: .6rem;
    padding: .65rem .8rem; border: 1.5px solid rgba(0,0,0,.15); border-radius: 10px;
    background: var(--shop-bg, #fff); cursor: pointer; min-height: 48px;
}
.shop-qo-pack:has(input:checked) { border-color: var(--shop-primary, #b8336a); box-shadow: 0 0 0 2px color-mix(in srgb, var(--shop-primary, #b8336a) 25%, transparent); }
.shop-qo-pack input { accent-color: var(--shop-primary, #b8336a); width: 1.1rem; height: 1.1rem; flex: none; }
.shop-qo-pack-name { flex: 1; font-weight: 600; }
.shop-qo-pack-price { text-align: end; display: grid; }
.shop-qo-best { display: inline-block; margin-inline-start: .4rem; padding: .1rem .45rem; border-radius: 999px; font-size: .72rem; font-weight: 700;
    background: var(--shop-primary, #b8336a); color: #fff; vertical-align: middle; }
.shop-qo-save { font-size: .78rem; color: #067647; font-weight: 600; }
.shop-qo-total { margin: .4rem 0 .6rem; font-size: 1.05rem; }
.shop-qo-button { width: 100%; min-height: 54px; font-size: 1.05rem; font-weight: 700; letter-spacing: .01em; }
.shop-qo-cod { margin: .5rem 0 0; text-align: center; font-size: .85rem; color: #067647; font-weight: 600; }
.shop-qo [hidden], .shop-qo-pd[hidden] { display: none !important; }

/* The town picker (checkout-locations.js), as on the checkout page. */
.shop-flow select[data-location-level][hidden] { display: none; }
.shop-combo { position: relative; }
.shop-combo-input.shop-input {
    padding-inline-end: calc(var(--space-3) * 3);
    text-overflow: ellipsis;
}
.shop-combo::after {
    content: "";
    position: absolute;
    inset-inline-end: var(--space-4);
    top: calc(var(--tap-target) / 2 - 0.3rem);
    width: 0.5rem;
    height: 0.5rem;
    border-inline-end: 2px solid var(--flow-ink-soft, #667085);
    border-bottom: 2px solid var(--flow-ink-soft, #667085);
    transform: rotate(45deg);
    pointer-events: none;
}
.shop-combo-list {
    position: absolute;
    z-index: 30;
    inset-inline: 0;
    top: calc(100% + var(--space-1));
    margin: 0;
    padding: var(--space-1);
    list-style: none;
    max-height: min(20rem, 55vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--shop-bg);
    border: 1px solid color-mix(in srgb, var(--shop-text) 22%, transparent);
    border-radius: var(--shop-radius);
    box-shadow: var(--flow-lift);
}
.shop-combo-list[hidden] { display: none; }
.shop-combo-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    min-height: var(--tap-target);
    padding: var(--space-2) var(--space-3);
    border-radius: calc(var(--shop-radius) * 0.6);
    cursor: pointer;
    font-size: 16px;
    color: var(--shop-text);
    overflow-wrap: anywhere;
}
.shop-combo-option:hover,
.shop-combo-option.is-active {
    background: color-mix(in srgb, var(--shop-primary) 10%, var(--shop-bg));
}
.shop-combo-option[aria-selected="true"] { font-weight: 600; }
.shop-combo-context {
    flex: none;
    font-size: var(--text-sm);
    color: var(--flow-ink-soft, #667085);
    font-weight: 400;
}
.shop-combo-hint {
    margin: var(--space-1) 0 0;
    font-size: var(--text-sm);
    color: var(--flow-ink-soft, #667085);
}
.shop-combo-hint:empty { margin: 0; }
.shop-combo-hint.is-error { color: #b42318; font-weight: 600; }
.shop-combo-input[aria-invalid="true"] { border-color: #b42318; box-shadow: 0 0 0 3px rgba(180,35,24,.15); }

/* 2-pack nudge (owner, 15 Nov 2026): the best-value pack stands out. */
.shop-qo-pack.is-best { border-color: var(--shop-primary, #b8336a); background: color-mix(in srgb, var(--shop-primary, #b8336a) 7%, #fff); }
.shop-qo-each { font-size: .76rem; color: #555; }
.shop-qo-consent { display: flex; gap: .5rem; align-items: flex-start; font-size: .85rem; margin: .2rem 0 .7rem; cursor: pointer; }
.shop-qo-consent input { accent-color: var(--shop-primary, #b8336a); width: 1.05rem; height: 1.05rem; margin-top: .1rem; flex: none; }
.shop-conf-done { padding: .9rem 1rem; border-radius: 12px; background: #ecfdf3; border: 2px solid #12b76a; color: #054f31; display: grid; gap: .25rem; }
.shop-conf-done strong { font-size: 1.05rem; }
