/* Mi Salud Addons — estilos de módulos */

/* Wishlist */
ul.products li.product{position:relative}
.msa-wishlist-toggle{display:inline-grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #dfe8d9;border-radius:50%;background:#fff;color:#2f6b3a;cursor:pointer;box-shadow:0 5px 16px rgba(33,48,31,.12);transition:color .18s,background .18s,transform .18s,border-color .18s;z-index:5}
.msa-wishlist-toggle:hover{transform:translateY(-1px);background:#fbeee5;color:#b9522a;border-color:#efc5b0}
.msa-wishlist-toggle:focus-visible{outline:3px solid #2f6b3a;outline-offset:3px}
.msa-wishlist-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.msa-wishlist-toggle.is-active{background:#fbeee5;color:#b9522a;border-color:#e06b37}.msa-wishlist-toggle.is-active svg{fill:currentColor}
.msa-wishlist-toggle--card{position:absolute;top:12px;right:12px}
.msa-wishlist-product{display:flex;align-items:center;gap:10px;margin:0 0 18px;color:#526457;font-weight:700}.msa-wishlist-product .msa-wishlist-toggle{position:static;box-shadow:none}
.msa-wishlist-page{min-height:60vh;background:#faf7f0;padding-bottom:64px}.msa-wishlist-hero{text-align:center;padding:clamp(44px,7vw,76px) 20px;background:linear-gradient(135deg,#e8f3ea,#faf7f0 62%,#fbeee5)}
.msa-wishlist-hero-icon{display:grid;place-items:center;width:64px;height:64px;margin:0 auto 12px;border-radius:20px;background:#fff;color:#b9522a;box-shadow:0 10px 28px rgba(33,48,31,.1)}.msa-wishlist-hero-icon svg{width:32px;height:32px;fill:#fbeee5;stroke:currentColor;stroke-width:1.7}
.msa-wishlist-kicker{margin:0 0 8px;color:#b9522a;font:700 12px/1.2 Poppins,sans-serif;letter-spacing:.12em;text-transform:uppercase}.msa-wishlist-hero h1{margin:0;color:#21301f;font:700 clamp(30px,5vw,52px)/1.08 Poppins,sans-serif;letter-spacing:-.04em}.msa-wishlist-hero>p:last-child{max-width:600px;margin:14px auto 0;color:#526457}
.msa-wishlist-content{padding-top:40px}.msa-wishlist-loading{text-align:center;color:#526457;font-weight:700;padding:44px}.msa-wishlist-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:20px}
.msa-wishlist-card{position:relative;overflow:hidden;display:flex;flex-direction:column;background:#fff;border:1px solid #e1e8dd;border-radius:20px;box-shadow:0 5px 20px rgba(33,48,31,.05)}.msa-wishlist-card-image{display:block;aspect-ratio:1;background:#fff}.msa-wishlist-card-image img{width:100%;height:100%;object-fit:contain;padding:16px}
.msa-wishlist-card-body{display:flex;flex:1;flex-direction:column;padding:16px 18px 18px}.msa-wishlist-card h2{margin:0 0 8px;font:600 1rem/1.45 Poppins,sans-serif}.msa-wishlist-card h2 a{color:#21301f}.msa-wishlist-card-price{margin:0 0 16px;color:#b9522a;font:600 1.08rem/1.4 Poppins,sans-serif}.msa-wishlist-card .button{margin-top:auto;text-align:center;border-radius:10px}
.msa-wishlist-empty{text-align:center;max-width:560px;margin:0 auto;padding:44px 24px;background:#fff;border:1px solid #e1e8dd;border-radius:22px}.msa-wishlist-empty>svg{width:48px;height:48px;fill:none;stroke:#b9522a;stroke-width:1.5}.msa-wishlist-empty h2{margin:12px 0 6px;color:#21301f;font:600 clamp(22px,4vw,30px)/1.2 Poppins,sans-serif}.msa-wishlist-empty p{margin:0 0 22px;color:#526457}
@media(max-width:520px){.msa-wishlist-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.msa-wishlist-card-body{padding:12px}.msa-wishlist-card h2{font-size:.88rem}.msa-wishlist-card .button{padding:10px 8px;font-size:.78rem}.msa-wishlist-toggle--card{top:8px;right:8px}}

/* Botón de WhatsApp en producto */
.msa-wa-btn{display:inline-flex;align-items:center;gap:10px;background:#25d366;color:#083c1c;font-weight:800;padding:13px 26px;border-radius:999px;margin:10px 0 0;text-decoration:none;transition:transform .2s,box-shadow .2s;font-size:1rem}
.msa-wa-btn:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(37,211,102,.35);color:#083c1c}
.msa-wa-btn svg{width:20px;height:20px;fill:currentColor;flex:none}
.msa-wa-note{margin:8px 0 0;font-size:.84rem;color:#6b7a6e}

/* Sellos de confianza */
.msa-badges{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin:18px 0}
.msa-badge{display:flex;align-items:center;gap:12px;background:#fff;border-radius:16px;padding:14px 16px;box-shadow:0 4px 14px rgba(47,107,58,.08)}
.msa-badge-ico{font-size:1.5rem;line-height:1}
.msa-badge-txt{display:flex;flex-direction:column}
.msa-badge-txt strong{color:#2F6B3A;font-size:.95rem}
.msa-badge-txt small{color:#6b7a6e;font-size:.8rem}

/* Checkout Blocks — formulario sencillo de Costa Rica */
body.woocommerce-checkout:not(.woocommerce-order-received) .entry-header{text-align:left;margin-block-end:12px}
body.woocommerce-checkout:not(.woocommerce-order-received) .entry-title{color:#21301f;font-size:clamp(30px,4vw,44px);letter-spacing:-.03em}
body.woocommerce-checkout .wp-block-woocommerce-checkout{margin-block:0 56px;padding:0}
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar{background:#fff;border:1px solid #e1e8dd;border-radius:20px;padding:clamp(18px,2.5vw,28px)}
body.woocommerce-checkout .wc-block-checkout__sidebar{box-shadow:0 8px 28px rgba(33,48,31,.04)}
body.woocommerce-checkout .wc-block-components-checkout-step{padding-inline-start:0}
body.woocommerce-checkout .wc-block-components-checkout-step__container{padding-inline-start:0}
body.woocommerce-checkout .wc-block-components-checkout-step__heading{margin-block-end:16px}
body.woocommerce-checkout .wc-block-components-checkout-step__title,
body.woocommerce-checkout .wc-block-components-title{color:#21301f;font-family:Poppins,sans-serif;font-weight:600}
body.woocommerce-checkout .wc-block-components-checkout-step__description{color:#526457}
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-combobox-control input,
body.woocommerce-checkout .wc-block-components-select .wc-block-components-select__select,
body.woocommerce-checkout textarea{min-height:48px;border:1px solid #cfd9cc!important;border-radius:10px!important;background:#fff!important;color:#21301f!important}
body.woocommerce-checkout .wc-block-components-text-input label,
body.woocommerce-checkout .wc-block-components-combobox-control label{color:#526457!important}
body.woocommerce-checkout .wc-block-components-address-form{gap:14px}
body.woocommerce-checkout .wc-block-components-address-form__country{display:none}
/* Valores derivados por Woo Barrios CR: permanecen en el DOM y se envían con la orden. */
body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-address-form__city,
body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-address-form__postcode,
body.woocommerce-checkout:not(.woocommerce-order-received) :is(#billing_city_field,#shipping_city_field,#billing_postcode_field,#shipping_postcode_field){display:none!important}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button{min-height:54px;border:0;border-radius:12px;background:#2f6b3a;color:#fff;font-weight:600;text-decoration:none}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover{background:#24552e;color:#fff}
body.woocommerce-checkout :is(a,button,input,select,textarea):focus-visible{outline:3px solid #2f6b3a!important;outline-offset:3px}
body.woocommerce-checkout .wc-block-components-order-summary{color:#21301f}
body.woocommerce-checkout .wc-block-components-order-summary-item__image img{border-radius:10px}
body.woocommerce-checkout .wc-block-components-totals-footer-item{font-size:20px;color:#21301f}
body.woocommerce-checkout .wc-block-components-radio-control__option{min-height:48px}
body.woocommerce-checkout .wc-block-components-radio-control__label:has(.msa-shipping-icon){display:inline-flex;align-items:center;gap:10px}
body.woocommerce-checkout .msa-shipping-icon{display:inline-grid;place-items:center;width:36px;height:36px;flex:0 0 36px;border-radius:10px;background:#f1f6ed;color:#2f6b3a}
body.woocommerce-checkout .msa-shipping-icon svg{display:block;width:23px;height:23px;fill:currentColor}
body.woocommerce-checkout .wc-block-components-radio-control__option-checked .msa-shipping-icon{background:#e6f0df;color:#24552e}
/* Badge "Gratis" de la opción de recogida en tienda (verde claro del tema). */
body.woocommerce-checkout .msa-shipping-badge{display:inline-flex;align-items:center;min-height:22px;padding:1px 10px;border-radius:999px;font-size:.72rem;font-weight:700;line-height:1.4;letter-spacing:.01em;white-space:nowrap}
body.woocommerce-checkout .msa-shipping-badge--gratis{background:#e8f3ea;color:#2f6b3a;border:1px solid #bcd8c0}
@media(max-width:800px){
	body.woocommerce-checkout .wc-block-checkout__main,
	body.woocommerce-checkout .wc-block-checkout__sidebar{width:100%;padding:18px;margin-block-end:18px}
}
@media(max-width:400px){
	body.woocommerce-checkout .wc-block-checkout__main,
	body.woocommerce-checkout .wc-block-checkout__sidebar{padding:14px}
}

/* Confirmación de compra */
body.woocommerce-order-received{background:#f7f3ea}
body.woocommerce-order-received .entry-header{display:none}
body.woocommerce-order-received .site-main{max-width:980px;margin-inline:auto}
body.woocommerce-order-received .woocommerce{color:#21301f}
body.woocommerce-order-received .msa-thankyou-hero{position:relative;overflow:hidden;text-align:center;margin:0 0 24px;padding:clamp(28px,6vw,56px);border:1px solid #dfe8d9;border-radius:28px;background:linear-gradient(145deg,#f4f7ed 0%,#fff 55%,#fff3e9 100%);box-shadow:0 18px 55px rgba(33,48,31,.08)}
body.woocommerce-order-received .msa-thankyou-hero:after{content:"";position:absolute;width:220px;height:220px;inset:auto -90px -110px auto;border-radius:50%;background:#e06b37;opacity:.09}
body.woocommerce-order-received .msa-thankyou-hero>img{width:116px;height:116px;object-fit:contain;margin:0 auto 16px;padding:9px;border-radius:50%;background:#fff;box-shadow:0 10px 28px rgba(33,48,31,.14)}
body.woocommerce-order-received .msa-thankyou-check{display:grid;place-items:center;width:62px;height:62px;margin:-43px auto 16px;border:5px solid #f4f7ed;border-radius:50%;background:#2f6b3a;color:#fff;position:relative}
body.woocommerce-order-received .msa-thankyou-check svg{width:33px;height:33px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
body.woocommerce-order-received .msa-thankyou-kicker{margin:0 0 8px;color:#b94f25;font:700 12px/1.2 Poppins,sans-serif;letter-spacing:.14em;text-transform:uppercase}
body.woocommerce-order-received .msa-thankyou-hero h1{margin:0;color:#21301f;font:700 clamp(28px,5vw,46px)/1.08 Poppins,sans-serif;letter-spacing:-.035em}
body.woocommerce-order-received .msa-thankyou-message{max-width:720px;margin:16px auto 0;color:#526457;font-size:clamp(15px,2vw,18px)}
body.woocommerce-order-received .msa-thankyou-message a{font-weight:700;text-underline-offset:3px}
body.woocommerce-order-received .msa-thankyou-delivery{position:relative;z-index:1;max-width:760px;margin:30px auto 0;padding-top:24px;border-top:1px solid #dfe8d9;text-align:left}
body.woocommerce-order-received .msa-thankyou-delivery>h2{margin:0 0 15px;text-align:center;color:#21301f;font:600 clamp(18px,2.5vw,22px)/1.25 Poppins,sans-serif}
body.woocommerce-order-received .msa-thankyou-delivery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
body.woocommerce-order-received .msa-thankyou-delivery-card{display:flex;align-items:center;gap:14px;margin:0;padding:18px;border:1px solid #dfe8d9;border-radius:16px;background:rgba(255,255,255,.9);box-shadow:0 6px 18px rgba(33,48,31,.05)}
body.woocommerce-order-received .msa-thankyou-delivery-icon{display:grid;place-items:center;width:46px;height:46px;flex:0 0 46px;border-radius:14px;background:#edf4e8;color:#2f6b3a}
body.woocommerce-order-received .msa-thankyou-delivery-icon svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.woocommerce-order-received .msa-thankyou-delivery-card h3{margin:0 0 4px;color:#21301f;font:600 16px/1.25 Poppins,sans-serif}
body.woocommerce-order-received .msa-thankyou-delivery-card p{margin:0;color:#526457;font-size:15px;line-height:1.45}
body.woocommerce-order-received .woocommerce-notice--success{margin:0 0 24px;padding:18px 22px;border:1px solid #dfe8d9;border-left:5px solid #2f6b3a;border-radius:14px;background:#fff;color:#3f5141}
body.woocommerce-order-received .woocommerce-order-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 28px;padding:0;list-style:none}
body.woocommerce-order-received .woocommerce-order-overview li{float:none;width:auto;margin:0;padding:16px;border:1px solid #dfe8d9;border-radius:14px;background:#fff;color:#667466;font-size:12px;line-height:1.45;text-transform:none}
body.woocommerce-order-received .woocommerce-order-overview li strong{display:block;margin-top:5px;color:#21301f;font:600 15px/1.35 Poppins,sans-serif;overflow-wrap:anywhere}
body.woocommerce-order-received :is(.woocommerce-order-details,.woocommerce-customer-details,.woocommerce-bacs-bank-details){margin:0 0 24px;padding:clamp(18px,3vw,28px);border:1px solid #dfe8d9;border-radius:20px;background:#fff;box-shadow:0 8px 28px rgba(33,48,31,.04)}
body.woocommerce-order-received :is(.woocommerce-order-details__title,.woocommerce-column__title,.wc-bacs-bank-details-heading){margin:0 0 18px;color:#21301f;font:600 clamp(20px,3vw,26px)/1.25 Poppins,sans-serif}
body.woocommerce-order-received table.shop_table{margin:0;border:0;border-collapse:collapse}
body.woocommerce-order-received table.shop_table :is(th,td){padding:13px 10px;border-color:#e8ede5;background:transparent}
body.woocommerce-order-received table.shop_table tfoot tr:last-child{color:#21301f;font-size:18px}
body.woocommerce-order-received .woocommerce-customer-details address{padding:0;border:0;color:#526457;line-height:1.75}
body.woocommerce-order-received a{color:#2f6b3a}
@media(max-width:760px){body.woocommerce-order-received .woocommerce-order-overview{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){body.woocommerce-order-received .msa-thankyou-delivery-grid{grid-template-columns:1fr}body.woocommerce-order-received .msa-thankyou-delivery-card{padding:15px}}
@media(max-width:420px){body.woocommerce-order-received .msa-thankyou-hero{padding:26px 18px;border-radius:20px}body.woocommerce-order-received .msa-thankyou-hero>img{width:104px;height:104px}body.woocommerce-order-received .msa-thankyou-check{width:56px;height:56px;margin-top:-40px}body.woocommerce-order-received .woocommerce-order-overview{grid-template-columns:1fr}body.woocommerce-order-received :is(.woocommerce-order-details,.woocommerce-customer-details,.woocommerce-bacs-bank-details){padding:16px;border-radius:16px}}
