/* Editorial Lab 0.10.26 · Correcciones consolidadas 10–18. */
:root { --lco-pr10-addi-blue: #316BFA; }

/* 10 — "También llevan" aligns with WooCommerce related recommendations. */
body.single-product .lco-pdp-after > .lp-product-recommendations,
body.single-product .lco-pdp-after .lp-product-recommendations:not(.lp-product-recommendations--cart) {
  width:100% !important;max-width:100% !important;box-sizing:border-box !important;
  margin:48px 0 52px !important;padding:28px clamp(16px,2vw,28px) !important;
}
body.single-product .lp-product-recommendations__grid {width:100%;min-width:0;}

/* 11 — 30 cards, 4 columns desktop / 3 tablet / 2 mobile; images are lazy. */
body.lco-editorial.single-product .related.products .products,
body.lco-editorial.single-product .lco-pr9-related-grid ul.products {
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:clamp(12px,1.5vw,22px)!important;overflow:visible!important;transform:none!important;
}
body.lco-editorial.single-product .related.products li.product {
  position:static!important;width:100%!important;float:none!important;margin:0!important;max-width:100%!important;
}
body.single-product .lco-pr9-load-more {display:none!important;}

/* 12 — one floating success toast, preserve Woo errors and contextual notices. */
body.single-product .woocommerce-notices-wrapper .woocommerce-message.lco-ux23-source-toast,
body.single-product .woocommerce > .woocommerce-message.lco-ux23-source-toast,
body.woocommerce-cart .woocommerce-message.lco-ux23-source-toast {display:none!important;}
#lco-toast-stack .lco-ajax-toast {display:none!important;}

/* 13 — target the real cart sticky wrapper, not only page-level modifiers. */
#lco-cart-addi-sticky-01022.lco-cart-addi-sticky,
body.woocommerce-cart #lco-cart-addi-sticky-01022 {
  background:var(--lco-pr10-addi-blue)!important;
  border-color:var(--lco-pr10-addi-blue)!important;
  box-shadow:0 7px 22px rgba(36,71,150,.20)!important;
  color:#fff!important;
}
#lco-cart-addi-sticky-01022 .lco-cart-addi-sticky__inner {
  background:transparent!important;border:0!important;
  color:#fff!important;box-shadow:none!important;
}
#lco-cart-addi-sticky-01022 .lco-cart-addi-sticky__copy,
#lco-cart-addi-sticky-01022 .lco-cart-addi-sticky__copy > strong,
#lco-cart-addi-sticky-01022 .lco-cart-addi-sticky__message {
  display:block!important;visibility:visible!important;opacity:1!important;color:#fff!important;
}
#lco-cart-addi-sticky-01022 .lco-cart-addi-sticky__copy {
  display:flex!important;flex-wrap:wrap!important;align-items:center!important;
}
#lco-cart-addi-sticky-01022 .lco-cart-addi-sticky__logo {
  display:flex!important;background:#fff!important;border:0!important;
}

/* 14 — Addi is informative/disabled below the configured minimum. */
body.lco-wizard-active .lco-wizard-methods .lco-pr10-addi-disabled {
  width:100%;display:flex!important;align-items:center!important;gap:14px!important;
  padding:15px!important;box-sizing:border-box;border:1px solid #dadde1!important;
  background:#f4f5f6!important;color:#5f646b!important;cursor:not-allowed!important;
  opacity:1!important;border-radius:12px!important;pointer-events:none!important;
}
.lco-pr10-addi-mark {display:flex;align-items:center;justify-content:center;flex:none;width:58px;min-height:38px;border-radius:8px;background:#fff;padding:4px;}
.lco-pr10-addi-mark img {display:block;max-width:100%;max-height:29px;filter:grayscale(1);opacity:.62;}
.lco-pr10-addi-copy {display:flex;flex-direction:column;flex:1;gap:4px;min-width:0;}
.lco-pr10-addi-copy strong {font-size:13px;color:#555960;}
.lco-pr10-addi-copy small {font-size:11px;line-height:1.45;color:#737880;}
.lco-pr10-addi-lock {font-size:10px;font-weight:750;white-space:nowrap;color:#737880;}

/* 15 — cedula occupies its own row in step 2, no orphan label between name/last. */
body.lco-wizard-active .lco-wizard-panel--2 #billing_cedula_field,
body.lco-wizard-active .lco-wizard-panel--2 .lco-pr10-document-field {
  display:block!important;grid-column:1 / -1!important;
  float:none!important;clear:both!important;width:100%!important;max-width:100%!important;
  min-width:0!important;flex:1 1 100%!important;order:3!important;
  padding:0!important;margin:13px 0 16px!important;
}
body.lco-wizard-active .lco-wizard-panel--2 #billing_cedula_field label {
  display:block!important;width:100%!important;max-width:100%!important;
  white-space:normal!important;position:static!important;
  font-size:12px!important;line-height:1.45!important;margin:0 0 8px!important;
}
body.lco-wizard-active .lco-wizard-panel--2 #billing_cedula_field input {
  width:100%!important;max-width:100%!important;box-sizing:border-box!important;
  float:none!important;display:block!important;
}

/* 16 — one order summary follows actual Woo table into step 3. */
body.lco-wizard-active .lco-wizard-grid[data-step="3"] {
  display:block!important;max-width:1040px!important;margin-inline:auto!important;
}
body.lco-wizard-active .lco-wizard-grid[data-step="3"] .lco-wizard-main {width:100%!important;}
body.lco-wizard-active .lco-wizard-panel--3 .lco-wizard-summary.lco-pr10-single-summary {
  position:static!important;display:block!important;max-height:none!important;
  width:100%!important;max-width:none!important;overflow:visible!important;
  margin:12px 0 18px!important;padding:12px 16px!important;
}
body.lco-wizard-active .lco-wizard-panel--3 .lco-pr10-single-summary .lco-wizard-summary__toggle {
  display:flex!important;pointer-events:auto!important;cursor:pointer!important;min-height:44px;
}
body.lco-wizard-active .lco-wizard-panel--3 .lco-pr10-single-summary.is-open .lco-wizard-summary__detail {
  display:block!important;visibility:visible!important;max-height:none!important;
  overflow:visible!important;height:auto!important;opacity:1!important;
}
body.lco-wizard-active .lco-wizard-panel--3 .lco-pr10-single-summary:not(.is-open) .lco-wizard-summary__detail {display:none!important;}
body.lco-wizard-active .lco-wizard-panel--3 .lco-ux-order-details:not(:has(.woocommerce-checkout-review-order-table)) {display:none!important;}

/* 17 — real submission state; never fake gateway approval or progress percent. */
.lco-pr10-checkout-loading[hidden] {display:none!important;}
.lco-pr10-checkout-loading {
  position:fixed!important;z-index:999999!important;top:50%!important;left:50%!important;
  transform:translate(-50%,-50%)!important;width:min(420px,calc(100vw - 32px))!important;
  padding:30px 24px!important;box-sizing:border-box!important;
  background:#fff!important;box-shadow:0 18px 65px #13151a40!important;
  color:#19191a!important;text-align:center!important;border:1px solid #e7e7e7!important;
  border-radius:20px!important;
}
.lco-pr10-checkout-loading strong {display:block;margin:14px 0 8px;font-size:19px;}
.lco-pr10-checkout-loading p {margin:0;line-height:1.55;color:#52555a;font-size:13px;}
.lco-pr10-loading-spinner {
  display:block;width:34px;height:34px;margin:auto;border:3px solid #f4d7df;
  border-top-color:#b91637;border-radius:50%;animation:lco-pr10-spin .9s linear infinite;
}
@keyframes lco-pr10-spin {to {transform:rotate(360deg);}}

/* 18 — coherent order-received layout with red status hero. */
body.woocommerce-order-received .lco-page-content,
body.woocommerce-order-received .lco-entry-content,
body.woocommerce-order-received .woocommerce,
body.woocommerce-order-received .woocommerce-order {
  width:100%!important;max-width:1120px!important;margin-inline:auto!important;
  box-sizing:border-box!important;
}
body.woocommerce-order-received .lco-pr9-order-success {
  width:100%!important;max-width:1120px!important;box-sizing:border-box!important;
  background:#bc1535!important;color:#fff!important;border-radius:24px!important;
  padding:clamp(25px,4vw,48px)!important;margin:32px auto 24px!important;
}
body.woocommerce-order-received .lco-pr9-order-success h1,
body.woocommerce-order-received .lco-pr9-order-success .lco-pr9-success-label,
body.woocommerce-order-received .lco-pr9-order-success p {color:#fff!important;}
body.woocommerce-order-received .lco-pr9-order-status {background:#ffffff25!important;color:#fff!important;}
body.woocommerce-order-received .woocommerce-order-overview {
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px!important;width:100%!important;margin:0 auto 24px!important;
  background:transparent!important;padding:0!important;
}
body.woocommerce-order-received .woocommerce-order-overview li {
  width:100%!important;min-width:0!important;max-width:none!important;
  box-sizing:border-box!important;background:#f7f7f7!important;overflow-wrap:anywhere;
}
body.woocommerce-order-received .woocommerce-order-details,
body.woocommerce-order-received .woocommerce-customer-details {
  width:100%!important;max-width:none!important;margin:24px 0!important;
  padding:24px!important;box-sizing:border-box!important;border:1px solid #ededed!important;
  border-radius:18px!important;box-shadow:none!important;
}
body.woocommerce-order-received .woocommerce-customer-details .woocommerce-columns {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
body.woocommerce-order-received .woocommerce-customer-details .woocommerce-column {float:none!important;width:100%!important;min-width:0!important;margin:0!important;}
@media (max-width:980px) {
  body.lco-editorial.single-product .related.products .products {grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  body.woocommerce-order-received .woocommerce-order-overview {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media (max-width:700px) {
  body.lco-editorial.single-product .related.products .products {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  body.single-product .lp-product-recommendations {padding:18px 12px!important;margin:22px auto 34px!important;}
  body.woocommerce-order-received .woocommerce-customer-details .woocommerce-columns {grid-template-columns:1fr!important;}
  body.woocommerce-order-received .lco-pr9-order-success {border-radius:18px!important;}
  body.woocommerce-order-received .woocommerce-order-overview {grid-template-columns:1fr 1fr!important;}
}
@media (prefers-reduced-motion:reduce) {.lco-pr10-loading-spinner{animation:none!important;}}

/* The fallback success toast is created only if 0.10.23 has not shown one. */
.lco-pr10-toast[hidden]{display:none!important;}
.lco-pr10-toast{position:fixed;z-index:9998;right:clamp(12px,3vw,34px);width:min(500px,calc(100vw - 24px));display:flex;align-items:center;gap:12px;
 padding:14px 16px;box-sizing:border-box;border:1px solid #e8e8e8;border-left:4px solid #be1535;background:#fff;border-radius:14px;box-shadow:0 9px 32px #17171728;color:#181819;}
.lco-pr10-toast__label{flex:1;min-width:0;font-size:13px;line-height:1.4;}
.lco-pr10-toast__action{flex:none;font-size:12px;font-weight:750;color:#b71635!important;text-decoration:underline;}
.lco-pr10-toast__close{flex:none;border:0;background:#f2f2f2;cursor:pointer;border-radius:50%;width:30px;height:30px;font-size:18px;}
