/* Scoped to the existing hero of the Motoredge product layout. */
.me-pdp-presentation .me-pdp-oferta,
.me-pdp-presentation .me-pdp-importe { display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem .4rem; }
.me-pdp-presentation .me-pdp-oferta { justify-content: flex-start; align-items: center; column-gap: 20px; }
.me-pdp-presentation .me-pdp-oferta > div { min-width: 0; }
.me-pdp-presentation .me-pdp-oferta [data-me-stock] { flex: 1 1 6.5rem; text-align: start; }
.me-pdp-presentation .me-pdp-oferta [data-me-stock]:empty { display:none; }
.me-pdp-presentation .me-pdp-oferta .price,
.me-pdp-presentation .me-pdp-oferta .price .amount { color: #202124; font-weight: 700; line-height: 1.2; }
.me-pdp-presentation .me-pdp-oferta .price del .amount { color: inherit; font-weight: 450; }
.me-pdp-presentation .me-pdp-moneda { color: #636467; font-size: .69rem; font-weight: 500; }
.me-pdp-presentation .me-pdp-oferta .stock { margin: 0; font-size: .78rem; line-height: 1.3; }
.me-pdp-presentation .me-pdp-oferta .stock-bajo { display: inline-flex; align-items: baseline; max-width: 100%; }
.me-pdp-presentation .me-pdp-oferta .stock-bajo::before { flex: none; }
body.single-product .elementor-25990415 .me-pdp-presentation .me-pdp-buybox:has(.me-pdp-oferta .stock) > .wd-single-stock-status .stock,
body.single-product .elementor-25990415 .me-pdp-presentation .me-pdp-buybox:has(.me-pdp-oferta .stock) .me-pdp-buybox-cart > .elementor-widget-container > .stock,
body.single-product .elementor-25990415 .me-pdp-presentation .me-pdp-buybox:has(.me-pdp-oferta .stock) .woocommerce-variation-availability > .stock,
.me-pdp-presentation .me-pdp-buybox:has(.me-pdp-oferta[data-selected-price]) .woocommerce-variation-price { display:none!important; }
body.single-product .elementor-25990415 .me-pdp-presentation .me-pdp-buybox:has(.me-pdp-oferta .stock) > .wd-single-stock-status:has(.elementor-widget-container > .stock:only-child),
body.single-product .elementor-25990415 .me-pdp-presentation .me-pdp-buybox > .wd-single-stock-status:not(:has(.elementor-widget-container > *)) { display:none!important; }
body.single-product .me-pdp-presentation .me-pdp-info-brands .wd-product-brands { margin: 0; line-height: 1; }
body.single-product .me-pdp-presentation .me-pdp-info-brands img { max-height: 42px; width: auto; max-width:100px; object-fit:contain; }
body.single-product .elementor-25990415 .me-pdp-presentation .me-pdp-info-rating:has(.wsr_rating:empty):not(:has(.wsr_rating > *)) { display: none !important; }
.me-pdp-presentation .elementor-element-0111e7a:has(.elementor-element-649d5d9):not(:has(.me-trust-badges-block, .elementor-shortcode > *)) { display:none; }

.me-pdp-presentation .me-pdp-confianza { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:.3rem .7rem; margin:0 0 .5rem; color:#56585a; }
.me-pdp-presentation .me-pdp-confianza > span { display:inline-flex; align-items:center; gap:.25rem; font-size:.71rem; line-height:1.35; }
.me-pdp-presentation .me-pdp-confianza svg { width:1rem; height:1rem; stroke:currentColor; fill:none; stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; }
.me-pdp-presentation .me-pdp-buybox-payment .mtr-payments-open { color:#285f9e; text-decoration:underline; text-underline-offset:.15em; }
/* Move the shortcode's inline frame inside the logo slot so Safari keeps all five heights equal. */
.me-pdp-presentation .me-pdp-buybox-payment .me-payment-card--mercadopago { padding:0!important; border:0!important; box-shadow:inset 0 0 0 1px #d5d9de; }
.me-pdp-presentation .me-pdp-buybox-payment .me-payment-card--mercadopago img { padding:4px!important; }

@media (width > 768px) {
  body.single-product .me-pdp-presentation .me-pdp-buybox:has(.me-pdp-oferta) .me-pdp-buybox-cart form.cart:not(.grouped_form) :is(.single_add_to_cart_button,.wd-buy-now-btn) {
    flex:0 0 auto; width:100%; max-width:100%; min-height:48px; box-sizing:border-box; margin-inline:0;
  }
  body.single-product .me-pdp-presentation .me-pdp-buybox:has(.me-pdp-oferta) .me-pdp-buybox-cart form.cart :is(#wd-add-to-cart,.wd-buy-now-btn):not(:hover,:focus-visible,:active) {
    border-width:0!important; box-shadow:none!important;
  }
  body.single-product .me-pdp-presentation .me-pdp-buybox:has(.me-pdp-oferta) .me-pdp-buybox-cart :is(.single_variation_wrap,.variations_button,.me-qty-picker) {
    min-width:0; max-width:100%;
  }
  body.single-product .me-pdp-presentation .me-pdp-buybox-payment {
    container:me-pdp-payment / inline-size; flex-direction:column; align-items:center; gap:8px;
  }
  body.single-product .me-pdp-presentation .me-pdp-buybox-payment > .elementor-element {
    flex:none; width:100%; max-width:100%; min-width:0; text-align:center;
  }
  .me-pdp-presentation .me-pdp-confianza { gap:4px clamp(6px,3cqi,14px); margin-bottom:6px; }
  .me-pdp-presentation .me-pdp-confianza > span { gap:3px; font-size:clamp(.75rem,4.75cqi,1rem); white-space:nowrap; }
  .me-pdp-presentation .me-pdp-confianza svg { flex:none; width:1em; height:1em; }
  .me-pdp-presentation .me-pdp-buybox-payment .mtr-payments-open { font-size:max(14px,.95rem); white-space:nowrap; }
}

.me-pdp-presentation .me-pdp-identidad { display:flex; flex-wrap:nowrap; align-items:center; gap:.35rem; margin:0 0 .65rem; min-width:0; overflow-x:auto; }
.me-pdp-presentation .me-pdp-identidad > * { flex:none; display:inline-block; max-width:none; white-space:nowrap; color:#343638; font-size:.72rem; line-height:1.45; font-weight:550; border:1px solid #dedfe0; border-radius:.33rem; padding:.15rem .42rem; }
/* Auto margins center the row while it fits and leave both ends reachable when it scrolls. */
.me-pdp-presentation .me-pdp-identidad > :first-child { margin-inline-start:auto; }
.me-pdp-presentation .me-pdp-identidad > :last-child { margin-inline-end:auto; }
.me-pdp-presentation .me-pdp-identidad a:focus-visible { outline-offset:-2px; }
.me-pdp-presentation .me-pdp-identidad a:hover { text-decoration:underline; }
.me-pdp-presentation .me-pdp-identidad-agrupada { flex-wrap:wrap; justify-content:center; align-items:baseline; overflow:visible; }
.me-pdp-presentation .me-pdp-identidad-agrupada > * { max-width:100%; box-sizing:border-box; white-space:normal; overflow-wrap:anywhere; }
.me-pdp-presentation .me-pdp-identidad-agrupada > :is(:first-child,:last-child) { margin-inline:0; }
.me-pdp-presentation .me-pdp-identidad-agrupada > details { padding:0; border:0; text-align:center; }
.me-pdp-presentation .me-pdp-identidad-agrupada summary { display:inline-flex; align-items:center; gap:.35rem; min-height:24px; box-sizing:border-box; padding:.15rem .42rem; border:1px solid #dedfe0; border-radius:.33rem; cursor:pointer; list-style:none; }
.me-pdp-presentation .me-pdp-identidad-agrupada summary::-webkit-details-marker { display:none; }
.me-pdp-presentation .me-pdp-identidad-agrupada summary::after { content:""; width:.4em; height:.4em; border:solid currentColor; border-width:0 1.5px 1.5px 0; transform:translateY(-.1em) rotate(45deg); }
.me-pdp-presentation .me-pdp-identidad-agrupada details[open] summary::after { transform:translateY(.1em) rotate(225deg); }
.me-pdp-presentation .me-pdp-identidad-agrupada details > div { display:flex; justify-content:center; flex-wrap:wrap; gap:.25rem .7rem; margin-top:.35rem; }
.me-pdp-presentation .me-pdp-identidad-agrupada details > div a { display:inline-flex; align-items:center; min-height:24px; text-decoration:underline; text-underline-offset:.18em; }
.me-pdp-presentation .me-short-description__list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); padding:0; margin:0; border:0; gap:.35rem .65rem; }
.me-pdp-presentation li.me-short-description__item {
  display:grid; grid-template-columns:1rem minmax(0,1fr); align-content:start; align-items:start; column-gap:.35rem;
  row-gap:.1rem; padding:.25rem 0; margin:0; border:0; order:5; min-width:0;
  --me-feature-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6062' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='m12 3 2.4 6.6L21 12l-6.6 2.4L12 21l-2.4-6.6L3 12l6.6-2.4z'/%3E%3C/svg%3E");
}
.me-pdp-presentation .me-short-description__item[data-me-feature=material] {
  order:1; --me-feature-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6062' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='m3 7 9-5 9 5v10l-9 5-9-5zM3 7l9 5 9-5m-9 5v10'/%3E%3C/svg%3E");
}
.me-pdp-presentation .me-short-description__item[data-me-feature=openings] {
  order:2; --me-feature-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6062' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M3 11l3-5h9l4 5 2 1v5h-2m-4 0H9m-4 0H2v-5zm1 0h11'/%3E%3Ccircle cx='7' cy='17' r='2'/%3E%3Ccircle cx='17' cy='17' r='2'/%3E%3C/svg%3E");
}
.me-pdp-presentation .me-short-description__item[data-me-feature=dimensions] {
  order:3; --me-feature-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6062' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='m3 16 13-13 5 5L8 21zM8 11l3 3m0-6 2 2m1-5 3 3'/%3E%3C/svg%3E");
}
.me-pdp-presentation .me-short-description__item[data-me-feature=detail] { order:4; }
.me-pdp-presentation .me-short-description__item::after { content:""; grid-area:1/1/3/2; align-self:start; width:1rem; height:1rem; background:var(--me-feature-icon) center/contain no-repeat; }
.me-pdp-presentation .me-short-description__label, .me-pdp-presentation .me-short-description__value { grid-column:2; text-align:start; letter-spacing:normal; text-transform:none; line-height:1.38; overflow-wrap:anywhere; }
.me-pdp-presentation .me-short-description__label { font-size:.77rem!important; color:#292b2d!important; }
.me-pdp-presentation .me-short-description__value { font-size:.8rem!important; color:#515355!important; }

@media (min-width: 1025px) {
  .me-pdp-presentation .me-short-description { container: me-specs / inline-size; }
  .me-pdp-presentation .me-pdp-identidad { flex-wrap: wrap; justify-content: center; overflow: visible; }
  .me-pdp-presentation .me-pdp-identidad > * {
    max-width: 100%;
    padding-inline: .36rem;
    font-size: clamp(.8rem, 3.1cqi, .9rem);
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .me-pdp-presentation .me-pdp-identidad > :is(:first-child, :last-child) { margin-inline: 0; }
  .me-pdp-presentation .me-short-description__label { font-size: clamp(.86rem, 3.4cqi, .96rem)!important; }
  .me-pdp-presentation .me-short-description__value { font-size: clamp(.84rem, 3.24cqi, .96rem)!important; }
  @container me-specs (max-width: 42rem) {
    .me-pdp-presentation .me-short-description__list {
      display: flex;
      flex-wrap: wrap;
      column-gap: .35rem;
    }
    /* Each pair shares space based on its text. Longer specifications can use a whole row. */
    .me-pdp-presentation li.me-short-description__item {
      flex: 1 1 max-content;
      min-width: calc(100% / 3);
      max-width: 100%;
    }
    .me-pdp-presentation .me-short-description__item::after { grid-row: 1; }
    .me-pdp-presentation .me-short-description__value { grid-column: 1 / -1; }
  }
}

@media (width < 1025px) {
  .me-pdp-presentation .me-short-description__list {
    --me-feature-gap: .65rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: var(--me-feature-gap);
    max-width: 40rem;
    margin-inline: auto;
  }
  .me-pdp-presentation li.me-short-description__item {
    flex: 0 0 calc((100% - var(--me-feature-gap)) / 2);
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }
  .me-pdp-presentation .me-short-description__item::after { content: none; }
  .me-pdp-presentation .me-short-description__label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
  }
  .me-pdp-presentation .me-short-description__label::before {
    content: "";
    flex: 0 0 1rem;
    height: 1rem;
    background: var(--me-feature-icon) center/contain no-repeat;
  }
  .me-pdp-presentation .me-short-description__label,
  .me-pdp-presentation .me-short-description__value { grid-column: 1; max-width: 100%; text-align: center; }
}

.me-pdp-presentation .variations tr:has(.me-pdp-colores),
.me-pdp-presentation .variations tr:has(.me-pdp-colores) > :is(th,td) { display:block; width:100%; text-align:start; }
.me-pdp-presentation .me-pdp-colores { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:6px 0; }
.me-pdp-presentation .me-pdp-colores button[data-color] { display:inline-grid; place-items:center; box-sizing:border-box; min-width:64px; height:64px; padding:2px; background:#fff; border:1px solid #c7c8cb; border-radius:7px; color:#262728; cursor:pointer; text-transform:none; }
.me-pdp-presentation .me-pdp-colores button[data-color].me-color-photo { position:relative; flex:none; width:clamp(48px,calc((100% - 18px) / 4),var(--me-photo-size,64px)); height:auto; min-width:0; min-height:0; aspect-ratio:1; }
.me-pdp-presentation .me-pdp-colores img { position:absolute; inset:2px; display:block; width:calc(100% - 4px); height:calc(100% - 4px); object-fit:contain; border-radius:4px; }
.me-pdp-presentation .me-pdp-colores .me-color-fallback { display:flex; align-items:center; gap:4px; padding:0 4px; font-size:.75rem; }
.me-pdp-presentation .me-pdp-colores .me-color-dot { display:block; width:12px; height:12px; border-radius:50%; border:1px solid #777; background:var(--me-color); }
.me-pdp-presentation .me-pdp-colores .me-color-photo .me-color-fallback,
.me-pdp-presentation .me-pdp-colores [hidden] { display:none!important; }
.me-pdp-presentation .me-pdp-colores [aria-pressed=true] { border-color:#252525; box-shadow:inset 0 0 0 1px #252525; }
.me-pdp-presentation .me-color-empty { font-size:.8rem; }
.me-pdp-presentation .me-pdp-colores .me-color-pedido { flex-basis:100%; min-height:44px; padding:3px 0; text-align:start; color:inherit; background:transparent; text-transform:none; text-decoration:underline; }
.me-pdp-presentation .me-pdp-color-actual { font-weight:500; }
body.single-product .me-pdp-presentation .variations .label label:has(.me-pdp-color-actual) { display:inline; }
body.single-product .me-pdp-presentation .variations .label:has(.me-pdp-color-actual)::after,
body.single-product .me-pdp-presentation .variations label:has(.me-pdp-color-actual)::after { content:none!important; }
.me-pdp-presentation :is(.me-pdp-colores,.me-pdp-acciones,.me-pdp-identidad) :focus-visible { outline:2px solid #315e92; outline-offset:2px; }
.me-pdp-presentation .me-pdp-envio-movil, .me-pdp-presentation .me-pdp-select-enhanced { display:none!important; }
@media not all and (min-width:1280px) {
  body.single-product .me-pdp-presentation .me-pdp-buybox-wishlist { width:100%; }
  .me-pdp-presentation .me-pdp-acciones { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border-block:1px solid #ddd; }
  .me-pdp-presentation .me-pdp-acciones > div { display:flex; align-items:center; justify-content:center; min-width:0; padding:.35rem; }
  .me-pdp-presentation .me-pdp-acciones > .me-pdp-envio-movil { display:flex!important; border-inline-start:1px solid #ddd; }
  .me-pdp-presentation .me-pdp-acciones :is(button,a) { min-height:44px; white-space:normal; line-height:1.25; }
  .me-pdp-presentation .me-pdp-buybox:has(.me-pdp-acciones) > .elementor-widget-divider { display:none; }
}
@media (max-width:768px) {
  .me-pdp-presentation .me-pdp-colores button[data-color] { min-width:60px; height:60px; }
  .me-pdp-presentation .me-pdp-colores { --me-photo-size:60px; }
}
/* Woodmart hides Woo's reset until its own swatch handler runs. Keep Woo's native reset link usable. */
body.single-product .me-pdp-presentation .variations_form:has(.me-pdp-colores [aria-pressed="true"]) .reset_variations {
  visibility: visible !important; opacity: 1 !important;
}

/* Use the native review anchor when the rendered stars have no keyboard control of their own. */
.me-pdp-presentation .me-pdp-reviews-link { display:none; position:absolute; }
.me-pdp-presentation .me-pdp-reviews-link:not(:focus) { width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.me-pdp-presentation :is(.me-pdp-info-rating,.me-pdp-mobile-manufacturer):has(.Wsrspfapp-stars-list-fullret.Wsrspfapp-star-dsp-review-block[data-wsr-star]:not([data-wsr-star=""]):not([data-wsr-star^="0"])):not(:has(.Wsrspfapp-stars-list :is(a[href],button:not(:disabled),[tabindex="0"]),.Wsrspfapp-stars-list:is(a[href],[tabindex="0"]))) .me-pdp-reviews-link { display:block; }
.me-pdp-presentation .me-pdp-reviews-link:focus { z-index:2; padding:4px 8px; background:white; color:#214a81; outline:2px solid currentColor; }

/* Keep a multi-brand set in one accessible strip at its original logo size. */
.me-pdp-presentation .me-pdp-info-brands .wd-product-brands:has(> a ~ a) {
  flex-wrap: nowrap;
  overflow-x: auto;
  & > a { flex: none; white-space: nowrap; }
  & > a:focus-visible { outline: 2px solid #315e92; outline-offset: -1px; }
}

/* Desktop only. Let Wiser's rendered stars opt the existing column into a shared row. */
@media (min-width:1025px) {
  /* Wiser can leave an empty helper or a zero score inside an otherwise empty rating. */
  body.single-product .elementor-25990415 .me-pdp-presentation .me-pdp-info-rating:has(.wsr_rating):not(:has(.Wsrspfapp-stars-list-fullret.Wsrspfapp-star-dsp-review-block[data-wsr-star]:not([data-wsr-star=""]):not([data-wsr-star^="0"]))) {
    display:none!important;
  }
  body.single-product .elementor-25990415 .me-pdp-presentation .me-pdp-commercial:has(> .me-pdp-info > .me-pdp-info-rating .Wsrspfapp-stars-list-fullret.Wsrspfapp-star-dsp-review-block[data-wsr-star]:not([data-wsr-star=""]):not([data-wsr-star^="0"])):has(> .me-pdp-info > .me-pdp-info-brands img) {
    /* At intermediate widths Elementor flattens the information column around the purchase box. */
    @media (width < 1280px) {
      display: flex;
      flex-flow: row wrap;
      align-content: flex-start;
      column-gap: 16px;
      & > .me-pdp-info { display: contents; }
      & > .me-pdp-info > .me-pdp-info-title { margin-block-end: 8px; }
      & > .me-pdp-buybox { flex-basis: 100%; }
    }
    @media (min-width: 1280px) {
      & > .me-pdp-info {
        display: flex;
        flex-flow: row wrap;
        align-content: flex-start;
        column-gap: 16px;
      }
    }
    & > .me-pdp-info > * { flex-basis: 100%; }
    & > .me-pdp-info > .me-pdp-info-rating,
    & > .me-pdp-info > .me-pdp-info-brands {
      flex: 0 0 auto;
      width: max-content;
      max-width: 100%;
      min-width: 0;
      align-self: center;
      margin-block: 0;
    }
    & > .me-pdp-info > .me-pdp-info-brands {
      /* The group gets the rest of the row, or a full row when its natural size does not fit. */
      flex-grow: 1;
      & .wd-product-brands { justify-content: safe flex-end; }
    }
    & > .me-pdp-info > .me-pdp-info-brands img {
      display:block;
      width:auto;
      height:auto;
      max-width:100%;
      max-height:48px;
      object-fit:contain;
    }
  }
}
