/* =====================================================
   CONTENEDOR GENERAL PANEL DERECHO
===================================================== */
.sublimoldes-purchase-box{
    background:#fff;
    padding:10px 0;
}

/* =====================================================
   PRECIO DINAMICO NORMAL (CUANDO HAY VARIACION)
===================================================== */
.sublimoldes-dynamic-price{
    font-size:38px;
    font-weight:800;
    margin-bottom:24px;
    color:#0D47A1;
    line-height:1.2;
    letter-spacing:-1px;
    display:inline-block;
    border-bottom:2px solid #dbe7ff;
    padding-bottom:4px;
}

/* forzar color del html interno que Woo inyecta */
#sublimoldes-dynamic-price .price,
#sublimoldes-dynamic-price ins,
#sublimoldes-dynamic-price bdi,
#sublimoldes-dynamic-price .woocommerce-Price-amount{
    color:#0D47A1 !important;
    text-decoration:none !important;
}

/* =====================================================
   ESTADO WAITING = BADGE PREVIO
===================================================== */
.sublimoldes-dynamic-price.waiting-price{
    font-size:inherit !important;
    font-weight:normal !important;
    line-height:normal !important;
    letter-spacing:0 !important;
    color:inherit !important;
    display:inline-block !important;
    border-bottom:none !important;
    padding:10px 14px !important;
    margin-bottom:22px;
    background:#f8fbff;
    border:1px solid #dbe7ff;
    border-radius:8px;
    max-width:420px;
}

/* linea principal helper */
.waiting-main{
    display:block;
    font-size:13px;
    font-weight:600;
    color:#0D47A1;
    margin-bottom:2px;
    line-height:1.4;
}

/* linea secundaria helper */
.waiting-sub{
    display:block;
    font-size:11px;
    color:#7a8599;
    line-height:1.4;
}

/* =====================================================
   GRUPOS DE OPCIONES
===================================================== */
.sublimoldes-option-group{
    margin-bottom:22px;
}

.sublimoldes-option-group label{
    display:block;
    margin-bottom:12px;
    font-size:12px;
    font-weight:700;
    letter-spacing:1.4px;
    color:#555;
}

/* =====================================================
   FILAS FLEX DE OPCIONES
===================================================== */
.sublimoldes-format-row,
.sublimoldes-size-row{
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    gap:10px;
}

/* =====================================================
   OPCIONES GENERALES
===================================================== */
.sf-option{
    border:1px solid #d8d8d8;
    cursor:pointer;
    transition:.3s ease;
    font-size:14px;
    background:#fff;
    position:relative;
    text-align:center;
    flex:1;
    min-width:calc(50% - 10px);
    box-sizing:border-box;
    padding:14px 10px;
}

.sf-option:hover,
.sf-option.active{
    background:#000;
    color:#fff;
    border-color:#000;
}

/* =====================================================
   OPCIONES DE ICONOS PACKAGE FORMAT
===================================================== */
.sf-icon-option{
    height:66px;
    min-width:calc(25% - 10px);
    flex:1;
    padding:0;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:8px;
}

.sf-icon-option img{
    width:34px;
    height:34px;
}

/* tooltip superior */
.sf-icon-option::after{
    content:attr(data-tooltip);
    position:absolute;
    bottom:calc(100% + 8px);
    left:50%;
    transform:translateX(-50%);
    background:#111;
    color:#fff;
    font-size:11px;
    padding:6px 10px;
    white-space:nowrap;
    opacity:0;
    pointer-events:none;
    transition:.3s ease;
    border-radius:4px;
}

.sf-icon-option:hover::after{
    opacity:1;
}

/* =====================================================
   WRAPPER DE LAS DOS INFO CARDS
===================================================== */
.sublimoldes-info-row{
    display:flex;
    gap:12px;
    margin-top:18px;
    margin-bottom:18px;
    align-items:stretch;
}

.sublimoldes-info-row > div{
    flex:1;
}

/* ocultar delivery si no existe */
.sublimoldes-info-row:not(.has-delivery) #sublimoldes-delivery-message{
    display:none !important;
}

/* =====================================================
   CARD PACKAGE DETAILS
===================================================== */
#sublimoldes-view-details{
    margin:0;
    padding:10px 14px;
    border:1px solid #e4e4e4;
    border-radius:10px;
    cursor:pointer;
    background:#fcfcfc;
    transition:.3s ease;
    text-align:center;
    box-shadow:0 2px 8px rgba(0,0,0,0.03);

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    min-height:62px;
}

#sublimoldes-view-details:hover{
    background:#000;
    border-color:#000;
}

#sublimoldes-view-details:hover .details-main{
    color:#fff;
}

.details-main{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    font-size:13px;
    font-weight:700;
    color:#111;
    text-align:center;
}

/* icono cuadrado antes del texto */
.details-main::before{
    content:"";
    width:12px;
    height:12px;
    background:#b87932;
    border-radius:3px;
    display:inline-block;
}

/* =====================================================
   CARD DELIVERY MESSAGE
===================================================== */
#sublimoldes-delivery-message{
    margin:0;
    font-size:12px;
    font-weight:600;
    color:#35507a;
    background:#f4f8ff;
    border:1px solid #dce7fb;
    padding:10px 14px;
    border-radius:8px;
    line-height:1.4;

    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    min-height:62px;
}

#sublimoldes-delivery-message:empty{
    display:none !important;
}

/* =====================================================
   BOTON CUSTOM ADD TO CART
===================================================== */
#sublimoldes-custom-cart{
    width:100%;
    background:#000;
    color:#fff;
    padding:18px;
    border:none;
    cursor:pointer;
    margin-top:10px;
    font-size:16px;
    font-weight:700;
    transition:.3s ease;
}

#sublimoldes-custom-cart:hover{
    opacity:.88;
}

/* =====================================================
   LINEA INFERIOR SEGURIDAD
===================================================== */
.sublimoldes-secure-line{
    margin-top:18px;
    color:#8b8b8b;
    font-size:12px;
    display:flex;
    justify-content:space-between;
    gap:10px;
    flex-wrap:wrap;
}

.sublimoldes-secure-line span{
    flex:1;
    text-align:center;
}

/* =====================================================
   MODAL OVERLAY
===================================================== */
#sublimoldes-details-modal{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:99999;
}

.sublimoldes-modal-overlay{
    position:absolute;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.65);
}

/* =====================================================
   CAJA CENTRAL MODAL
===================================================== */
.sublimoldes-modal-box{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%, -50%);
    width:90%;
    max-width:500px;
    background:#fff;
    padding:35px;
    border-radius:12px;
    box-shadow:0 10px 40px rgba(0,0,0,0.2);
}

.sublimoldes-modal-box h3{
    margin:0 0 20px 0;
    font-size:24px;
}

.sublimoldes-modal-close{
    position:absolute;
    top:12px;
    right:18px;
    font-size:28px;
    cursor:pointer;
}

.sublimoldes-modal-description{
    color:#555;
    line-height:1.8;
    font-size:14px;
    margin-bottom:18px;
}

.sublimoldes-modal-delivery{
    margin-bottom:15px;
    font-weight:600;
    color:#234;
}

.sublimoldes-modal-sku{
    font-size:13px;
    color:#888;
}

/* =====================================================
   FIX REAL DEL TITULO (CONTENEDOR COLAPSADO)
===================================================== */

.product_title{
    font-weight:700;
    letter-spacing:-0.3px;
}

/* arreglar widget de Elementor que colapsa altura */
.elementor-widget-woocommerce-product-title{
    height:auto !important;
}

.elementor-widget-woocommerce-product-title h1{
    line-height:1.2 !important;
}