/* v1.0.9 */
/* ── Next Frontier Custom Checkout ───────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ── Mini-cart popup ───────────────────────────────────────────────────────── */
#nf-minicart {
    position: fixed;
    top: 0; right: -360px;
    width: 340px;
    max-height: 100vh;
    height: auto;
    background: #fff;
    border-left: 1px solid #e5e7eb;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
    transition: right .32s cubic-bezier(.4,0,.2,1);
    box-shadow: -4px 0 24px rgba(0,0,0,.08);
}
#nf-minicart.nf-mc-open { right: 0; }
#nf-mc-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 99998;
}
#nf-mc-overlay.nf-mc-open { display: block; }
.nf-mc-head {
    padding: 16px 18px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nf-mc-head h4 {
    font-size: 13px;
    font-weight: 600;
    color: #204A77;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}
.nf-mc-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #9ca3af;
    line-height: 1;
    font-family: 'Poppins', sans-serif;
    padding: 0;
}
.nf-mc-items { overflow-y: auto; max-height: 60vh; }
.nf-mc-item {
    display: flex;
    gap: 10px;
    padding: 12px 18px;
    border-bottom: 1px solid #f3f4f6;
    align-items: center;
}
.nf-mc-img {
    width: 42px; height: 42px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    object-fit: contain;
    flex-shrink: 0;
    background: #fff;
}
.nf-mc-name {
    font-size: 11px;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.4;
    flex: 1;
    font-family: 'Poppins', sans-serif;
}
.nf-mc-meta {
    font-size: 10px;
    color: #6b7280;
    margin-top: 2px;
    font-family: 'Poppins', sans-serif;
}
.nf-mc-price {
    font-size: 12px;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
}
.nf-mc-foot {
    padding: 14px 18px;
    border-top: 1px solid #e5e7eb;
}
.nf-mc-total {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 12px;
    font-family: 'Poppins', sans-serif;
}
.nf-mc-total .lbl { color: #6b7280; }
.nf-mc-total .val { font-weight: 700; color: #1f2937; }
.nf-mc-btn {
    display: block;
    width: 100%;
    padding: 11px;
    background: #204A77;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    transition: background .15s;
}
.nf-mc-btn:hover { background: #183a5e; color: #fff; }
.nf-mc-empty {
    padding: 32px 18px;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
    font-family: 'Poppins', sans-serif;
}

/* ── Checkout page wrapper ─────────────────────────────────────────────────── */
.nf-checkout-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 32px 20px 80px;
    font-family: 'Poppins', sans-serif;
}
.nf-checkout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    align-items: start;
}
@media (max-width: 860px) {
    .nf-checkout-grid { grid-template-columns: 1fr; }
    .nf-co-right { order: -1; }
}

/* ── Left column ───────────────────────────────────────────────────────────── */
.nf-co-left {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    padding: 28px 32px;
}
.nf-co-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}
.nf-co-logo {
    width: 34px; height: 34px;
    background: #1a3a5c;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.nf-co-logo svg { width: 22px; height: 22px; }
.nf-co-brand-name {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    font-family: 'Poppins', sans-serif;
}
.nf-co-section { margin-bottom: 22px; }
.nf-co-section-title {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #6b7280;
    margin-bottom: 12px;
    font-family: 'Poppins', sans-serif;
}
.nf-co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nf-co-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.nf-co-field label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #6b7280;
    font-family: 'Poppins', sans-serif;
}
.nf-co-field input,
.nf-co-field select {
    padding: 9px 11px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    font-size: 12px !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 400 !important;
    color: #1f2937;
    background: #fff;
    transition: border-color .15s;
    line-height: 1.4;
    width: 100%;
    box-sizing: border-box;
}
.nf-co-field input:focus,
.nf-co-field select:focus {
    outline: none;
    border-color: #204A77;
    box-shadow: 0 0 0 3px rgba(32,74,119,.1);
}
.nf-co-field input.prefilled { background: #fff; border-color: #d1d5db; }

/* ── Payment options ───────────────────────────────────────────────────────── */
.nf-pay-opt {
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 13px 14px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.nf-pay-opt.selected { border-color: #204A77; background: #f0f6ff; }
.nf-pay-opt-hdr { display: flex; align-items: center; gap: 10px; }
.nf-pay-radio {
    width: 16px; height: 16px;
    border-radius: 50%;
    border: 2px solid #204A77;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.nf-pay-radio.off { border-color: #d1d5db; }
.nf-pay-radio-dot { width: 7px; height: 7px; border-radius: 50%; background: #204A77; }
.nf-pay-label {
    font-size: 12px;
    font-weight: 600;
    color: #1f2937;
    font-family: 'Poppins', sans-serif;
}
.nf-pay-sub {
    font-size: 10px;
    color: #6b7280;
    margin-top: 2px;
    font-family: 'Poppins', sans-serif;
}
.nf-pay-badges { margin-left: auto; display: flex; gap: 4px; }
.nf-pay-badge {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    font-family: 'Poppins', sans-serif;
    background: #fff;
}

/* ── Stripe card element ───────────────────────────────────────────────────── */
#nf-card-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #bfdbfe;
    display: grid;
    gap: 8px;
}
#nf-card-element {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    background: #fff;
}
#nf-card-element.StripeElement--focus { border-color: #204A77; box-shadow: 0 0 0 3px rgba(32,74,119,.1); }
#nf-card-errors {
    font-size: 11px;
    color: #dc2626;
    font-family: 'Poppins', sans-serif;
    margin-top: 4px;
}

/* ── ACH section ───────────────────────────────────────────────────────────── */
#nf-ach-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #bfdbfe;
    display: none;
}
#nf-ach-section p {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}
#nf-link-bank-btn {
    padding: 9px 18px;
    background: #fff;
    color: #204A77;
    border: 1.5px solid #204A77;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all .15s;
}
#nf-link-bank-btn:hover { background: #204A77; color: #fff; }
#nf-bank-linked {
    display: none;
    font-size: 11px;
    color: #059669;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    padding: 8px 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
}

/* ── FOB notice ────────────────────────────────────────────────────────────── */
.nf-fob-notice {
    background: #f0f6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 11px;
    color: #204A77;
    line-height: 1.65;
    margin-bottom: 16px;
    font-family: 'Poppins', sans-serif;
}

/* ── Error / submit messages ───────────────────────────────────────────────── */
#nf-co-msg {
    display: none;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 14px;
    font-family: 'Poppins', sans-serif;
}
#nf-co-msg.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
#nf-co-msg.info  { background: #f0f6ff; color: #204A77; border: 1px solid #bfdbfe; }

.nf-co-submit {
    width: 100%;
    padding: 14px;
    background: #204A77;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: background .15s;
    letter-spacing: .01em;
}
.nf-co-submit:hover { background: #183a5e; }
.nf-co-submit:disabled { background: #9ca3af; cursor: not-allowed; }
.nf-co-back {
    display: block;
    text-align: center;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 10px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

/* ── Right column — sticky order summary ───────────────────────────────────── */
.nf-co-right {
    position: sticky;
    top: 24px;
}
.nf-os-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    padding: 20px;
    font-family: 'Poppins', sans-serif;
}
.nf-os-title {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #6b7280;
    margin-bottom: 14px;
}
.nf-os-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid #e5e7eb;
}
.nf-os-thumb {
    width: 36px; height: 36px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
    object-fit: contain;
}
.nf-os-name {
    font-size: 11px;
    font-weight: 500;
    color: #1f2937;
    flex: 1;
    line-height: 1.4;
}
.nf-os-price {
    font-size: 11px;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
}
.nf-os-offer-tag {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 100px;
    margin-left: 5px;
}
.nf-os-totals { margin-top: 12px; }
.nf-os-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 7px;
}
.nf-os-row .l { color: #6b7280; }
.nf-os-row .v { font-weight: 500; color: #1f2937; }
.nf-os-row.fee .v { color: #d97706; font-weight: 600; }
.nf-os-row.total {
    border-top: 1px solid #e5e7eb;
    padding-top: 9px;
    margin-top: 4px;
    font-size: 15px;
    font-weight: 700;
}
.nf-os-row.total .v { color: #1f2937; }

/* ── Suggestions ───────────────────────────────────────────────────────────── */
.nf-sug-section { margin-top: 16px; }
.nf-sug-title {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #6b7280;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}
.nf-sug-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}
.nf-sug-item:last-child { border: none; }
.nf-sug-thumb {
    width: 44px; height: 44px;
    background: #fff;
    border-radius: 5px;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
    object-fit: contain;
}
.nf-sug-name { font-size: 13px; font-weight: 500; color: #1f2937; flex: 1; line-height: 1.3; }
.nf-sug-price { font-size: 12px; color: #6b7280; }
.nf-sug-btn {
    border: none;
    background: transparent;
    color: #204A77;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none !important;
    font-family: 'Poppins', sans-serif;
    padding: 0 4px;
    transition: color .15s;
}
.nf-sug-btn:hover { color: #183a5e; }

/* ── Status pages (thank you, offer submitted, counter offer) ──────────────── */
.nf-status-page {
    max-width: 500px;
    margin: 60px auto;
    text-align: center;
    padding: 0 20px;
    font-family: 'Poppins', sans-serif;
}
.nf-status-icon {
    width: 68px; height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    font-size: 30px;
}
.nf-status-icon.green { background: #f0fdf4; border: 1px solid #bbf7d0; color: #059669; }
.nf-status-icon.blue  { background: #f0f6ff; border: 1px solid #bfdbfe; color: #204A77; }
.nf-status-page h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}
.nf-status-page p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.75;
    margin-bottom: 24px;
}
.nf-status-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    text-align: left;
}
.nf-status-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 7px 0;
    border-bottom: 1px solid #f3f4f6;
}
.nf-status-row:last-child { border: none; }
.nf-status-row .l { color: #6b7280; }
.nf-status-row .v { font-weight: 600; color: #1f2937; }
.nf-status-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #204A77;
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    transition: background .15s;
}
.nf-status-btn:hover { background: #183a5e; color: #fff; }

/* ── Counter-offer page ────────────────────────────────────────────────────── */
.nf-counter-page {
    max-width: 560px;
    margin: 40px auto;
    padding: 0 16px;
    font-family: 'Poppins', sans-serif;
}
.nf-counter-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.nf-counter-header {
    background: #1a3a5c;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.nf-counter-header h2 { color: #fff; font-size: 14px; font-weight: 600; margin: 0; }
.nf-counter-body { padding: 24px; }
.nf-counter-greeting { font-size: 13px; color: #374151; line-height: 1.8; margin-bottom: 18px; }
.nf-counter-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    font-size: 11px;
}
.nf-counter-table th {
    text-align: left;
    padding: 7px 10px;
    background: #fff;
    color: #6b7280;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    border-bottom: 1px solid #e5e7eb;
}
.nf-counter-table td { padding: 10px 10px; border-bottom: 1px solid #f3f4f6; color: #1f2937; }
.nf-counter-total-box {
    background: #f0f6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.nf-counter-total-box .lbl { font-size: 12px; color: #204A77; font-weight: 600; }
.nf-counter-total-box .note { font-size: 10px; color: #5894D5; margin-top: 2px; }
.nf-counter-total-box .price { font-size: 22px; font-weight: 700; color: #204A77; }
.nf-counter-accept {
    width: 100%;
    padding: 13px;
    background: #204A77;
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: background .15s;
}
.nf-counter-accept:hover { background: #183a5e; }

/* ── Admin counter-offer meta box ──────────────────────────────────────────── */
.nf-admin-counter-form { padding: 10px 0; }
.nf-admin-counter-form label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
}
.nf-admin-counter-form input[type=number] {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    margin-right: 8px;
    width: 140px;
}

/* ── PDF invoice (print styles) ────────────────────────────────────────────── */
@media print {
    .nf-invoice-print body { font-family: 'Poppins', sans-serif; }
    .nf-invoice-wrap { max-width: 700px; margin: 0 auto; padding: 40px; }
}

/* ── Suppress WooCommerce native mini-cart buttons ──────────────────────── */
/* Only hides the button section of WC's own mini-cart widget, not our panel */
.woocommerce-mini-cart__buttons { display: none !important; }
.proceed-with-quote, a.button.wc-quote-button { display: none !important; }
#nf-minicart .nf-mc-btn { display: block !important; opacity: 1 !important; }

/* ── Minimum order warning (single style source) ────────────────────────── */
.nf-mc-min-warn-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 7px;
    padding: 9px 12px;
    margin-bottom: 10px;
    text-align: center;
    font-size: 11px;
    font-family: 'Poppins', sans-serif;
    color: #991b1b;
    font-weight: 500;
}
.nf-mc-min-warn-box strong { color: #991b1b; font-weight: 700; }
