.adwp-widget{border:1px solid #e4e7ec;padding:18px 20px;margin:18px 0;border-radius:10px;background:#fff;box-shadow:0 1px 2px rgba(16,24,40,.03)}
.adwp-widget-heading{display:flex;gap:12px;align-items:flex-start;margin-bottom:14px}.adwp-widget-heading strong{display:block;font-size:16px;color:#1d2939}.adwp-widget-heading span:not(.adwp-bell){display:block;margin-top:2px;color:#667085;font-size:14px}.adwp-bell{font-size:21px;line-height:1}
.adwp-widget [hidden],.adwp-modal [hidden]{display:none!important}.adwp-widget .button{min-height:42px;border-radius:7px}.adwp-open-form,.adwp-subscribe{font-weight:600}.adwp-actions{display:flex;gap:8px;flex-wrap:wrap}
.adwp-field-label{display:block;margin-bottom:12px}.adwp-field-label>span{display:block;font-weight:600;margin-bottom:6px;color:#344054}.adwp-email{width:100%!important;max-width:460px!important;min-height:42px;border:1px solid #d0d5dd!important;border-radius:7px!important;padding:8px 11px!important}
.adwp-account-email{background:#f8fafc;border:1px solid #eaecf0;border-radius:7px;padding:10px 12px;margin-bottom:12px}.adwp-account-email span{display:block;color:#667085;font-size:13px}.adwp-account-email strong{display:block;color:#101828;margin-top:2px}
.adwp-hp{position:absolute!important;left:-99999px!important;width:1px!important;height:1px!important;opacity:0!important}.adwp-consent{display:flex;gap:9px;align-items:flex-start;margin:12px 0 14px;font-size:13px;line-height:1.45;color:#475467}.adwp-consent input{margin-top:3px!important;flex:0 0 auto}
.adwp-success-line{display:flex;align-items:center;gap:7px;color:#067647}.adwp-success-line>span{display:inline-flex;width:23px;height:23px;border-radius:50%;align-items:center;justify-content:center;background:#ecfdf3}.adwp-active p{margin:7px 0 12px;color:#475467}.adwp-message{margin:10px 0 0;font-size:13px;font-weight:600;color:#344054;min-height:0}
.adwp-card-button{width:100%;text-align:center;cursor:pointer}.adwp-card-button.is-active{border-color:#12b76a!important;color:#067647!important;background:#ecfdf3!important}
body.adwp-modal-open{overflow:hidden}.adwp-modal{position:fixed;z-index:999999;inset:0}.adwp-modal-backdrop{position:absolute;inset:0;background:rgba(16,24,40,.55);backdrop-filter:blur(2px)}.adwp-modal-dialog{position:relative;z-index:2;width:min(92vw,480px);max-height:90vh;overflow:auto;margin:8vh auto 0;background:#fff;border-radius:14px;padding:30px;box-shadow:0 24px 48px rgba(16,24,40,.22);text-align:left}.adwp-modal-x{position:absolute;right:14px;top:10px;border:0;background:transparent;font-size:28px;line-height:1;color:#667085;cursor:pointer}.adwp-modal-icon{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#eff8ff;font-size:22px;margin-bottom:12px}.adwp-modal-dialog h2{margin:0 38px 5px 0;font-size:22px}.adwp-modal-product{color:#667085;margin:0 0 18px}.adwp-modal-dialog .adwp-subscribe{width:100%;min-height:44px;border-radius:7px;font-weight:600}.adwp-modal-active{text-align:center;padding:8px 0 4px}.adwp-success-badge{margin:0 auto 10px;width:46px;height:46px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#ecfdf3;color:#067647;font-size:25px;font-weight:700}.adwp-modal-active h3{margin:0 0 7px}.adwp-modal-active p{color:#667085;margin:0 0 16px}.is-loading{opacity:.65;pointer-events:none}
@media(max-width:600px){.adwp-widget{padding:15px}.adwp-widget .adwp-open-form,.adwp-widget .adwp-subscribe{width:100%}.adwp-modal-dialog{margin:5vh auto 0;padding:24px 18px}.adwp-actions .button{flex:1}}

/* 2.1.4 - Solo color corporativo. No se fuerzan alturas ni dimensiones del tema. */
.adwp-widget .adwp-open-form,
.adwp-widget .adwp-subscribe,
.adwp-widget .adwp-close-form,
.adwp-widget .adwp-cancel,
.adwp-modal .adwp-subscribe,
.adwp-modal .adwp-cancel {
    background:#284259 !important;
    background-color:#284259 !important;
    border-color:#284259 !important;
    color:#fff !important;
    -webkit-text-fill-color:#fff !important;
    text-shadow:none !important;
}

.adwp-widget .adwp-open-form:hover,
.adwp-widget .adwp-open-form:focus,
.adwp-widget .adwp-subscribe:hover,
.adwp-widget .adwp-subscribe:focus,
.adwp-widget .adwp-close-form:hover,
.adwp-widget .adwp-close-form:focus,
.adwp-widget .adwp-cancel:hover,
.adwp-widget .adwp-cancel:focus,
.adwp-modal .adwp-subscribe:hover,
.adwp-modal .adwp-subscribe:focus,
.adwp-modal .adwp-cancel:hover,
.adwp-modal .adwp-cancel:focus {
    background:#284259 !important;
    background-color:#284259 !important;
    border-color:#284259 !important;
    color:#fff !important;
    -webkit-text-fill-color:#fff !important;
    opacity:.92;
}

/* 2.1.5 - Tarjetas Mobex: usamos el mismo elemento <a class="button"> del loop.
   Mobex conserva altura, padding y radio. El plugin solo define ancho y color. */
a.adwp-card-button,
a.adwp-card-button.is-active,
a.adwp-card-button:link,
a.adwp-card-button:visited {
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:100% !important;
    box-sizing:border-box !important;
    margin-top:0 !important;
    background:#284259 !important;
    background-color:#284259 !important;
    border-color:#284259 !important;
    color:#fff !important;
    -webkit-text-fill-color:#fff !important;
    text-align:center !important;
    text-decoration:none !important;
    text-shadow:none !important;
}
a.adwp-card-button:hover,
a.adwp-card-button:focus,
a.adwp-card-button:active,
a.adwp-card-button.is-active:hover,
a.adwp-card-button.is-active:focus {
    background:#284259 !important;
    background-color:#284259 !important;
    border-color:#284259 !important;
    color:#fff !important;
    -webkit-text-fill-color:#fff !important;
    opacity:.92;
}

/* 2.1.6 - Mobex: el aviso del loop es un botón real. Estos selectores tienen
   la misma jerarquía que las reglas del tema para las tarjetas y solo fijan
   apariencia; altura/padding/radio siguen viniendo de .button de Mobex. */
body ul.products li.product a.button.adwp-card-button,
body .loop-products .product a.button.adwp-card-button,
body ul.products li.product a.button.adwp-card-button:link,
body ul.products li.product a.button.adwp-card-button:visited,
body .loop-products .product a.button.adwp-card-button:link,
body .loop-products .product a.button.adwp-card-button:visited {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 0 !important;
    background: #284259 !important;
    background-color: #284259 !important;
    border-color: #284259 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-decoration: none !important;
    text-align: center !important;
    opacity: 1 !important;
    visibility: visible !important;
}
body ul.products li.product a.button.adwp-card-button:hover,
body ul.products li.product a.button.adwp-card-button:focus,
body ul.products li.product a.button.adwp-card-button:active,
body .loop-products .product a.button.adwp-card-button:hover,
body .loop-products .product a.button.adwp-card-button:focus,
body .loop-products .product a.button.adwp-card-button:active {
    background: #1e3447 !important;
    background-color: #1e3447 !important;
    border-color: #1e3447 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* 2.1.8 - Igualar SOLO el alto del aviso en tarjetas al botón Añadir al carrito de Mobex (34px medidos en navegador). */
body ul.products li.product a.button.adwp-card-button,
body .loop-products .product a.button.adwp-card-button {
    height: 34px !important;
    min-height: 34px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 34px !important;
}


/* 2.1.9 - Productos agotados: sin precio y alineación de tarjetas. */
body ul.products li.product a.button.adwp-card-button,
body .loop-products .product a.button.adwp-card-button {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Sustituye el precio por AGOTADO en listados, búsquedas y carruseles. */
.adwp-out-of-stock-price {
    display: inline-block !important;
    color: #BF3617 !important;
    -webkit-text-fill-color: #BF3617 !important;
    font: inherit !important;
    font-size: inherit !important;
    font-weight: 700 !important;
    line-height: inherit !important;
    text-decoration: none !important;
}

/* En la ficha individual Mobex/WooCommerce ya imprime "Agotado".
   Solo lo hacemos un poco más visible; no se crea un segundo texto. */
.single-product .stock.out-of-stock,
.single-product p.stock.out-of-stock,
.single-product .woocommerce-variation-availability .stock.out-of-stock {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #BF3617 !important;
    -webkit-text-fill-color: #BF3617 !important;
}


/* 2.1.10 - Unificar el estado de agotado con el color corporativo solicitado. */
.adwp-out-of-stock-price,
.single-product .stock.out-of-stock,
.single-product p.stock.out-of-stock,
.single-product .woocommerce-variation-availability .stock.out-of-stock {
    color: #BF3617 !important;
    -webkit-text-fill-color: #BF3617 !important;
}
