.personalized-purchase-component {
    display: flex;
    width: 100%;
    max-width: 1240px;
    padding: 32px 24px;
    flex-direction: column;
    gap: 32px;
    background-color: #FFF;
}

.component-container {
    display: flex;
    gap: 64px;
    align-items: flex-start;
    justify-content: flex-start; 
}

/* BLOQUE IZQUIERDO */
.component-left {
    flex: 0 0 450px;
    max-width: 450px;
    width: 100%;
}

.component-title {
    color: var(--Neutral-90, #101828);
    font-size: 26px;
    font-style: normal;
    font-weight: 600;
    line-height: 28px; /* 107.692% */
}

.nicotine-selector {
    margin-bottom: 20px;
}

.selector-label {
    color: var(--Neutral-90, #232323);
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px; /* 150% */
    margin-bottom: 16px;
}

.nicotine-options {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    overflow: hidden;
}

.radio-option {
    display: flex;
    padding: 8px;
    align-items: center;
    align-self: stretch;
    border: 1px solid var(--Neutral-30, #D0D5DD);
    background: var(--Absolute-White, #FFF);
    transition: background-color 0.2s;
}

.radio-option:hover {
    background-color: #FEDDDD;
}

.radio-option.selected {
    border: 1px solid var(--Secondary-70, #F63434);
    background: var(--Secondary-5, #FEDDDD);
}

.radio-option input[type="radio"] {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.radio-option input[type="radio"]:checked {
    accent-color: #e74c3c;
}

.radio-label {
    color: var(--Neutral-90, #232323);

    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px; /* 142.857% */
    background: none;
    border: none;
}

.prepare-question {
    color: var(--Secondary-70, #F63434);
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px; /* 160% */
    cursor: pointer;
    display: flex;
    align-items: center;
    gap:4px
}

.prepare-question:hover {
    text-decoration: underline;
}

/* BLOQUE DERECHO */
.component-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    min-width: 600px;
}

.products-display {
    padding: 20px;
    border-radius: 6px;
}

.products-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.product-item {
    flex: 0 1 120px;
    text-align: center;
    position: relative;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-multiplier {
    display: flex;
    padding: 2px 8px;
    justify-content: center;
    align-items: center;
    gap: 4px;
    position: absolute;
    right: 139px;
    top: 7px;
    border-radius: 4px;
    background: var(--Secondary-70, #F63434);

    color: var(--Absolute-White, #FFF);
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: 18px; /* 150% */
}

.product-name {
    font-size: 12px;
    color: #666;
    margin: 0;
    line-height: 1.3;
}

.product-plus {

}

.product-image {
    width: 178px;
    height: 178px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 0px;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.loading-product .spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #e74c3c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.product-item.option-2,
.product-plus.nicokit-plus {
    display: none;
}

.component-footer {
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 32px;
}

.total-section {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.total-label {
    color: var(--Neutral-90, #232323);
    text-align: right;

    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px; /* 150% */
}

.total-price {
    color: var(--Neutral-90, #232323);
    text-align: right;
    font-size: 26px;
    font-style: normal;
    font-weight: 600;
    line-height: 28px; /* 107.692% */
}

.tax-info {
    color: var(--Neutral-90, #232323);
    text-align: right;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px; /* 150% */
}

.btn-add-to-cart {
    display: flex;
    padding: 12px 24px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--button_bk);
    background: var(--button_bk);
    color: var(--Absolute-White, #FFF);
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px; 
    cursor: pointer;
}

.btn-add-to-cart:hover:not(:disabled) {
    color: var(--button_color_hover);
    background-color: var(--button_bk_hover);
    border-color: var(--button_border_hover);
}

.btn-add-to-cart:disabled {
    cursor: not-allowed;
}

.btn-add-to-cart i {
    font-size: 18px;
}

@media (max-width: 991px) {
    .component-left {
        flex: 0 0 auto;
        max-width: 100%;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .personalized-purchase-component {
        padding: 15px;
        margin: 20px 0;
    }
    
    .component-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .component-left {
        flex: 1 1 auto;
        max-width: 100%;
        width: 100%;
    }
    
    .component-right {
        min-width: auto;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .component-title {
        color: var(--Neutral-90, #101828);
        font-size: 26px;
        font-style: normal;
        font-weight: 600;
        line-height: 28px;
    }
    
    .products-row {
        gap: 10px;
    }
    
    .product-item {
        flex: 0 1 80px;
    }
    
    .product-image {
        width: 80px;
        height: 80px;
        margin: 0;
    }
    
    .product-plus svg{
        width: 14px;
        height: 14px;
    }
    
    .product-name {
        font-size: 11px;
    }
    
    .component-footer {
        flex-direction: column;
        gap: 32px;
        width: 280px;
        margin: 0 auto;
        flex-shrink: 0;
        position: relative; 
        left: 50%; 
        transform: translateX(-50%);
        margin-left: 0;
        margin-right: 0; 
    }
    
    .total-section {
        width: 100%;
        justify-content: space-between;
    }
    
    .btn-add-to-cart {
        width: 200px;
        justify-content: center;
        padding: 12px;
    }

    .product-multiplier {
        right: 36px;
    }
}

/* ESTILOS PARA MODALES */
.dbcustomizedpurchase_modal_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.dbcustomizedpurchase_modal_container {
    background: white;
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px 24px;
}

.dbcustomizedpurchase_modal_header_white {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 16px;
    background-color: white;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #eee;
}

.dbcustomizedpurchase_modal_header_red {
    padding: 16px;
    background-color: #F63434;
    color: white;
    margin-bottom: 48px;
}

.dbcustomizedpurchase_modal_title {
    color: var(--Absolute-White, #FFF);
    font-size: 26px;
    font-style: normal;
    font-weight: 600;
    line-height: 28px; /* 107.692% */
}

.dbcustomizedpurchase_modal_subtitle {
    color: var(--Absolute-White, #FFF);
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px; /* 150% */
}

.dbcustomizedpurchase_modal_close {
    background: none;
    border: none;
    color: #666;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dbcustomizedpurchase_modal_close:hover {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
}

.dbcustomizedpurchase_modal_section {
    margin-bottom: 24px;
}

.dbcustomizedpurchase_modal_section h4 {
    color: var(--Secondary-70, #F63434);
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 28px; /* 140% */
    border-bottom: 1px solid var(--Secondary-70, #F63434);
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.dbcustomizedpurchase_modal_products {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
}

.dbcustomizedpurchase_modal_products_single {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.dbcustomizedpurchase_modal_products_single img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.dbcustomizedpurchase_modal_product {
    text-align: center;
    flex: 1;
}

.dbcustomizedpurchase_modal_product img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 8px;
}

.dbcustomizedpurchase_modal_product span {
    display: block;
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.dbcustomizedpurchase_modal_note {
    font-size: 14px;
    color: #232323;
    margin: 0;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 142.857% */
}

.dbcustomizedpurchase_modal_steps {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    align-self: stretch;
    margin: 0;
    padding-left: 0;
    list-style: none;
    counter-reset: steps-counter;
}

.dbcustomizedpurchase_modal_steps li {
    color: var(--Neutral-90, #232323);
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px; /* 150% */
    counter-increment: steps-counter;
    position: relative;
}

.dbcustomizedpurchase_modal_steps li::before {
    content: counter(steps-counter) ".";
    color: #F63434;
    margin-right: 8px;
    font-weight: 600;
}

.dbcustomizedpurchase_modal_light {
    font-weight: 400;
}

.dbcustomizedpurchase_modal_advice {
    display: flex;
    flex-direction: column;
    padding: 12px;
    align-items: flex-start;
    align-self: stretch;
    background: var(--Secondary-5, #FEDDDD);
}

.dbcustomizedpurchase_modal_consejo{
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--Neutral-90, #232323);
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px; /* 150% */
    margin-bottom: 8px;
}


.dbcustomizedpurchase_modal_advice p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Responsive para modales */
@media (max-width: 768px) {
    .dbcustomizedpurchase_modal_container {
        max-width: 90%;
        margin: 20px;
    }
    
    .dbcustomizedpurchase_modal_header_white {
        padding: 10px 16px;
    }
    
    .dbcustomizedpurchase_modal_header_red {
        padding: 16px 20px;
    }
    
    .dbcustomizedpurchase_modal_title {
        font-size: 16px;
    }
    
    .dbcustomizedpurchase_modal_body {
        padding: 20px;
    }
    
    .dbcustomizedpurchase_modal_products {
        flex-direction: column;
        gap: 12px;
    }
    
    .dbcustomizedpurchase_modal_product {
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: left;
    }
    
    .dbcustomizedpurchase_modal_product img {
        width: 60px;
        height: 60px;
        margin-bottom: 0;
    }
}