/**
 * næmt Wholesale - front-end styles.
 *
 * Everything is driven by the custom properties below, so a theme or page
 * builder can restyle the forms without overriding individual rules. Where a
 * Breakdance form variable exists it is used first, so the forms match the
 * builder's own form styling automatically.
 */

.naemt-wholesale-box {
    --nw-field-radius: var(--bde-form-input-border-radius, 6px);
    --nw-field-border: var(--bde-form-input-border-color, #d5d9de);
    --nw-field-border-width: var(--bde-form-input-border-width, 1px);
    --nw-field-background: var(--bde-form-input-background-color, #fff);
    --nw-field-gap: 18px;
    --nw-label-weight: 600;
    --nw-accent: #2271b1;
    --nw-muted: #6b7280;

    max-width: var(--naemt-wholesale-max-width, 680px);
    margin: 0 0 var(--naemt-wholesale-gap, 32px);
}

.naemt-wholesale-box:last-child {
    margin-bottom: 0;
}

.naemt-wholesale-box h2 {
    margin: 0 0 18px;
}

.naemt-wholesale-intro {
    margin: 0 0 18px;
    color: var(--nw-muted);
}

.naemt-wholesale-intro p:last-child {
    margin-bottom: 0;
}

/* Fields --------------------------------------------------------------- */

.naemt-wholesale-form p,
.naemt-wholesale-login form p {
    margin: 0 0 var(--nw-field-gap);
}

.naemt-wholesale-form label,
.naemt-wholesale-login label {
    display: block;
    margin: 0 0 6px;
    font-weight: var(--nw-label-weight);
    line-height: 1.3;
}

.naemt-wholesale-form .required,
.naemt-wholesale-login .required {
    color: #b32d2e;
    text-decoration: none;
}

.naemt-wholesale-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.naemt-wholesale-form select,
.naemt-wholesale-form textarea,
.naemt-wholesale-login input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.naemt-wholesale-login select,
.naemt-wholesale-login textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    font: inherit;
    font-size: var(--bde-form-font-size, 16px);
    line-height: 1.4;
    padding: var(--bde-form-input-padding-top, 11px) var(--bde-form-input-padding-right, 14px) var(--bde-form-input-padding-bottom, 11px) var(--bde-form-input-padding-left, 14px);
    border-width: var(--nw-field-border-width);
    border-style: solid;
    border-color: var(--nw-field-border);
    border-radius: var(--nw-field-radius);
    background-color: var(--nw-field-background);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.naemt-wholesale-form textarea {
    min-height: 120px;
    resize: vertical;
}

.naemt-wholesale-form input:focus,
.naemt-wholesale-form select:focus,
.naemt-wholesale-form textarea:focus,
.naemt-wholesale-login input:focus {
    border-color: var(--nw-accent);
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.15);
    outline: none;
}

.naemt-wholesale-form ::placeholder,
.naemt-wholesale-login ::placeholder {
    color: var(--nw-muted);
    opacity: 0.7;
}

.naemt-wholesale-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}

.naemt-wholesale-checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    flex: 0 0 auto;
}

/* Remember me sits inline with its checkbox. */
.naemt-wholesale-login .login-remember label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}

.naemt-wholesale-login .login-remember input[type="checkbox"] {
    width: auto;
}

.naemt-wholesale-account-note {
    color: var(--nw-muted);
    font-size: 0.9em;
}

.naemt-wholesale-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.naemt-wholesale-login-links {
    margin: 14px 0 0;
    font-size: 0.9em;
}

.naemt-wholesale-login-links a {
    color: var(--nw-muted);
}

/* Buttons -------------------------------------------------------------- */

.naemt-wholesale-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.naemt-wholesale-button,
.naemt-wholesale-login .login-submit input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 46px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: var(--nw-field-radius);
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.05s ease;
}

.naemt-wholesale-button:active {
    transform: translateY(1px);
}

.naemt-wholesale-button-primary {
    color: #fff;
    border-color: #111827;
    background: #111827;
}

.naemt-wholesale-button-primary:hover,
.naemt-wholesale-button-primary:focus {
    color: #fff;
    border-color: #374151;
    background: #374151;
}

/* Notices -------------------------------------------------------------- */

.naemt-wholesale-notice {
    margin: 0 0 18px;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-left-width: 4px;
    border-radius: var(--nw-field-radius);
    background: #f6f7f7;
    line-height: 1.5;
}

.naemt-wholesale-notice p {
    margin: 0 0 8px;
}

.naemt-wholesale-notice p:last-child {
    margin-bottom: 0;
}

.naemt-wholesale-notice-action {
    margin: 14px 0 0;
}

.naemt-wholesale-notice-error {
    border-color: #f0c4c4;
    border-left-color: #b32d2e;
    background: #fdf2f2;
}

.naemt-wholesale-notice-success {
    border-color: #c3e6cd;
    border-left-color: #008a20;
    background: #f1faf3;
}

.naemt-wholesale-placeholder {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px dashed #9aa0a6;
    border-radius: var(--nw-field-radius);
    background: #f6f7f7;
    color: #3c434a;
}

.naemt-wholesale-placeholder p {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.5;
}

/* Products ------------------------------------------------------------- */

.naemt-wholesale-hidden-price {
    display: inline-block;
    font-size: 0.95em;
}

.naemt-wholesale-products .price del {
    opacity: .65;
}

.naemt-wholesale-products .price ins {
    text-decoration: none;
    font-weight: 700;
}
