/* ==========================================================================
 * Order Placed By — Checkout field styles
 *
 * Block checkout: mirrors WooCommerce's native styling for consistency
 * with the purchase order number block.
 * ========================================================================== */

/* ------------------------------------------------------------------
 * Block checkout
 * ------------------------------------------------------------------ */

.ims-order-placed-by-block {
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}

.ims-order-placed-by-block > .wc-block-components-checkout-step__heading {
    margin-bottom: 16px;
}

.ims-opb-field-section {
    margin-top: 4px;
}

.ims-opb-field-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: #1e1e1e;
}

.ims-opb-required {
    color: #cc1818;
    margin-left: 2px;
}

.ims-opb-input-wrap {
    margin-bottom: 12px;
}

.ims-opb-field-section .ims-opb-validation-error {
    margin-top: 4px;
}

.ims-opb-input-wrap input[type="text"],
.ims-opb-input-wrap input[type="tel"] {
    width: 100%;
    padding: 0.75em;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 0.875rem;
    font-family: inherit;
    line-height: 1.5;
    box-sizing: border-box;
    background: #fff;
    color: #1e1e1e;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ims-opb-input-wrap input[type="text"]:focus,
.ims-opb-input-wrap input[type="tel"]:focus {
    border-color: #949494;
    box-shadow: 0 0 0 1px #949494;
    outline: none;
}

.ims-opb-input-wrap input[type="text"]::placeholder,
.ims-opb-input-wrap input[type="tel"]::placeholder {
    color: #949494;
}

/* intl-tel-input wraps the phone <input> in a `.iti` element; size it to
   match the surrounding text inputs and keep the country chip flush with
   the input border. The library already sets `display:block; width:100%`
   in its own glue (`nscr-phone-input`), but the explicit reset here makes
   the spacing match the name field above it regardless of load order. */
.ims-opb-input-wrap--phone .iti {
    display: block;
    width: 100%;
}

/* Validation error — mirrors WooCommerce .wc-block-components-validation-error */
.ims-opb-validation-error p {
    color: #cc1818;
    font-size: 0.75rem;
    margin: 0.5em 0 0;
    line-height: 1.4;
}

/* ------------------------------------------------------------------
 * Thank-you page / order details
 * ------------------------------------------------------------------ */

.ims-opb-order-detail {
    margin: 1.5em 0;
}

.ims-opb-order-detail h2 {
    font-size: 1.25rem;
    margin-bottom: 0.25em;
}
