.fabriltex-ficha{box-sizing:border-box;width:min(850px,calc(100% - 32px));max-width:850px;max-height:calc(100dvh - 32px);padding:0;border:0;border-radius:22px;background:#fff;color:#20201e;font:inherit;box-shadow:0 24px 80px #0003;overflow:auto;overscroll-behavior:contain}
.fabriltex-ficha::backdrop{background:rgb(22 22 20 / .56)}
.fabriltex-ficha__header{position:relative;z-index:1}.fabriltex-ficha__header>h2{padding:32px 70px 0 32px}
.fabriltex-ficha h2{margin:0;font-family:inherit;font-size:clamp(22px,2.5vw,28px);font-weight:700;line-height:1.18;letter-spacing:-.025em}
.fabriltex-ficha__close{position:absolute;right:14px;top:14px;display:grid;place-items:center;width:38px;height:38px;padding:0;border:1px solid #deded9;border-radius:50%;background:#fff;color:#30302b;font:400 26px/1 sans-serif;cursor:pointer;transition:background .15s}
.fabriltex-ficha__close:hover{background:#f1f1ed}.fabriltex-ficha a:focus-visible,.fabriltex-ficha__close:focus-visible{outline:2px solid #474747;outline-offset:4px}
.fabriltex-ficha__body{display:grid;grid-template-columns:minmax(0,1fr)}
.fabriltex-ficha__image{box-sizing:border-box;display:block;width:100%;height:100%;min-height:340px;max-height:none;object-fit:contain;background:#fff;padding:0}
.fabriltex-ficha__details{background:#f7f7f7;display:flex;flex-direction:column;gap:20px;min-width:0;padding:54px 30px 30px;font-size:14px;line-height:1.65}
.fabriltex-ficha__details>div{border-top:1px solid #e8e8e2;padding-top:20px}.fabriltex-ficha__details p{margin:0 0 12px}.fabriltex-ficha__details p:last-child{margin-bottom:0}.fabriltex-ficha__details dl{margin:0}.fabriltex-ficha__details dt{font-weight:600}.fabriltex-ficha__details dd{margin:0 0 10px}
.fabriltex-ficha__actions{margin-top:auto;padding-top:8px}.fabriltex-ficha__whatsapp:not([hidden]){display:block;padding:13px 18px;border-radius:999px;background:var(--ficha-accent,#474747);color:var(--ficha-button-text,#fff);text-align:center;text-decoration:none;font-size:14px;font-weight:600;line-height:1.4;transition:background .15s}.fabriltex-ficha__whatsapp:hover{background:var(--ficha-hover,#BBBDBF);color:var(--ficha-hover-text,#474747)}
.fabriltex-ficha__status{padding:30px;margin:0;font-size:15px}.fabriltex-ficha__status:empty{display:none}
@media(min-width:600px){.fabriltex-ficha__body:has(.fabriltex-ficha__media){grid-template-columns:1fr 1fr}}
@media(max-width:599px){.fabriltex-ficha__image{min-height:0;height:280px;padding:0}.fabriltex-ficha__details{padding:26px 24px;gap:18px}.fabriltex-ficha__details h2{padding-right:0}}
@media(prefers-reduced-motion:reduce){.fabriltex-ficha *{transition:none!important;animation:none!important}}

/* Scoped overrides protect the control from theme and Elementor button rules. */
dialog.fabriltex-ficha button.fabriltex-ficha__close,
dialog.fabriltex-ficha button.fabriltex-ficha__close:focus,
dialog.fabriltex-ficha button.fabriltex-ficha__close:active{appearance:none;box-sizing:border-box;display:grid;place-items:center;width:38px!important;min-width:38px!important;height:38px!important;min-height:38px!important;padding:0!important;border:1px solid #deded9!important;border-radius:50%!important;background:#fff!important;color:#30302b!important;box-shadow:none!important;font:400 26px/1 sans-serif!important;text-decoration:none;transform:none}
dialog.fabriltex-ficha button.fabriltex-ficha__close:hover{background:#eeeeee!important;color:#20201e!important;border-color:#deded9!important}
dialog.fabriltex-ficha .fabriltex-ficha__whatsapp:not([hidden]){background:var(--ficha-accent,#474747);color:var(--ficha-button-text,#fff)}
dialog.fabriltex-ficha .fabriltex-ficha__whatsapp:hover{background:var(--ficha-hover,#BBBDBF);color:var(--ficha-hover-text,#474747)}

/* Use the supplied SVG, independent of text baselines and theme icon styles. */
dialog.fabriltex-ficha button.fabriltex-ficha__close{align-items:center!important;justify-items:center!important;gap:0!important;line-height:0!important}
dialog.fabriltex-ficha button.fabriltex-ficha__close::before,
dialog.fabriltex-ficha button.fabriltex-ficha__close::after{content:none!important}
dialog.fabriltex-ficha .fabriltex-ficha__close-icon{display:block!important;width:20px!important;height:20px!important;margin:0!important;padding:0!important;background:currentColor;-webkit-mask:url("x.svg") center / contain no-repeat;mask:url("x.svg") center / contain no-repeat;pointer-events:none}

.fabriltex-ficha.is-loading .fabriltex-ficha__header>h2,.fabriltex-ficha.is-loading .fabriltex-ficha__status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%)}
.fabriltex-ficha__skeleton-image{min-height:420px;background:#eeeee9}.fabriltex-ficha__skeleton-info{display:flex;flex-direction:column;gap:18px;padding:62px 30px 30px}.fabriltex-ficha__skeleton-info i,.fabriltex-ficha__skeleton-info b{display:block;height:14px;border-radius:6px;background:#eeeee9}.fabriltex-ficha__skeleton-info i:first-child{height:25px;width:85%}.fabriltex-ficha__skeleton-info i:nth-child(2){height:25px;width:65%}.fabriltex-ficha__skeleton-info i:nth-child(5){width:75%}.fabriltex-ficha__skeleton-info hr{border:0;border-top:1px solid #eaeae4;width:100%;margin:8px 0}.fabriltex-ficha__skeleton-info b{margin-top:auto;height:46px;border-radius:999px;background:#e8e8e8}
.fabriltex-ficha.is-loading .fabriltex-ficha__body{animation:ficha-pulse 1.4s ease-in-out infinite}@keyframes ficha-pulse{50%{opacity:.55}}
@media(min-width:600px){.fabriltex-ficha.is-loading .fabriltex-ficha__body{grid-template-columns:1fr 1fr}}
@media(max-width:599px){.fabriltex-ficha__skeleton-image{min-height:280px}.fabriltex-ficha__skeleton-info{padding:26px 24px;min-height:320px}}

@media(prefers-reduced-motion:no-preference){
  dialog.fabriltex-ficha[open]{animation:ficha-enter 200ms cubic-bezier(.2,.7,.3,1) both}
  dialog.fabriltex-ficha[open]::backdrop{animation:ficha-backdrop-enter 200ms ease-out both}
  dialog.fabriltex-ficha[open].is-closing{animation:ficha-exit 150ms ease-in both;pointer-events:none}
  dialog.fabriltex-ficha[open].is-closing::backdrop{animation:ficha-backdrop-exit 150ms ease-in both}
}
@keyframes ficha-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes ficha-exit{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(4px)}}
@keyframes ficha-backdrop-enter{from{opacity:0}to{opacity:1}}
@keyframes ficha-backdrop-exit{from{opacity:1}to{opacity:0}}

/* The grid stretches the media cell to the content height; the image fills that cell. */
dialog.fabriltex-ficha .fabriltex-ficha__media{position:relative;min-width:0;min-height:340px;align-self:stretch;overflow:hidden;background:#fff}
dialog.fabriltex-ficha .fabriltex-ficha__media>img.fabriltex-ficha__image{position:absolute;inset:0;display:block;width:100%!important;height:100%!important;min-height:0;max-height:none;max-width:none;object-fit:contain;object-position:center;padding:0;margin:0}
@media(max-width:599px){dialog.fabriltex-ficha .fabriltex-ficha__media{height:280px;min-height:0}}

/* The real CTA is parked outside the skeleton until product data arrives. */
dialog.fabriltex-ficha.is-loading .fabriltex-ficha__content>.fabriltex-ficha__actions{display:none}

dialog.fabriltex-ficha h2#fabriltex-ficha-title{text-wrap:balance}

dialog.fabriltex-ficha .fabriltex-ficha__whatsapp:focus-visible { outline-color: #474747; }

dialog.fabriltex-ficha button.fabriltex-ficha__gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #deded9;
  border-radius: 50%;
  background: #fff;
  color: #474747;
  font: 26px/1 sans-serif;
  cursor: pointer;
}
dialog.fabriltex-ficha .fabriltex-ficha__gallery-arrow:first-of-type { left: 12px; }
dialog.fabriltex-ficha .fabriltex-ficha__gallery-arrow:last-of-type { right: 12px; }
dialog.fabriltex-ficha .fabriltex-ficha__gallery-arrow:hover { background: #f5f5f5; }
dialog.fabriltex-ficha .fabriltex-ficha__gallery-arrow:focus-visible { outline: 2px solid #474747; outline-offset: 2px; }
.fabriltex-ficha__gallery-count {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 4px 10px;
  border: 1px solid #deded9;
  border-radius: 999px;
  background: #fff;
  color: #474747;
  font-size: 12px;
}

.fabriltex-ficha__gallery-count.is-loading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fabriltex-ficha__gallery-count.is-loading::before {
  content: '';
  box-sizing: border-box;
  width: 12px;
  height: 12px;
  border: 2px solid #deded9;
  border-top-color: #474747;
  border-radius: 50%;
}
@media (prefers-reduced-motion: no-preference) {
  .fabriltex-ficha__gallery-count.is-loading::before {
    animation: fabriltex-ficha-gallery-spin 700ms linear infinite;
  }
}
@keyframes fabriltex-ficha-gallery-spin {
  to { transform: rotate(360deg); }
}

.fabriltex-ficha__gallery-count:empty { display: none; }
.fabriltex-ficha__gallery-count { bottom: 52px; }
.fabriltex-ficha__gallery-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  max-width: calc(100% - 24px);
  overflow-x: auto;
  padding: 2px 4px;
  border-radius: 999px;
  background: transparent;
}
dialog.fabriltex-ficha .fabriltex-ficha__gallery-dots button {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.fabriltex-ficha__gallery-dots button::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #919191;
}
.fabriltex-ficha__gallery-dots button[aria-current="true"]::before { background: #595959; }
dialog.fabriltex-ficha .fabriltex-ficha__gallery-dots button:focus-visible {
  outline: 2px solid #474747;
  outline-offset: -2px;
}

/* Keep the gallery controls below the usable image area. */
dialog.fabriltex-ficha .fabriltex-ficha__media:has(.fabriltex-ficha__gallery-dots) > img.fabriltex-ficha__image {
  top: 12px;
  bottom: 44px;
  height: calc(100% - 56px) !important;
}

@media (min-width: 600px) {
  dialog.fabriltex-ficha .fabriltex-ficha__media {
    min-height: clamp(420px, 55dvh, 470px);
  }
}

dialog.fabriltex-ficha .fabriltex-ficha__gallery-arrow::before {
  content: '';
  width: 18px;
  height: 18px;
  background: currentColor;
  mask: var(--ficha-caret) center / contain no-repeat;
}
dialog.fabriltex-ficha .fabriltex-ficha__gallery-arrow:first-of-type { --ficha-caret: url("caret-left.svg"); }
dialog.fabriltex-ficha .fabriltex-ficha__gallery-arrow:last-of-type { --ficha-caret: url("caret-right.svg"); }
