/* AllTree · estilos base + partes interactivas.
   El resto del diseño vive en Bricks (clases globales y paleta). */

:root {
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
}

html { scroll-behavior: smooth; background: var(--night); }
body { background: var(--night); color: var(--cream); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
::selection { background: var(--wood-light); color: var(--night); }
a { color: var(--wood-light); }
strong { font-weight: 600; }
.lead strong, .presale strong, .included__text strong, .fine strong, .faq-a strong, .policy__text strong { color: var(--cream); }
.fine strong { color: var(--ink-soft); }

/* Header fijo */
#brx-header { position: sticky; top: 0; z-index: 50; }
#header-bar { position: relative; }

/* Logo: símbolo como fondo (Bricks no guarda SVG en línea) */
.logo::before, .footer__logo::before {
  content: ""; width: 36px; height: 36px; flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M5 99 L50 5 L95 99' fill='none' stroke='%23f5f1e8' stroke-width='9' stroke-miterlimit='10'/%3E%3Cpath d='M42 38 L50 23 L58 38' fill='none' stroke='%23f5f1e8' stroke-width='4'/%3E%3Cpath fill='%23f5f1e8' d='M50 35 L63 54 H37 Z'/%3E%3Cpath fill='%23f5f1e8' d='M50 57 L78 72 L82 78 H18 L22 72 Z'/%3E%3Crect x='46' y='78' width='8' height='21' fill='%23b5835a'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wordmark, .footer__wordmark { display: inline-flex; align-items: flex-end; }
.wordmark > *, .footer__wordmark > * { display: inline-block; }
.ll { transform: scaleY(1.12); transform-origin: 50% 100%; }
.cart-count.is-visible { display: inline-flex; }
.cart-link svg, .menu-toggle svg { display: block; }

@media (max-width: 991px) {
  .logo::before { width: 32px; height: 32px; }
  #nav.is-open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start;
    background: var(--night); padding: 24px 16px 32px; gap: 18px; border-bottom: 1px solid var(--line);
  }
  #nav.is-open .nav__link { font-size: 1.2rem; }
}

/* Íconos inyectados */
.ico svg, .contact-card__icon svg, .check-icon { display: block; color: var(--wood-light); }
.included__item > svg { flex-shrink: 0; margin-top: 4px; }
.cta-band__mark { position: absolute; right: -30px; bottom: -50px; width: 280px; height: 280px; opacity: .1; pointer-events: none; color: var(--cream); }
.cta-band > :not(svg) { position: relative; }

/* Fotos: Bricks guardó width/height fijos por ID desde los atributos del <img>; aquí manda el layout */
img.hero__img { width: auto !important; height: auto !important; }
img.shop__photo { width: auto !important; height: 100% !important; max-width: 100%; }
img.why__img { width: 100% !important; height: 100% !important; }
/* Fotos */
.why__photo { position: relative; }
.why__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 75%; }
.gallery__item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery__item:hover img { transform: scale(1.04); }
.shop__photo { transition: opacity .2s; }
.shop__photo.is-loading { opacity: .6; }

/* FAQ acordeón */
.faq-q { user-select: none; }
.faq-q::after { transition: transform .2s; }
.faq-item .faq-a { display: none; }
.faq-item.is-open { border-color: var(--line-strong); background: var(--surface-raised); }
.faq-item.is-open .faq-a { display: block; }
.faq-item.is-open .faq-q::after { transform: rotate(45deg); }

/* Botones (también para las partes generadas por JS) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-weight: 500; font-size: 1rem; letter-spacing: -.01em; line-height: 1.2; padding: 15px 26px; border-radius: 999px; border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: transform .15s, background .2s, color .2s, border-color .2s; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--wood-light); outline-offset: 3px; }
.btn--primary { background: var(--cream); color: var(--night); }
.btn--primary:hover { background: #fff; }
.btn--block { width: 100%; }

/* Configurador */
.option-group { margin-bottom: 30px; border: 0; padding: 0; min-width: 0; }
.option-title { font-weight: 500; font-size: 1.05rem; color: var(--cream); margin-bottom: 12px; padding: 0; }
.option-title .fine-inline { font-size: .85rem; font-weight: 400; color: var(--ink-mute); }
.size-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label { display: block; cursor: pointer; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface-raised); transition: border-color .2s, box-shadow .2s, background .2s; color: var(--cream); }
.choice label:hover { border-color: rgba(245, 241, 232, .32); }
.choice input:checked + label { border-color: var(--wood-light); background: var(--pine); box-shadow: 0 0 0 3px rgba(181, 131, 90, .18); }
.choice input:focus-visible + label { outline: 2px solid var(--wood-light); outline-offset: 2px; }
.choice .size { display: block; font-size: 1.7rem; font-weight: 500; letter-spacing: -.03em; color: var(--cream); line-height: 1; }
.choice .size small { font-size: .9rem; font-weight: 400; }
.choice .meta { display: block; color: var(--ink-soft); font-size: .88rem; line-height: 1.5; margin: 6px 0 10px; }
.choice .price { font-weight: 600; color: var(--cream); }
.choice .badge { position: absolute; top: -10px; right: 14px; background: var(--wood-light); color: var(--night); font-size: .68rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; letter-spacing: .12em; line-height: 1.5; }

.addon { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface-raised); cursor: pointer; margin-bottom: 12px; transition: border-color .2s, background .2s; }
.addon:hover { border-color: rgba(245, 241, 232, .32); }
.addon:has(input:checked) { border-color: var(--wood-light); background: var(--pine); }
.addon input { width: 22px; height: 22px; accent-color: var(--wood-light); margin-top: 3px; flex-shrink: 0; }
.addon__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--surface-high); display: grid; place-items: center; flex-shrink: 0; color: var(--wood-light); }
.addon:has(input:checked) .addon__icon { background: rgba(11, 21, 17, .35); }
.addon__body { flex: 1; }
.addon__name { display: flex; justify-content: space-between; gap: 10px; font-weight: 500; color: var(--cream); }
.addon__desc { display: block; color: var(--ink-soft); font-size: .92rem; line-height: 1.5; margin-top: 2px; }

.summary-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0 4px; border-top: 1px solid var(--line); }
.summary-bar .total small { display: block; color: var(--ink-mute); font-size: .78rem; letter-spacing: .28em; text-transform: uppercase; }
.summary-bar .total strong { display: block; font-size: 2rem; font-weight: 500; letter-spacing: -.03em; line-height: 1.2; color: var(--cream); }
@media (max-width: 478px) { .size-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .choice label { padding: 16px; } .checkout-block { padding: 18px; } }

/* Formularios */
.alltree-form h2 { font-size: 1.6rem; line-height: 1.1; letter-spacing: -.035em; font-weight: 500; color: var(--cream); margin: 0 0 20px; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 500; font-size: .92rem; color: var(--ink-soft); }
.field label .opt { font-weight: 400; color: var(--ink-mute); font-size: .85rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 767px) { .field-row { grid-template-columns: 1fr; } }
.alltree-form input[type="text"], .alltree-form input[type="email"], .alltree-form input[type="tel"], .alltree-form select, .alltree-form textarea {
  font: inherit; font-size: 1rem; color: var(--cream); width: 100%; padding: 13px 15px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--night);
}
.alltree-form input::placeholder, .alltree-form textarea::placeholder { color: var(--ink-mute); }
.alltree-form select option { background: var(--surface-raised); color: var(--cream); }
.alltree-form input:focus, .alltree-form select:focus, .alltree-form textarea:focus { outline: none; border-color: var(--wood-light); box-shadow: 0 0 0 3px rgba(181, 131, 90, .2); }
.alltree-form textarea { min-height: 140px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; font-size: .85rem; color: var(--ink-mute); }
.consent input { accent-color: var(--wood-light); margin-top: 4px; }

/* Checkout */
.checkout { display: grid; grid-template-columns: 1.3fr .9fr; gap: 48px; align-items: start; }
.checkout h2 { font-size: 1.4rem; line-height: 1.1; letter-spacing: -.035em; font-weight: 500; color: var(--cream); margin: 0 0 18px; }
.checkout-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); margin-bottom: 20px; }
.order { position: sticky; top: 140px; background: var(--pine); border-radius: var(--radius-lg); padding: 28px; color: rgba(245, 241, 232, .88); }
.order-line { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(245, 241, 232, .14); font-size: .97rem; }
.order-line > span:first-child { min-width: 0; }
.order-line > span:last-child { font-weight: 600; white-space: nowrap; color: var(--cream); }
.order-line .fine { display: block; font-size: .85rem; color: rgba(245, 241, 232, .65); margin: 0; }
.order-line.total { border-bottom: 0; font-size: 1.35rem; font-weight: 500; letter-spacing: -.02em; color: var(--cream); padding-top: 18px; }
.order-line .free { color: #a9dcbd; }
.order .fine, .checkout .fine { font-size: .85rem; line-height: 1.6; color: rgba(245, 241, 232, .65); }
.order .fine a { color: var(--cream); }
.pay-options { display: grid; gap: 10px; }
.pay-options .choice label { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 500; padding: 18px 20px; }
.pay-options .choice label small { font-weight: 400; color: var(--ink-soft); font-size: .88rem; }
@media (max-width: 991px) { .checkout { grid-template-columns: minmax(0, 1fr); gap: 0; } .order { position: static; } }

/* Modal y toast */
.alltree-modal { position: fixed; inset: 0; background: rgba(5, 10, 8, .72); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 100; }
.alltree-modal.is-open { display: flex; }
.alltree-modal__box { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 40px 32px; max-width: 460px; width: 100%; text-align: center; }
.alltree-modal__box svg { width: 64px; height: 64px; margin: 0 auto 20px; display: block; }
.alltree-modal__box h2 { font-size: 1.8rem; line-height: 1.1; letter-spacing: -.035em; font-weight: 500; color: var(--cream); margin: 0 0 12px; }
.alltree-modal__box p { color: var(--ink-soft); margin: 0 0 24px; }
.alltree-modal__box strong { color: var(--cream); }

.alltree-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 160%);
  background: var(--cream); color: var(--night); padding: 14px 22px; border-radius: 999px;
  font-weight: 500; box-shadow: var(--shadow); transition: transform .3s; z-index: 90; max-width: calc(100% - 32px);
  display: flex; gap: 14px; align-items: center; visibility: hidden;
}
.alltree-toast a { color: var(--wood); font-weight: 600; }
.alltree-toast.is-visible { transform: translate(-50%, 0); visibility: visible; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .gallery__item img { transition: none; } }

/* Migas: Bricks separa el enlace y el texto en dos elementos */
.breadcrumbs { display: flex; flex-direction: row; flex-wrap: wrap; gap: .4em; }

/* Footer en tablet/móvil: marca a todo lo ancho, "Tu árbol" y "Contacto" lado a lado, Legal en dos columnas */
@media (max-width: 991px) {
  #brx-footer .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; margin-bottom: 40px; }
  #brx-footer .footer__brand { grid-column: 1 / -1; }
  #brx-footer .footer__text { max-width: 46ch; }
  #brx-footer .footer__col:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
  #brx-footer .footer__col:last-child .footer__title { grid-column: 1 / -1; }
}
@media (max-width: 478px) {
  #brx-footer .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px 16px; }
  #brx-footer .footer__link { font-size: .9rem; }
  #brx-footer .footer__col:last-child { gap: 10px 16px; }
}
@media (max-width: 767px) { #brx-footer .footer__bottom { flex-direction: column; gap: 4px; } }

/* Pago con Mercado Pago */
.mp-box { border: 1px solid var(--line-strong); background: var(--surface-raised); border-radius: var(--radius); padding: 18px 20px; }
.mp-box__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.mp-box__head strong { color: var(--cream); font-weight: 600; }
.mp-box__head span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wood-light); }
.mp-box p { margin: 0; font-size: .93rem; line-height: 1.6; color: var(--ink-soft); }
.mp-box p strong { color: var(--cream); font-weight: 500; }
#pay-btn[disabled] { opacity: .7; cursor: progress; }

/* Página de gracias */
.thanks { max-width: 620px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.thanks__mark { width: 72px; height: 72px; color: var(--cream); margin-bottom: 24px; }
.thanks__title { font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 500; color: var(--cream); margin: 0 0 12px; }
.thanks__order { font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; color: var(--wood-light); margin: 0 0 16px; }
.thanks__order strong { color: var(--cream); }
.thanks__text { font-size: 1.12rem; line-height: 1.6; color: var(--ink-soft); margin: 0 0 32px; }
.thanks__ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--cream); background: transparent; }
.btn--ghost:hover { border-color: var(--cream); background: rgba(245, 241, 232, .06); }

.checkout > *, .alltree-form .field { min-width: 0; }

/* Checkout: árbol elegido en tarjeta compacta */
.picked { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 16px 14px 14px; border: 1px solid var(--wood-light); background: var(--pine); border-radius: var(--radius); box-shadow: 0 0 0 3px rgba(181, 131, 90, .14); }
.picked[hidden], .picker[hidden], .picker__done[hidden] { display: none; }
.picked__img { width: 76px; height: 96px; border-radius: 10px; background: radial-gradient(70% 60% at 50% 70%, rgba(11, 21, 17, .2), transparent 75%), var(--night); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; padding: 6px 0 4px; }
.picked__img img { height: 100%; width: auto; }
.picked__title { color: var(--cream); font-size: 1.05rem; line-height: 1.3; }
.picked__title strong { font-weight: 600; }
.picked__meta { color: rgba(245, 241, 232, .7); font-size: .85rem; line-height: 1.45; margin-top: 2px; }
.picked__extras { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.picked__extras span { font-size: .78rem; line-height: 1.4; padding: 3px 9px; border-radius: 999px; background: rgba(11, 21, 17, .35); color: var(--cream); }
.picked__extras span.none { background: transparent; padding-left: 0; color: rgba(245, 241, 232, .6); }
.picked__side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.picked__price { color: var(--cream); font-weight: 600; font-size: 1.15rem; letter-spacing: -.02em; white-space: nowrap; }
.picked__change { font: inherit; font-size: .85rem; font-weight: 500; color: var(--cream); background: transparent; border: 1px solid rgba(245, 241, 232, .35); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.picked__change:hover { border-color: var(--cream); background: rgba(245, 241, 232, .08); }
.picker__done { margin-top: 4px; }
@media (max-width: 478px) {
  .picked { grid-template-columns: 64px minmax(0, 1fr); }
  .picked__img { width: 64px; height: 84px; }
  .picked__side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; border-top: 1px solid rgba(245, 241, 232, .14); padding-top: 12px; }
}

/* ---------- WooCommerce · Pagar pedido (/finalizar-compra/order-pay/…) ---------- */
body.woocommerce-order-pay #brx-content { width: min(100% - 32px, 720px); margin: 0 auto; padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 9vw, 112px); color: var(--ink-soft); }
body.woocommerce-order-pay #brx-content > h1 { display: none; }
.pay-head { margin-bottom: 28px; }
.pay-head .eyebrow-js { font-size: .74rem; letter-spacing: .32em; text-transform: uppercase; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.pay-head .eyebrow-js::before { content: ""; width: 32px; height: 1px; background: var(--wood-light); }
.pay-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.2rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 500; color: var(--cream); margin: 0 0 10px; }
.pay-head p { font-size: 1.08rem; line-height: 1.6; margin: 0; color: var(--ink-soft); }
.pay-head p strong { color: var(--cream); font-weight: 500; }

body.woocommerce-order-pay .shop_table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--pine); color: rgba(245, 241, 232, .88); border-radius: var(--radius-lg); overflow: hidden; margin: 0 0 20px; border: 0; }
body.woocommerce-order-pay .shop_table thead { display: none; }
body.woocommerce-order-pay .shop_table th, body.woocommerce-order-pay .shop_table td { padding: 14px 24px; border: 0; border-bottom: 1px solid rgba(245, 241, 232, .14); text-align: left; font-weight: 400; font-size: .97rem; line-height: 1.5; background: transparent; vertical-align: top; }
body.woocommerce-order-pay .shop_table tbody td:first-child { padding-top: 22px; color: var(--cream); font-weight: 500; font-size: 1.05rem; }
body.woocommerce-order-pay .shop_table tbody td { padding-top: 22px; }
body.woocommerce-order-pay .shop_table td.product-quantity strong { font-weight: 400; color: rgba(245, 241, 232, .7); }
body.woocommerce-order-pay .shop_table td:last-child, body.woocommerce-order-pay .shop_table tfoot td { text-align: right; color: var(--cream); font-weight: 600; }
body.woocommerce-order-pay .shop_table tfoot tr:nth-last-child(2) th, body.woocommerce-order-pay .shop_table tfoot tr:nth-last-child(2) td { font-size: 1.35rem; font-weight: 500; letter-spacing: -.02em; color: var(--cream); padding-top: 18px; }
body.woocommerce-order-pay .shop_table tfoot tr:last-child th, body.woocommerce-order-pay .shop_table tfoot tr:last-child td { border-bottom: 0; padding-bottom: 22px; font-size: .9rem; color: rgba(245, 241, 232, .7); font-weight: 400; }

body.woocommerce-order-pay #payment { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 28px); }
body.woocommerce-order-pay #payment ul.payment_methods { list-style: none; margin: 0 0 18px; padding: 0; border: 0; }
body.woocommerce-order-pay #payment li.wc_payment_method > label { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--cream); font-weight: 500; font-size: 1.05rem; margin-bottom: 14px; }
body.woocommerce-order-pay #payment li.wc_payment_method > label img { height: 28px; width: auto; }
body.woocommerce-order-pay .payment_box { background: transparent !important; padding: 0 !important; margin: 0 !important; color: var(--ink-soft); }
body.woocommerce-order-pay .payment_box::before { display: none !important; }
body.woocommerce-order-pay .mp-checkout-container, body.woocommerce-order-pay .mp-checkout-pro-container, body.woocommerce-order-pay .mp-checkout-pro-content { background: transparent !important; padding: 0 !important; margin: 0 !important; box-shadow: none !important; border: 0 !important; }
body.woocommerce-order-pay .mp-checkout-pro-benefits-title { color: var(--cream) !important; font-family: inherit !important; font-weight: 500 !important; font-size: 1rem !important; text-align: left !important; margin: 0 0 12px !important; }
body.woocommerce-order-pay .mp-checkout-pro-benefits { display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px !important; margin: 0 0 14px !important; }
body.woocommerce-order-pay .mp-checkout-pro-benefit { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px !important; margin: 0 !important; align-items: flex-start; }
body.woocommerce-order-pay .mp-checkout-pro-benefit img, body.woocommerce-order-pay .mp-checkout-pro-redirect-title img { filter: invert(1) brightness(1.6); opacity: .8; }
body.woocommerce-order-pay .mp-checkout-pro-benefit-description, body.woocommerce-order-pay .mp-checkout-pro-redirect-description { color: var(--ink-soft) !important; font-family: inherit !important; font-size: .9rem !important; line-height: 1.5 !important; }
body.woocommerce-order-pay .mp-checkout-pro-benefit-description b { color: var(--cream); font-weight: 500; }
body.woocommerce-order-pay .mp-checkout-pro-payment-methods { justify-content: flex-start !important; gap: 8px; margin: 0 0 14px !important; padding: 0 !important; }
body.woocommerce-order-pay .mp-checkout-pro-payment-methods img { background: #fff; border-radius: 6px; padding: 3px; height: 26px !important; width: auto !important; }
body.woocommerce-order-pay .mp-checkout-pro-redirect { background: var(--surface-raised) !important; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px !important; text-align: left !important; margin: 0 !important; }
body.woocommerce-order-pay .mp-checkout-pro-redirect-title { color: var(--cream) !important; font-family: inherit !important; font-weight: 500 !important; font-size: .95rem !important; justify-content: flex-start !important; margin: 0 0 2px !important; }

body.woocommerce-order-pay #payment .form-row { padding: 0; margin: 0; }
body.woocommerce-order-pay .woocommerce-privacy-policy-text p { font-size: .82rem; line-height: 1.6; color: var(--ink-mute); margin: 0 0 16px; }
body.woocommerce-order-pay .woocommerce-privacy-policy-text a { color: var(--ink-soft); }
body.woocommerce-order-pay #place_order { display: flex; width: 100%; align-items: center; justify-content: center; font: inherit; font-weight: 500; font-size: 1.05rem; letter-spacing: -.01em; padding: 17px 26px; border-radius: 999px; border: 0; background: var(--cream); color: var(--night); cursor: pointer; transition: background .2s, transform .15s; }
body.woocommerce-order-pay #place_order:hover { background: #fff; }
body.woocommerce-order-pay #place_order:active { transform: translateY(1px); }
body.woocommerce-order-pay .woocommerce-notices-wrapper .woocommerce-error, body.woocommerce-order-pay .woocommerce-notices-wrapper .woocommerce-info { list-style: none; background: rgba(208, 106, 92, .12); border: 1px solid rgba(208, 106, 92, .4); color: #f0c2bb; border-radius: var(--radius); padding: 14px 18px; margin: 0 0 20px; }

@media (max-width: 478px) {
  body.woocommerce-order-pay .shop_table th, body.woocommerce-order-pay .shop_table td { padding-left: 18px; padding-right: 18px; }
  body.woocommerce-order-pay .shop_table td.product-quantity { display: none; }
  body.woocommerce-order-pay .shop_table tfoot tr:last-child th { white-space: nowrap; }
  body.woocommerce-order-pay .mp-checkout-pro-benefits { grid-template-columns: 1fr; }
}

/* order-pay: filas flexibles (la tabla de Woo se aprieta en móvil) y textos del widget de MP */
body.woocommerce-order-pay .shop_table, body.woocommerce-order-pay .shop_table tbody, body.woocommerce-order-pay .shop_table tfoot { display: block; }
body.woocommerce-order-pay .shop_table tr { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 1px solid rgba(245, 241, 232, .14); padding: 14px 24px; }
body.woocommerce-order-pay .shop_table tfoot tr:last-child { border-bottom: 0; padding-bottom: 20px; }
body.woocommerce-order-pay .shop_table tbody tr { padding-top: 20px; }
body.woocommerce-order-pay .shop_table th, body.woocommerce-order-pay .shop_table td { display: block; padding: 0 !important; border: 0 !important; }
body.woocommerce-order-pay .shop_table td.product-name { flex: 1; min-width: 0; }
body.woocommerce-order-pay .shop_table td.product-quantity { display: none; }
body.woocommerce-order-pay .shop_table td:last-child { white-space: nowrap; }
body.woocommerce-order-pay .shop_table tfoot td { max-width: 60%; }
body.woocommerce-order-pay .mp-checkout-pro-benefit-description b { color: var(--cream) !important; font-weight: 500 !important; }
@media (max-width: 478px) { body.woocommerce-order-pay .shop_table tr { padding-left: 18px; padding-right: 18px; } }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 85;
  display: inline-flex; align-items: center; gap: 10px; height: 58px; min-width: 58px; padding: 0 14px; justify-content: center;
  border-radius: 999px; background: #25d366; color: #fff; text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .08) inset; transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, .4); color: #fff; }
.wa-float:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.wa-float svg { flex-shrink: 0; }
.wa-float__label { font-weight: 600; font-size: .95rem; white-space: nowrap; padding-right: 4px; }
@media (max-width: 767px) {
  .wa-float { height: 54px; min-width: 54px; padding: 0; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
  .wa-float__label { display: none; }
  .wa-float svg { width: 28px; height: 28px; }
}
@media print { .wa-float { display: none; } }
/* El aviso (toast) sube un poco para no chocar con el botón en móvil */
@media (max-width: 767px) { .alltree-toast { bottom: 84px; } }
