
.nsfc-wrapper {
    background: #fdfdfd;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-top: 20px;
    max-width: 450px;
}
@media (max-width: 480px) {
    .nsfc-wrapper {
        padding: 15px;
    }
}

.nsfc-field-row {
    display: flex;
    gap: 15px;
}
.nsfc-field-group {
    margin-bottom: 15px;
}
.nsfc-field-row .nsfc-field-group {
    flex: 1;
    min-width: 0;
}

@media (max-width: 600px) {
    .nsfc-field-row {
        flex-direction: column;
        gap: 0;
    }
}

.nsfc-field-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.nsfc-field-group input, 
.nsfc-field-group select,
.nsfc-field-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.nsfc-input-wrapper {
    position: relative;
    width: 100%;
}

.nsfc-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 5;
    transition: color 0.2s;
}

body .nsfc-wrapper .nsfc-input-wrapper input,
body .nsfc-wrapper .nsfc-input-wrapper select {
    padding-left: 44px !important;
}

body .nsfc-wrapper .nsfc-input-wrapper textarea {
    padding-left: 44px !important;
    min-height: 100px;
}

.nsfc-input-wrapper:focus-within .nsfc-input-icon {
    color: var(--nsfc-primary, #2271b1);
}

.nsfc-input-wrapper input:focus,
.nsfc-input-wrapper select:focus,
.nsfc-input-wrapper textarea:focus {
    border-color: var(--nsfc-primary, #2271b1) !important;
    box-shadow: 0 0 0 2px rgba(34,113,177,0.1) !important;
    outline: none !important;
}

.nsfc-error {
    color: red;
    font-size: 14px;
}

.required { color: red; }

#nsfc-summary {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.nsfc-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.nsfc-row.total {
    border-top: 1px solid #ddd;
    padding-top: 5px;
    font-weight: bold;
    font-size: 1.1em;
}

#nsfc-submit-btn {
    width: 100%;
    padding: 12px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

#nsfc-submit-btn:hover {
    background: #333;
}

#nsfc-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

#nsfc-message {
    margin-top: 10px;
    text-align: center;
    font-weight: bold;
}

/* New Styles */

/* Radio Buttons Fix */
.nsfc-radio-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: normal;
    cursor: pointer;
}
.nsfc-field-group input[type="radio"] {
    width: auto;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}

/* Full Width Modifier */
.nsfc-wrapper.nsfc-full-width {
    max-width: 100%;
}

/* Order Summary Table */
#nsfc-summary table {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
    border: none !important;
    border-style: none !important;
}
#nsfc-summary th, #nsfc-summary td {
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-style: none none solid none !important;
    text-align: start;
    background: transparent !important;
    word-break: break-word;
    overflow-wrap: anywhere;
}
#nsfc-summary tr:last-child td {
    border-bottom: none !important;
    border-style: none !important;
}

@media (max-width: 480px) {
    #nsfc-summary th, #nsfc-summary td {
        font-size: 13px;
        padding: 8px 4px;
    }
}

/* RTL Support */
.nsfc-rtl,
[dir="rtl"] .nsfc-wrapper,
.rtl .nsfc-wrapper {
    direction: rtl;
    text-align: right;
}
.nsfc-rtl .nsfc-field-group label,
[dir="rtl"] .nsfc-wrapper .nsfc-field-group label,
.rtl .nsfc-wrapper .nsfc-field-group label {
    text-align: right;
}
.nsfc-rtl .nsfc-field-group input[type="radio"],
[dir="rtl"] .nsfc-wrapper .nsfc-field-group input[type="radio"],
.rtl .nsfc-wrapper .nsfc-field-group input[type="radio"] {
    margin-right: 0;
    margin-left: 8px;
}
.nsfc-rtl #nsfc-summary th, 
.nsfc-rtl #nsfc-summary td,
[dir="rtl"] .nsfc-wrapper #nsfc-summary th,
[dir="rtl"] .nsfc-wrapper #nsfc-summary td,
.rtl .nsfc-wrapper #nsfc-summary th,
.rtl .nsfc-wrapper #nsfc-summary td {
    text-align: right !important;
}

.nsfc-text-center { text-align: center !important; }
.nsfc-text-end { text-align: end !important; }

.nsfc-rtl .nsfc-input-icon,
[dir="rtl"] .nsfc-wrapper .nsfc-input-icon,
.rtl .nsfc-wrapper .nsfc-input-icon {
    left: auto;
    right: 12px;
}

.nsfc-rtl .nsfc-mode-option svg,
[dir="rtl"] .nsfc-wrapper .nsfc-mode-option svg,
.rtl .nsfc-wrapper .nsfc-mode-option svg {
    margin-right: 0 !important;
    margin-left: 8px !important;
}

.nsfc-rtl .nsfc-input-wrapper input,
.nsfc-rtl .nsfc-input-wrapper select,
.nsfc-rtl .nsfc-input-wrapper textarea,
[dir="rtl"] .nsfc-wrapper .nsfc-input-wrapper input,
[dir="rtl"] .nsfc-wrapper .nsfc-input-wrapper select,
[dir="rtl"] .nsfc-wrapper .nsfc-input-wrapper textarea,
.rtl .nsfc-wrapper .nsfc-input-wrapper input,
.rtl .nsfc-wrapper .nsfc-input-wrapper select,
.rtl .nsfc-wrapper .nsfc-input-wrapper textarea {
    padding-left: 12px !important;
    padding-right: 44px !important;
}

/* NS Fast Checkout - Grid Buy Button */
.nsfc-grid-buy-button {
    margin-top: 10px;
    width: 100%;
    display: block;
    text-align: center;
}

/* Coupon Styles */
.nsfc-coupon-input-group {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}
.nsfc-coupon-input-group input {
    flex: 1;
}
#nsfc-apply-coupon {
    padding: 0 15px;
    background: #444;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
#nsfc-coupon-msg {
    font-size: 12px;
    margin-top: 5px;
    min-height: 18px;
}
.nsfc-coupon-success { color: green; }
.nsfc-coupon-error { color: red; }

#nsfc-discount-price {
    color: #e44d26;
    font-weight: bold;
}


/* ── Upsell Button Animations ── */
.nsfc-upsell-btn {
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.nsfc-upsell-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

@keyframes nsfc-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}
@keyframes nsfc-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes nsfc-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

.nsfc-upsell-anim-pulse  { animation: nsfc-pulse 2s ease-in-out infinite; }
.nsfc-upsell-anim-bounce { animation: nsfc-bounce 1.5s ease-in-out infinite; }
.nsfc-upsell-anim-shake  { animation: nsfc-shake 3s ease-in-out infinite; }

/* ── Upsell Fixed Bottom Bar ── */
.nsfc-upsell-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
    padding: 12px 20px;
    transition: transform 0.4s ease;
}
.nsfc-upsell-bar-inner {
    max-width: 600px;
    margin: 0 auto;
}
.nsfc-upsell-bar .nsfc-upsell-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ── Highlight flash when upsell scrolls to form ── */
@keyframes nsfc-highlight-flash {
    0%   { box-shadow: 0 0 0 0 rgba(230,57,70,0.5); }
    50%  { box-shadow: 0 0 0 12px rgba(230,57,70,0.15); }
    100% { box-shadow: 0 0 0 0 rgba(230,57,70,0); }
}
.nsfc-highlight {
    animation: nsfc-highlight-flash 0.6s ease-out 2;
}

/* ── WhatsApp Button ── */
#nsfc-whatsapp-btn {
    transition: background 0.3s, transform 0.2s;
}
#nsfc-whatsapp-btn:hover {
    background: #128C7E !important;
    transform: translateY(-1px);
}

/* ── Company Selector ── */
.nsfc-company-selector .nsfc-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.nsfc-company-selector .nsfc-mode-option {
    padding: 8px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.nsfc-company-selector .nsfc-mode-option:has(input:checked) {
    border-color: #2271b1;
    background: rgba(34,113,177,0.05);
}

.nsfc-mode-option svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.nsfc-mode-option:has(input:checked) svg {
    color: #2271b1;
    opacity: 1;
}

/* Quantity Selector - Seamless Pill Design */
.nsfc-qty-selector {
    display: flex;
    align-items: center;
    justify-content: space-between !important;
    background: #f1f5f9 !important;
    border-radius: 30px !important;
    padding: 4px 8px !important;
    border: none !important;
    width: 100% !important;
    max-width: 150px !important;
    height: 46px !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05) !important;
    position: relative;
    overflow: hidden !important;
}

.nsfc-qty-selector button {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #475569 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 2;
    margin: 0 !important;
    box-shadow: none !important;
}

.nsfc-qty-selector button:hover {
    background: #ffffff !important;
    color: var(--nsfc-primary) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    transform: scale(1.05);
}

.nsfc-qty-selector input {
    width: 60px !important;
    text-align: center !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    font-weight: 800 !important;
    height: 100% !important;
    font-size: 18px !important;
    color: #1e293b !important;
    background: transparent !important;
    pointer-events: none !important;
    box-shadow: none !important;
    flex: none !important;
}

.nsfc-qty-selector input::-webkit-outer-spin-button,
.nsfc-qty-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.nsfc-qty-selector input[type=number] {
    -moz-appearance: textfield;
}

.nsfc-quantity-group {
    width: 100%;
    flex: 1 !important;
}
@media (min-width: 600px) {
    .nsfc-quantity-group {
        width: 150px;
        flex: 0 0 150px !important;
    }
}

/* No Price Optimization */
.nsfc-no-price .nsfc-column-left {
    flex: 0 0 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.nsfc-no-price .nsfc-field-row {
    justify-content: center;
    width: 100%;
}
.nsfc-no-price .nsfc-whatsapp-button {
    margin: 20px auto 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
}
.nsfc-no-price #nsfc-submit-btn,
.nsfc-no-price #nsfc-total-row,
.nsfc-no-price #nsfc-shipping-row,
.nsfc-no-price #nsfc-discount-row {
    display: none !important;
}
.nsfc-grid-whatsapp-button {
    background-color: #25D366 !important;
    color: #fff !important;
    border: none !important;
}
