/* ============================================================
   WP Preventa — Estilos frontend
   Compatible con Basel Theme
   ============================================================ */

/* ----------------------------------------------------------
   Mensaje envío 24/48h en productos normales
   ---------------------------------------------------------- */
.wpn-shipping-block {
    margin: 12px 0;
    padding: 10px 16px;
    background: #f1f8e9;
    border-left: 3px solid #7cb342;
    border-radius: 4px;
    color: #33691e;
    font-size: 14px;
    font-weight: 500;
}

/* ----------------------------------------------------------
   Bloque preventa en ficha de producto
   ---------------------------------------------------------- */
.wpn-preorder-block {
    margin: 16px 0;
    padding: 20px 24px;
    background: #fff8e1;
    border: 1px solid #f9a825;
    border-radius: 6px;
    text-align: center;
}

.wpn-preorder-message {
    color: #5d4037;
    font-size: 14px;
    line-height: 2;
    margin-bottom: 10px;
}

.wpn-preorder-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}

.wpn-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.wpn-badge--preorder {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffcc02;
}

/* ----------------------------------------------------------
   Badge "Preventa" sobre imagen en catálogo
   ---------------------------------------------------------- */
.wpn-catalog-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    background: #f9a825;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: none;
}

/* Basel usa .product-element-top como contenedor de imagen */
.product-element-top {
    position: relative;
}

/* ----------------------------------------------------------
   Notices en carrito
   ---------------------------------------------------------- */
.wpn-cart-notice {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 4px;
    border-left: 4px solid #f9a825 !important;
    background: #fff8e1 !important;
    color: #5d4037 !important;
}

.wpn-cart-notice--mixed {
    border-left-color: #e67e22 !important;
    background: #fff3e0 !important;
}

/* ----------------------------------------------------------
   Notices en checkout — completamente independiente de WooCommerce
   ---------------------------------------------------------- */
div.wpn-checkout-notice {
    display: block !important;
    margin: 0 0 20px !important;
    padding: 16px 20px !important;
    border-radius: 4px !important;
    background-color: #fff8e1 !important;
    border: none !important;
    border-left: 4px solid #f9a825 !important;
    color: #5d4037 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    list-style: none !important;
}

div.wpn-checkout-notice--mixed {
    background-color: #fff3e0 !important;
    border-left-color: #e67e22 !important;
}

div.wpn-checkout-notice strong:first-child {
    display: block !important;
    margin-bottom: 6px !important;
    font-size: 14px !important;
    color: #e65100 !important;
}

div.wpn-checkout-notice::before {
    display: none !important;
}

/* ----------------------------------------------------------
   Items preventa en resumen de checkout
   ---------------------------------------------------------- */
.wpn-checkout-item-badge {
    display: inline-block;
    background: #f9a825;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
    text-transform: uppercase;
}
