/*
 * POS V2 — exceptional effects only.
 * Backgrounds, color, typography, sizing, responsive spacing, borders and hover
 * states belong to native Divi 5 / Divi Pixel / Divi Supreme module settings.
 * Do not duplicate these properties in this stylesheet.
 */

/* Optional ornamental accent, not provided by the standard module controls. */
.iw-pos-v2 .pos-v2-ornament {
  position: relative;
  isolation: isolate;
}
.iw-pos-v2 .pos-v2-ornament::after {
  content: "";
  position: absolute;
  inset-inline-end: -10px;
  inset-block-start: -10px;
  width: 28px;
  height: 28px;
  border: 2px solid currentColor;
  border-radius: 50%;
  opacity: .18;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .iw-pos-v2 [data-iw-motion] {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Decorative details from tienda.html that have no native module equivalent. */
body.iw-pos-storefront .pos-store-footer::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  pointer-events: none;
  background: linear-gradient(90deg, #095a86 0% 13%, #0082d0 13% 31%, #66c3f5 31% 46%, #9dfc37 46% 64%, #ec9a29 64% 78%, #f72585 78% 90%, #320e3b 90%);
}
body.iw-pos-storefront .pos-store-info-card .et_pb_main_blurb_image::after {
  content: '';
  display: block;
  width: 23px;
  height: 3px;
  margin: 7px auto 0;
  background: var(--gcid-pos-v39-lime-cta, #9dfc37);
  border-radius: 3px;
}
/* Decorative underline on the native Icon module; dimensions of the icon itself use its controls. */
body.iw-pos-storefront .pos-store-card-icon::after {
  content: '';
  display: block;
  width: 23px;
  height: 3px;
  margin: 4px auto 0;
  background: #9dfc37;
  border-radius: 3px;
}
body.iw-pos-storefront #productos,
body.iw-pos-storefront #beneficios,
body.iw-pos-storefront #como-funciona {
  scroll-margin-top: calc(120px + var(--wp-admin--admin-bar--height, 0px));
}
@media (prefers-reduced-motion: reduce) {
  body.iw-pos-storefront .et_animated,
  body.iw-pos-storefront .pos-motion-tilt {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Divi paints button icons absolutely. Flow placement is needed to retain the
 * demo's shared 15x28 / 11x18 padding with a visible Lucide arrow. Native presets
 * still own font, colors, padding, minimum sizing, border, shadow and icon choice.
 * Remove this adapter when Divi exposes independent icon flow/gap controls. */
body.iw-pos-storefront #page-container .et_pb_section a.et_pb_button {
  display: inline-flex;
  flex-direction: row !important;
  column-gap: 0 !important;
  row-gap: 0 !important;
  align-items: center;
  justify-content: center;
}
body.iw-pos-storefront #page-container .et_pb_section a.et_pb_button::after {
  position: static;
  top: auto;
  bottom: auto;
  transform: none;
  translate: none;
  display: inline-block;
  margin-left: 8px !important;
  margin-right: 0;
  width: 18px;
  font-size: 18px !important;
  flex-shrink: 0;
}

/* Marquee breakout uses the section content box, excluding a reserved scrollbar.
 * Divi exposes width/margins but no query-container control. No row widths change. */
body.iw-pos-storefront #mensaje {
  container-type: inline-size;
}

/* Progressive enhancement: content stays readable before Divi's entrance
 * observer runs. Active native keyframes still provide the entrance effect. */
body.iw-pos-storefront .et_animated {
  opacity: 1;
}

/* Supreme's image-position select offers presets, and its badge-position
 * controls expose top/left only. These exact demo anchors have no native field.
 * Typography, badge padding, border, radius and shadow stay in module controls. */
body.iw-pos-storefront .pos-catalog-photo-col .dsm_card_image_background {
  background-position: 50% 48% !important;
}
body.iw-pos-storefront .pos-catalog-photo-rest .dsm_card_image_background {
  background-position: 50% 51% !important;
}
body.iw-pos-storefront .pos-store-catalog .dsm_card_badge_text {
  right: 14px;
  bottom: 13px;
  backdrop-filter: blur(6px);
}

/* Demo topbar hides only its introductory phrase below 650px. The inline
 * fragment has no independent Divi visibility control; all font sizes and
 * spacing remain native Text/Column settings. */
@media (max-width: 650px) {
  body.iw-pos-storefront .pos-store-promo-desktop {
    display: none;
  }
}
