/* Netseg Idealpesca Orders — Frontend */

/* Reset/Container */
.nio-container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Botões */
.nio-btn {
    background: #0d2235 !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 22px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    transition: all .2s ease;
    text-decoration: none !important;
    display: inline-block;
}
.nio-btn:hover { background: #1a3a5c !important; transform: translateY(-1px); }
.nio-btn--quote {
    background: #f08c00 !important;
    color: #fff !important;
}
.nio-btn--quote:hover { background: #cc7700 !important; }
.nio-btn--large {
    padding: 12px 30px !important;
    font-size: 15px !important;
}

/* Single product */
.nio-single-product-form {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 18px;
    margin: 16px 0;
}
.nio-qty-wrap { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.nio-qty {
    width: 70px;
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}
.nio-help {
    color: #6b7280;
    font-size: 12px;
    margin-top: 10px;
    line-height: 1.5;
}
.nio-price-quote {
    color: #f08c00;
    font-style: italic;
    font-size: 16px;
}

/* Cart page */
.nio-cart-page { margin: 20px 0; }
.nio-cart-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}
.nio-cart-table th, .nio-cart-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f3f4f6;
    text-align: left;
}
.nio-cart-table th { background: #f9fafb; color: #0d2235; font-weight: 600; font-size: 12px; text-transform: uppercase; }
.nio-cart-table .nio-thumb { width: 60px; }
.nio-cart-table .nio-thumb img { width: 50px; height: 50px; object-fit: cover; border-radius: 4px; }
.nio-cart-table .nio-qty-update {
    width: 70px;
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}
.nio-cart-table .nio-remove {
    background: transparent;
    border: none;
    font-size: 20px;
    color: #ef4444;
    cursor: pointer;
}

/* Checkout */
.nio-checkout-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    margin-top: 20px;
}
.nio-fieldset {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 18px 22px;
    margin-bottom: 18px;
}
.nio-fieldset legend {
    padding: 0 10px 2px;
    font-weight: 600;
    color: #0d2235;
    border-bottom: 3px solid #f08c00;
    display: inline-block;
    line-height: 1.4;
}
.nio-form input[type="text"],
.nio-form input[type="email"],
.nio-form input[type="tel"],
.nio-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 4px;
}
.nio-form input:focus, .nio-form textarea:focus {
    outline: 2px solid rgba(13, 34, 53, .15);
    border-color: #0d2235;
}
.nio-form label {
    font-size: 13px;
    font-weight: 600;
    color: #0d2235;
}
.nio-row-2 { display: flex; gap: 12px; }
.nio-row-2 span { flex: 1; }
.nio-checkbox label { display: flex; align-items: flex-start; gap: 8px; font-weight: normal; cursor: pointer; }
.nio-consent { background: #fffbeb; border-color: #fbbf24; }

.nio-checkout-sidebar {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 18px 22px;
    height: fit-content;
    position: sticky;
    top: 30px;
}
.nio-summary-table { width: 100%; font-size: 13px; }
.nio-summary-table td, .nio-summary-table th { padding: 6px 0; border-bottom: 1px solid #f3f4f6; }
.nio-summary-total th { border-top: 2px solid #0d2235; padding-top: 10px; font-size: 15px; }
.nio-summary-note { font-size: 12px; color: #6b7280; margin-top: 12px; }

.nio-submit { margin-top: 18px; }
#nio-submit-btn {
    background: #f08c00 !important;
    border: none !important;
    color: #fff !important;
    padding: 14px 30px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    width: 100%;
    cursor: pointer;
}
#nio-submit-btn:hover { background: #cc7700 !important; }

#nio-form-msg {
    margin-top: 14px;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 4px;
    display: none;
}
#nio-form-msg.success { background: #dcfce7; color: #064e3b; border-left: 3px solid #10b981; display: block; }
#nio-form-msg.error { background: #fee2e2; color: #991b1b; border-left: 3px solid #ef4444; display: block; }

/* Thank you */
.nio-thankyou { text-align: center; padding: 40px 20px; }
.nio-thankyou h1 { color: #10b981; font-size: 32px; }
.nio-thankyou-lead { font-size: 16px; margin: 20px 0; color: #6b7280; }
.nio-thankyou-card {
    text-align: left;
    background: #f0fdf4;
    border: 1px solid #6ee7b7;
    border-radius: 8px;
    padding: 22px 28px;
    margin: 30px auto;
    max-width: 600px;
}
.nio-thankyou-card ol { line-height: 1.8; }

/* Customer order view */
.nio-customer-order h1 { color: #0d2235; }
.nio-status-badge {
    display: inline-block;
    padding: 4px 12px;
    color: #fff;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.nio-mb-info {
    background: #fffbeb;
    border: 2px solid #f59e0b;
    border-radius: 8px;
    padding: 18px 22px;
    margin: 20px 0;
}
.nio-mb-table th { text-align: left; padding: 6px 0; }
.nio-mb-table td { text-align: right; padding: 6px 0; }
.nio-mb-table code {
    background: #fff;
    padding: 3px 9px;
    border-radius: 3px;
    font-size: 15px;
    font-weight: 600;
}

/* Empty */
.nio-empty {
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    color: #6b7280;
}

@media (max-width: 768px) {
    .nio-checkout-grid { grid-template-columns: 1fr; }
    .nio-row-2 { flex-direction: column; }
    .nio-checkout-sidebar { position: static; }
}

/* Sidebar summary — ver tudo popup */
.nio-summary-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    padding: 0;
    margin-top: 10px;
    font-size: 12px;
    color: #f08c00;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.nio-summary-toggle:hover { color: #cc7700; }

/* Modal overlay */
.nio-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(13, 34, 53, .55);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.nio-modal-overlay.open { display: flex; }

.nio-modal {
    background: #fff;
    border-radius: 10px;
    max-width: 560px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    animation: nio-modal-in .18s ease;
}
@keyframes nio-modal-in {
    from { transform: scale(.96); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
.nio-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 14px;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}
.nio-modal__header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0d2235;
}
.nio-modal__close {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
}
.nio-modal__close:hover { background: #f3f4f6; color: #0d2235; }
.nio-modal__body { padding: 18px 22px 22px; }

.nio-modal-items {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.nio-modal-items th {
    background: #f9fafb;
    padding: 8px 12px;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
}
.nio-modal-items td {
    padding: 10px 12px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: top;
}
.nio-modal-items .num { text-align: right; }
.nio-modal-items .nio-sku { color: #9ca3af; font-size: 11px; margin-top: 2px; }
.nio-modal-items tfoot td {
    font-weight: 700;
    font-size: 14px;
    border-top: 2px solid #0d2235;
    border-bottom: none;
    padding-top: 12px;
}
.nio-modal-note {
    margin-top: 14px;
    background: #fffbeb;
    border-left: 3px solid #f08c00;
    padding: 10px 14px;
    font-size: 12px;
    color: #92400e;
    border-radius: 0 4px 4px 0;
}

/* ── Variações de produto (v1.0.9) ──────────────────────────── */
.nio-variations {
    margin-bottom: 14px;
}

.nio-variation-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.nio-variation-row label {
    min-width: 90px;
    font-weight: 600;
    font-size: .9em;
    color: #333;
    flex-shrink: 0;
}

.nio-attr-select {
    flex: 1;
    min-width: 0;
    padding: 6px 10px;
    border: 1px solid #c8d4dc;
    border-radius: 5px;
    font-size: .9em;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s;
}

.nio-attr-select:focus {
    outline: none;
    border-color: #0a7abf;
    box-shadow: 0 0 0 2px rgba(10,122,191,.15);
}

.nio-variation-msg {
    margin: 4px 0 8px;
    font-size: .82em;
    color: #c00;
}

/* Label da variação na tabela do carrinho */
.nio-variation-badge {
    display: inline-block;
    font-size: .78em;
    color: #555;
    background: #f0f4f7;
    border: 1px solid #d8e2e8;
    border-radius: 4px;
    padding: 1px 7px;
    margin-top: 3px;
    line-height: 1.5;
}
