/* Product Builder Frontend Styles - Updated 2026-01-13 */
:root {
    --pb-default: #1fc066;
    --pb-grey: #dedede;
    --pb-dark-grey: #a7a7a7;
}

/* Product Builder Styles */
.nmnwcpo-product-builder-wrapper {
    margin: 50px 0;
}

.nmnwcpo-product-builder-group {
    margin-bottom: 14px;
}

.nmnwcpo-product-builder-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin: 30px 0 15px;
    font-size: 22px;
    font-weight: normal;
}

.nmnwcpo-product-builder-description {
    margin: -10px 0 15px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.nmnwcpo-product-builder-description p {
    margin: 0 0 10px 0;
}

.nmnwcpo-product-builder-description p:last-child {
    margin-bottom: 0;
}

.nmnwcpo-selection-type-hint {
    font-size: 14px; /* Smaller than the title */
    font-weight: normal; /* Less emphasis */
    color: #777; /* Grey color for subtle appearance */
}

/* Radio and Checkbox Styles */
.nmnwcpo-product-builder-radio-label,
.nmnwcpo-product-builder-checkbox-label {
    position: relative;
    display: block;
    margin: 0 0 10px 0;
    color: #000;
}

/* Input and Content Areas */
.nmnwcpo-content-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 15px 8px 0;
    cursor: pointer;
}

/* Cursor pointer only on product name elements with data-modal */
.nmnwcpo-product-builder-radio-name[data-modal],
.nmnwcpo-product-builder-checkbox-name[data-modal] {
    cursor: pointer;
    display: inline-block; /* Ensure clickable area matches text width */
}

.nmnwcpo-input-area {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 15px;
    cursor: pointer;
    position: relative;
}

/* Responsive adjustments for mobile screens */
@media (max-width: 768px) {
    .nmnwcpo-modal-area {
        flex: 0 0 75%; /* More space for inputs on mobile */
    }
    
    .nmnwcpo-input-area {
        flex: 0 0 25%;
    }
}

/* Additional adjustments for very small screens */
@media (max-width: 480px) {
    .nmnwcpo-modal-area {
        flex: 0 0 70%;
    }
    
    .nmnwcpo-input-area {
        flex: 0 0 30%;
    }
}

/* Hover effects - removed to only show underline on product name hover */

/* Radio and Checkbox Container Styles */
.nmnwcpo-input-area .nmnwcpo-radio-container,
.nmnwcpo-input-area .nmnwcpo-checkbox-container {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    z-index: 5;
}

/* Radio and Checkbox Input Styles */
.nmnwcpo-input-area .nmnwcpo-product-builder-radio,
.nmnwcpo-input-area .nmnwcpo-product-builder-checkbox {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: #fff !important;
    border: solid 2px var(--pb-grey) !important;
    transition: all .3s ease !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Radio specific - round */
.nmnwcpo-input-area .nmnwcpo-product-builder-radio {
    border-radius: 50% !important;
}

/* Checkbox specific - square with slight rounding */
.nmnwcpo-input-area .nmnwcpo-product-builder-checkbox {
    border-radius: 4px !important;
}

.nmnwcpo-input-area .nmnwcpo-product-builder-radio:hover,
.nmnwcpo-input-area .nmnwcpo-product-builder-checkbox:hover {
    border-color: var(--pb-dark-grey) !important;
}

.nmnwcpo-input-area .nmnwcpo-product-builder-radio:focus,
.nmnwcpo-input-area .nmnwcpo-product-builder-checkbox:focus {
    outline: none !important;
    border-color: var(--pb-default) !important;
    box-shadow: 0 0 0 1px var(--pb-default) !important;
}

/* Radio uses a circle for checked state */
.nmnwcpo-input-area .nmnwcpo-product-builder-radio::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    background: transparent !important;
    transition: all .3s ease !important;
}

/* Checkbox uses a checkmark for checked state */
.nmnwcpo-input-area .nmnwcpo-product-builder-checkbox::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0) !important;
    width: 24px !important;
    height: 24px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    transition: all .3s ease !important;
}

.nmnwcpo-input-area .nmnwcpo-product-builder-radio:checked,
.nmnwcpo-input-area .nmnwcpo-product-builder-checkbox:checked {
    border-color: var(--pb-default) !important;
    background-color: #fff !important;
}

.nmnwcpo-input-area .nmnwcpo-product-builder-radio:checked::after {
    background-color: var(--pb-default) !important;
}

.nmnwcpo-input-area .nmnwcpo-product-builder-checkbox:checked {
    background-color: var(--pb-default) !important;
}

.nmnwcpo-input-area .nmnwcpo-product-builder-checkbox:checked::after {
    transform: translate(-50%, -50%) scale(1) !important;
}

/* Checkbox Switch Styles */
.nmnwcpo-input-area .nmnwcpo-product-builder-checkbox-switch {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center; /* Center horizontally */
    width: 80px;
    height: 34px;
    z-index: 4;
    margin: 0 auto; /* Center in container */
}

/* Adjust checkbox switch width on mobile */
@media (max-width: 768px) {
    .nmnwcpo-input-area .nmnwcpo-product-builder-checkbox-switch {
        width: 70px; /* Slightly smaller on mobile */
    }
    
    input:checked + .nmnwcpo-product-builder-checkbox-slider:before {
        transform: translateX(36px); /* Adjust for smaller width */
    }
}

.nmnwcpo-product-builder-radio-flex,
.nmnwcpo-product-builder-checkbox-flex {
    position: relative;
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--pb-grey);
    border-radius: 4px;
    transition: border-color .3s ease, transform .2s ease;
}

label{
    cursor: pointer;
}

.nmnwcpo-product-builder-radio-flex:hover,
.nmnwcpo-product-builder-checkbox-flex:hover {
    z-index: 2;
    border-color: var(--pb-dark-grey);
}

input:checked ~ .nmnwcpo-product-builder-radio-flex,
input:checked ~ .nmnwcpo-product-builder-checkbox-flex {
    z-index: 3;
    border: 2px solid var(--pb-default);
}

/* Make image and title clickable */
.nmnwcpo-product-builder-radio-image,
.nmnwcpo-product-builder-checkbox-image,
.nmnwcpo-product-builder-radio-name,
.nmnwcpo-product-builder-checkbox-name {
    cursor: pointer;
}

.nmnwcpo-product-builder-radio-left,
.nmnwcpo-product-builder-checkbox-left {
    display: flex;
    align-items: center; /* Default: vertically center items */
    flex-grow: 1;
}

/* When variation select is present, align items to top */
.nmnwcpo-product-builder-radio-left:has(.nmnwcpo-product-builder-variation-select-wrapper),
.nmnwcpo-product-builder-checkbox-left:has(.nmnwcpo-product-builder-variation-select-wrapper) {
    align-items: flex-start;
}

.nmnwcpo-product-builder-radio-image,
.nmnwcpo-product-builder-checkbox-image {
    flex-shrink: 0;
    align-self: flex-start; /* Keep image at the top when content is stacked */
}

.nmnwcpo-product-builder-radio-image img,
.nmnwcpo-product-builder-checkbox-image img {
    width: 60px;
    height: auto;
    margin-right: 14px;
    margin-bottom: 0; /* Ensure no bottom margin */
}

.nmnwcpo-product-builder-radio-info,
.nmnwcpo-product-builder-checkbox-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start; /* Align children to the start, preventing full width */
    margin-right: 15px; /* Add right margin for spacing */
}

.nmnwcpo-product-builder-radio-name,
.nmnwcpo-product-builder-checkbox-name {
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
}

/* Underline only when hovering the product name itself */
.nmnwcpo-product-builder-radio-name[data-modal]:hover,
.nmnwcpo-product-builder-checkbox-name[data-modal]:hover {
    text-decoration: underline;
}


.nmnwcpo-product-builder-radio-stock,
.nmnwcpo-product-builder-checkbox-stock {
    font-size: 14px;
    color: #4b4b4b;
    margin: 2px 0;
}

/* Hide empty stock elements */
.nmnwcpo-product-builder-radio-stock:empty,
.nmnwcpo-product-builder-checkbox-stock:empty {
    display: none;
}

/* Override WooCommerce stock styles */
.nmnwcpo-stock-wrapper * {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

.nmnwcpo-stock-wrapper p {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
    margin-inline-start: 0 !important;
    margin-inline-end: 0 !important;
}

.nmnwcpo-product-builder-radio-price,
.nmnwcpo-product-builder-checkbox-price {
    font-size: 16px;
    font-weight: normal;
    margin: 0;
    text-align: right;
    line-height: 1.4;
    position: relative;
}

/* Add + sign before discounted price (ins element) using ::before pseudo-element */
.show-plus bdi{
    display: flex;
}
.show-plus bdi::before{
    content: '+ ';
}

/* Original price display - smaller, positioned absolutely below discounted price */
.nmnwcpo-product-builder-radio-price del,
.nmnwcpo-product-builder-checkbox-price del {
    position: absolute;
    top: 100%;
    right: 0;
    font-size: 11px;
    opacity: 0.7;
    display: block;
    width: 100%;
    text-align: right;
    margin-top: 2px;
}

/* Discounted price - no text decoration */
.nmnwcpo-product-builder-radio-price ins,
.nmnwcpo-product-builder-checkbox-price ins {
    text-decoration: none;
    display: block;
}

/* Hide screen reader text */
.nmnwcpo-product-builder-radio-price .screen-reader-text,
.nmnwcpo-product-builder-checkbox-price .screen-reader-text {
    display: none;
}

/* Variation Select Styles */
.nmnwcpo-product-builder-variation-select-wrapper {
    width: 100%;
}

.nmnwcpo-product-builder-variation-select{
    width: 100%;
    padding: 8px;
    border: 1px solid var(--pb-grey);
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s ease;
}
.nmnwcpo-product-builder-variation-select:has( option[value=""]:checked ){
    color: #777;
}
.nmnwcpo-product-builder-variation-select option{
    color: #333;
}

.nmnwcpo-product-builder-variation-select:hover,
.nmnwcpo-product-builder-variation-select:focus {
    border-color: var(--pb-default);
    outline: none;
}

.nmnwcpo-product-builder-variation-select option {
    padding: 8px;
}

/* Fancy Slider Switch */
.nmnwcpo-product-builder-checkbox-switch {
    position: relative;
    display: flex;
    align-items: center;
    width: 80px;
    height: 34px;
    z-index: 4;
}

.nmnwcpo-product-builder-checkbox-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.nmnwcpo-product-builder-checkbox-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #f83d04;
    transition: .3s;
    border-radius: 34px;
}

.nmnwcpo-product-builder-checkbox-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .nmnwcpo-product-builder-checkbox-slider {
    background-color: var(--pb-default);
}

input:checked + .nmnwcpo-product-builder-checkbox-slider:before {
    transform: translateX(46px);
}

.nmnwcpo-product-builder-checkbox-status {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 6px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 700;
    pointer-events: none;
}

.nmnwcpo-product-builder-checkbox-status.nmnwcpo-status-yes {
    opacity: 0;
    padding-right: 22px;
}

.nmnwcpo-product-builder-checkbox-status.nmnwcpo-status-no {
    opacity: 1;
    padding-left: 22px;
}

input:checked ~ .nmnwcpo-product-builder-checkbox-status.nmnwcpo-status-yes {
    opacity: 1;
}

input:checked ~ .nmnwcpo-product-builder-checkbox-status.nmnwcpo-status-no {
    opacity: 0;
}

/* Select2 Customization */
.nmnwcpo-product-builder-wrapper .select2-container--default .select2-selection--single {
    height: 44px;
    margin: 0;
    padding: 0;
    background: #fff;
    border: solid 1px var(--pb-grey);
    border-radius: 0;
    font-size: 16px;
    color: #000;
    cursor: pointer;
}

.nmnwcpo-product-builder-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0 50px 0 14px;
    line-height: 42px;
}

.nmnwcpo-product-builder-wrapper .select2-container--default .select2-selection--single .select2-selection__placeholder,
.nmnwcpo-product-builder-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #000;
}

/* Hide default Select2 elements */
.nmnwcpo-product-builder-wrapper .select2-container--default .select2-selection--single .select2-selection__arrow b,
.nmnwcpo-product-builder-wrapper .select2-container--default .select2-selection--single .select2-selection__clear {
    display: none !important;
}

/* Custom arrow styling */
.nmnwcpo-product-builder-wrapper .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nmnwcpo-product-builder-wrapper .select2-container--default .select2-selection--single .select2-selection__arrow::after {
    content: '';
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transform: translateY(0);
    transition: transform 0.2s ease;
}

.nmnwcpo-product-builder-wrapper .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow::after {
    transform: rotate(180deg);
}

/* Fix dropdown positioning */
.select2-container--open .select2-dropdown {
    margin-top: 1px !important;
    border-color: var(--pb-grey);
}

.select2-container--open .select2-dropdown--below {
    border-top: 1px solid var(--pb-grey);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.select2-container--open .select2-dropdown--above {
    border-bottom: 1px solid var(--pb-grey);
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

/* Improve dropdown interaction */
.select2-container {
    z-index: 100000;
}

.select2-dropdown {
    z-index: 100001;
}

.select2-dropdown.nmnwcpo-product-builder-dropdown {
    margin: -1px 0 0;
    background: #fff;
    border: solid 1px var(--pb-grey);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.select2-container--default .nmnwcpo-product-builder-dropdown .select2-results__option {
    padding: 10px 14px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.select2-container--default .nmnwcpo-product-builder-dropdown .select2-results__option--highlighted[aria-selected] {
    background: var(--pb-grey);
    color: #000;
}

.select2-container--default .select2-results > .select2-results__options {
    max-height: 300px;
}

/* Prevent text selection */
.select2-selection__rendered,
.nmnwcpo-product-builder-option {
    user-select: none;
}

/* Fix dropdown positioning */
.select2-container--open .select2-dropdown--below {
    margin-top: 1px;
}

.select2-dropdown.nmnwcpo-product-builder-dropdown {
    margin: -1px 0 0;
    background: #fff;
    border: solid 1px var(--pb-grey);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.select2-container--default .nmnwcpo-product-builder-dropdown .select2-results__option--highlighted[aria-selected] {
    background: var(--pb-grey);
    color: #000;
}

.nmnwcpo-product-builder-dropdown .select2-results__option {
    padding: 10px 14px;
}

.nmnwcpo-product-builder-option {
    opacity: 0.75;
}

.select2-results__option--highlighted .nmnwcpo-product-builder-option {
    opacity: 1;
}

.nmnwcpo-product-builder-option,
.nmnwcpo-product-builder-option-info {
    display: flex;
    align-items: center;
}

.nmnwcpo-product-builder-option-left {
    flex-grow: 1;
}

.nmnwcpo-product-builder-option-info {
    font-size: 16px;
    color: #000;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nmnwcpo-product-builder-option-name {
    font-weight: 500;
}

.nmnwcpo-product-builder-option-sku {
    font-size: 12px;
    color: #666;
}

.nmnwcpo-product-builder-option-stock {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
    margin-top: 2px;
}

.nmnwcpo-product-builder-option-stock.nmnwcpo-in-stock {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.nmnwcpo-product-builder-option-stock.nmnwcpo-out-of-stock {
    background-color: #ffebee;
    color: #c62828;
}

.nmnwcpo-product-builder-option-right {
    font-size: 16px;
    color: #000;
    font-weight: 600;
}

/* Summary Section */
.nmnwcpo-product-builder-summary {
    margin: 30px 0;
    padding: 15px;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    transition: all 0.3s ease;
    background: #f8f8f8;
    border-radius: 4px;
}

#nmnwcpo-product-builder-selected {
    margin-bottom: 0;
}

#nmnwcpo-product-builder-selected .title {
    margin: 0 0 8;
    font-size: 18px;
    font-weight: 600;
    color: #222;
    display: inline-block;
}

#nmnwcpo-product-builder-selected ul {
    display: block;
    margin: 5px 0 0 0;
    padding: 0;
    list-style: none;
}

#nmnwcpo-product-builder-selected li {
    position: relative;
    font-size: 16px;
    color: #000;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#nmnwcpo-product-builder-selected li:last-child {
    border-bottom: none;
}

#nmnwcpo-product-builder-selected li .product-name {
    flex: 1;
    font-weight: 600;
}

#nmnwcpo-product-builder-selected li .product-price {
    font-size: 16px;
    font-weight: normal;
    margin-left: 10px;
    white-space: nowrap;
}

#nmnwcpo-product-builder-total,
#nmnwcpo-product-builder-total-without-tax {
    margin-top: 10px;
    padding: 10px 0 0 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 16px;
    font-weight: 600;
    color: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#nmnwcpo-product-builder-total-without-tax {
    margin-top: 10px;
    padding-top: 10px;
    font-size: 16px;
    font-weight: 400;
    color: #000;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nmnwcpo-product-builder-summary {
        padding: 20px 15px;
    }
    
    #nmnwcpo-product-builder-selected .title {
        font-size: 16px;
    }
    
    #nmnwcpo-product-builder-total {
        font-size: 20px;
    }
    
    #nmnwcpo-product-builder-total-without-tax {
        font-size: 14px;
    }
}

/* Quote Button Styles */
.nmnwcpo-product-builder-quote-button {
    display: block;
    margin-top: 10px;
}

.nmnwcpo-ask-for-quote-button {
    font-size: 16px;
    border: 0;
    border-radius: 0;
    background: none;
    padding: .6180469716em 1.41575em;
    text-decoration: none;
    font-weight: 600;
    text-shadow: none;
    display: inline-block;
    cursor: pointer;
    -webkit-appearance: none;
    line-height: normal;
    /* Reset any inherited theme button styles */
    box-shadow: none;
    letter-spacing: normal;
    text-transform: none;
}

/* Quote button + Add to Cart side-by-side row */
.nmnwcpo-quote-atc-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.nmnwcpo-quote-atc-row .nmnwcpo-product-builder-quote-button {
    margin-top: 0;
}

/* Utility Classes */
:where(.row) {
    --gutter: 20px;
    display: flex;
    flex-wrap: wrap;
    margin-right: calc(-1 * var(--gutter));
    margin-left: calc(-1 * var(--gutter));
}

:where(.row > *) {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: var(--gutter);
    padding-left: var(--gutter);
}

:where(.col) {
    flex: 1 0 0%;
}

:where(.col-auto) {
    flex: 0 0 auto;
    width: auto;
}

:where(.d-flex) {
    display: flex;
}

:where(.align-items-start) {
    align-items: flex-start;
}

:where(.flex-column) {
    flex-direction: column;
}

:where(.mt-auto) {
    margin-top: auto;
}

/* Modal Styles */
.nmnwcpo-modal-header {
    position: relative;
    padding: 24px 24px 0;
    border-bottom: 1px solid var(--pb-grey);
}

.nmnwcpo-modal-header h3 {
    margin: 0 0 16px;
    font-size: 24px;
    line-height: 1.2;
    color: #000;
}

.nmnwcpo-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: none;
    font-size: 24px;
    line-height: 1;
    color: #000;
    cursor: pointer;
    transition: color .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.nmnwcpo-modal-close:hover {
    color: #000;
}

.nmnwcpo-modal h2 {
    font-size: 24px;
    line-height: 1.2;
    color: #000;
}

.nmnwcpo-modal .nmnwcpo-product-sku {
    margin: 0 0 8px;
    font-size: 16px;
    color: #000;
}

.nmnwcpo-modal .product-price {
    font-size: 16px;
    font-weight: normal;
    color: #000;
}

.nmnwcpo-modal .nmnwcpo-product-price-without-tax {
    margin: 0 0 16px;
    font-size: 16px;
    color: #000;
}

.nmnwcpo-modal .nmnwcpo-product-description {
    margin: 0 0 24px;
    line-height: 1.6;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 8px;
    font-size: 16px;
    color: #000;
}

.nmnwcpo-modal .nmnwcpo-product-description p {
    margin-bottom: 12px;
}

.nmnwcpo-modal .nmnwcpo-product-description p:last-child {
    margin-bottom: 0;
}

.nmnwcpo-modal .nmnwcpo-view-product {
    display: inline-block;
    padding: 12px 24px;
    background: var(--pb-default);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color .2s ease;
    font-size: 16px;
}

.nmnwcpo-modal .nmnwcpo-view-product:hover {
    background: #1aa558;
}

.nmnwcpo-modal .nmnwcpo-product-image-container {
    position: relative;
    margin-right: 32px;
    cursor: pointer;
}

.nmnwcpo-modal .nmnwcpo-product-image-container img {
    max-width: 300px;
    height: auto;
    display: block;
}

.nmnwcpo-modal .nmnwcpo-product-image-container:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.1);
}

.nmnwcpo-modal .nmnwcpo-product-image-container:hover::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3Cline x1='11' y1='8' x2='11' y2='14'%3E%3C/line%3E%3Cline x1='8' y1='11' x2='14' y2='11'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 5;
}

/* Lightbox styles */
.nmnwcpo-product-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.nmnwcpo-product-lightbox.active {
    display: flex;
}

.nmnwcpo-product-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.nmnwcpo-product-lightbox img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    margin: 0 auto;
}

.nmnwcpo-product-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 32px;
    height: 32px;
    color: white;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
}

/* Quote Form Modal Styles */
#quote-form-modal .nmnwcpo-modal-dialog {
    max-width: 600px;
}

#quote-form-modal .nmnwcpo-modal-body {
    padding: 20px;
}

.nmnwcpo-quote-form-content {
    width: 100%;
}

/* Form styling within the modal */
.nmnwcpo-quote-form-content form {
    width: 100%;
}

.nmnwcpo-quote-form-content input[type="text"],
.nmnwcpo-quote-form-content input[type="email"],
.nmnwcpo-quote-form-content input[type="tel"],
.nmnwcpo-quote-form-content textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--pb-grey);
    border-radius: 4px;
}

.nmnwcpo-quote-form-content textarea {
    min-height: 120px;
}

.nmnwcpo-quote-form-content input[type="submit"] {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--pb-default);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nmnwcpo-quote-form-content input[type="submit"]:hover {
    background-color: #1aa558;
}

/* Bulk Discount Styles */
.nmnwcpo-product-builder-bulk-discount {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nmnwcpo-discount-badge {
    display: inline-block;
    background-color: #e2401c;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.85em;
    margin-left: 8px;
}

/* Sale Badge Styles */
.nmnwcpo-sale-badge {
    position: absolute;
    top: -8px;
    right: 8px;
    background-color: var(--pb-default);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
    white-space: nowrap;
    pointer-events: none;
}

/* Sale badge for product items */
.nmnwcpo-product-builder-radio-flex.has-discount,
.nmnwcpo-product-builder-checkbox-flex.has-discount {
    position: relative;
    overflow: visible;
}

/* Responsive adjustments for sale badge */
@media (max-width: 768px) {
    .nmnwcpo-sale-badge {
        font-size: 10px;
        padding: 2px 6px;
    }
}

/* Force Selection Styles */
.nmnwcpo-product-builder-checkbox-switch.nmnwcpo-force-selected {
    opacity: 0.8;
    pointer-events: none;
}

.nmnwcpo-product-builder-checkbox-switch.nmnwcpo-force-selected .nmnwcpo-product-builder-checkbox-slider {
    background-color: var(--pb-default);
}

.nmnwcpo-product-builder-checkbox-switch.nmnwcpo-force-selected .nmnwcpo-product-builder-checkbox-slider:before {
    transform: translateX(46px);
}

.nmnwcpo-product-builder-checkbox-switch.nmnwcpo-force-selected .nmnwcpo-product-builder-checkbox-status.nmnwcpo-status-yes {
    opacity: 1;
}

.nmnwcpo-product-builder-checkbox-switch.nmnwcpo-force-selected .nmnwcpo-product-builder-checkbox-status.nmnwcpo-status-no {
    opacity: 0;
}

.nmnwcpo-product-builder-checkbox-switch.nmnwcpo-force-selected:after {
    content: "Required";
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
    color: var(--pb-default);
    font-weight: bold;
}

/**
 * WooCommerce Blocks - Hide bundled items
 * These items are added to cart but should not be visible
 * as they are part of the main product bundle
 */
.wc-block-cart-items__row.nmnwcpb-bundled-item,
.wc-block-cart-items__row.nmnwcpb-hidden {
    display: none !important;
}

/* Also hide in mini cart block */
.wc-block-mini-cart__products-table .nmnwcpb-bundled-item,
.wc-block-mini-cart__products-table .nmnwcpb-hidden {
    display: none !important;
}

/* Hide in checkout blocks as well */
.wc-block-checkout .nmnwcpb-bundled-item,
.wc-block-checkout .nmnwcpb-hidden {
    display: none !important;
}

/* ========================================
   Quantity Pricing Styles
   ======================================== */

/* Quantity Pricing Wrapper */
.nmnwcpo-quantity-pricing-wrapper {
    margin: 20px 0;
}


/* Quantity Discount Radio Buttons */
.nmnwcpo-quantity-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nmnwcpo-quantity-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nmnwcpo-quantity-option:hover {
    border-color: var(--pb-default, #1fc066);
    background: #f5f5f5;
}

.nmnwcpo-quantity-option.selected {
    border-color: var(--pb-default, #1fc066);
    background: #f0f9f4;
}

.nmnwcpo-quantity-option input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    margin: 0 12px 0 0;
    padding: 0;
    background-color: #fff;
    border: solid 2px var(--pb-grey);
    border-radius: 50%;
    transition: all .3s ease;
    cursor: pointer;
    position: relative;
}

.nmnwcpo-quantity-option input[type="radio"]:checked {
    border-color: var(--pb-default);
}

.nmnwcpo-quantity-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--pb-default);
}

.nmnwcpo-quantity-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.nmnwcpo-quantity-amount {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.nmnwcpo-quantity-unit {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin-left: 4px;
}

.nmnwcpo-quantity-save {
    font-size: 14px;
    color: #28a745;
    font-weight: 500;
}

.nmnwcpo-quantity-price {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-left: 15px;
    white-space: nowrap;
}

/* Bulk Discount Table */
.nmnwcpo-bulk-discount {
    width: 100%;
}

.nmnwcpo-bulk-pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.nmnwcpo-bulk-pricing-table th,
.nmnwcpo-bulk-pricing-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.nmnwcpo-bulk-pricing-table th {
    background: #f5f5f5;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.nmnwcpo-bulk-pricing-table td {
    font-size: 14px;
    color: #666;
}

.nmnwcpo-bulk-pricing-table tr:last-child td {
    border-bottom: none;
}

.nmnwcpo-bulk-discount-badge {
    display: inline;
    margin-left: 6px;
    color: #28a745;
    font-size: 14px;
    font-weight: 500;
}

/* Responsive Styles for Quantity Pricing */
@media (max-width: 768px) {
    .nmnwcpo-quantity-option {
        flex-wrap: wrap;
        padding: 10px 12px;
    }
    
    .nmnwcpo-quantity-price {
        width: 100%;
        margin-left: 32px;
        margin-top: 8px;
        text-align: left;
    }
    
    .nmnwcpo-bulk-pricing-table th,
    .nmnwcpo-bulk-pricing-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
}