/**
 * Quick Order form styles.
 *
 * Matched to the InHouse (WoodMart) storefront: royal-blue primary action,
 * small radius, clean inputs. The accent inherits WoodMart's own
 * --wd-primary-color when present, and falls back to the brand blue elsewhere.
 */
.ih-quick-order {
    --ih-qo-accent: var(--wd-primary-color, #234aa5);
    --ih-qo-accent-hover: var(--btn-accented-bgcolor-hover, #1c3c85);
    --ih-qo-radius: 5px;
    --ih-qo-border: rgba(0, 0, 0, 0.14);
    --ih-qo-text: #333;
    margin: 15px 0 0;
    clear: both;
}

/* Toggle -- outlined blue, fills on hover. */
.ih-quick-order .ih-quick-order__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--ih-qo-accent);
    background: transparent;
    border: 2px solid var(--ih-qo-accent);
    border-radius: var(--ih-qo-radius);
    cursor: pointer;
    text-transform: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ih-quick-order .ih-quick-order__toggle::before {
    content: "\260E"; /* phone glyph */
    font-size: 1.05em;
    line-height: 1;
}

.ih-quick-order .ih-quick-order__toggle:hover,
.ih-quick-order .ih-quick-order__toggle:focus {
    background: var(--ih-qo-accent);
    color: #fff;
}

/* Panel -- clean white card. */
.ih-quick-order__panel {
    margin-top: 14px;
    padding: 20px;
    max-width: 440px;
    background: #fff;
    border: 1px solid var(--ih-qo-border);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.ih-quick-order__intro {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ih-qo-text);
}

.ih-quick-order__field {
    margin-bottom: 12px;
}

.ih-quick-order__phone {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.3;
    color: var(--ih-qo-text);
    background: #fff;
    border: 1px solid var(--ih-qo-border);
    border-radius: var(--ih-qo-radius);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ih-quick-order__phone:focus {
    outline: none;
    border-color: var(--ih-qo-accent);
    box-shadow: 0 0 0 3px rgba(35, 74, 165, 0.15);
}

.ih-quick-order__consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.5;
    color: #555;
    cursor: pointer;
}

.ih-quick-order__consent-input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    accent-color: var(--ih-qo-accent);
}

/* Submit -- solid blue primary action. */
.ih-quick-order .ih-quick-order__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 13px 24px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    background: var(--ih-qo-accent);
    border: 2px solid var(--ih-qo-accent);
    border-radius: var(--ih-qo-radius);
    cursor: pointer;
    text-transform: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.ih-quick-order .ih-quick-order__submit:hover,
.ih-quick-order .ih-quick-order__submit:focus {
    color: #fff;
    background: var(--ih-qo-accent-hover);
    border-color: var(--ih-qo-accent-hover);
}

.ih-quick-order .ih-quick-order__submit[disabled] {
    opacity: 0.65;
    cursor: default;
}

.ih-quick-order__message {
    margin: 14px 0 0;
    padding: 11px 14px;
    border-radius: var(--ih-qo-radius);
    font-size: 14px;
    line-height: 1.45;
}

.ih-quick-order__message.is-success {
    background: #e7f5ea;
    color: #1e4620;
    border: 1px solid #b7dfc0;
}

.ih-quick-order__message.is-error {
    background: #fdecea;
    color: #611a15;
    border: 1px solid #f3c1bc;
}
