@font-face {
  font-family: "Roboto";
  src: url("/wp-content/themes/wp-Muestra/assets/fonts/Roboto/Roboto-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("/wp-content/themes/wp-Muestra/assets/fonts/Roboto/Roboto-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("/wp-content/themes/wp-Muestra/assets/fonts/Roboto/Roboto-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("/wp-content/themes/wp-Muestra/assets/fonts/Roboto/Roboto-Bold.woff2") format("woff2");
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("/wp-content/themes/wp-Muestra/assets/fonts/Roboto/Roboto-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

.header__mobsearch,
.header__mobmenu,
.mobmenu__close,
.popup__close {
  appearance: none;
  border: 0;
  margin: 0;
  min-height: 0;
  padding: 0;
  color: inherit;
  font: inherit;
}

.mobmenu__close {
  background-color: transparent;
}

.header__mobsearch {
  background-color: #f7f8f9;
}

.header__mobsearch.active,
.header__mobmenu {
  background-color: #147985;
}

.mobmenu__close {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

.popup {
  padding: 16px;
  overflow-y: auto;
}

.popup__content {
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}

.popup.open .popup__content {
  opacity: 1 !important;
  transform: scale(1) !important;
  transition: none !important;
}

.popup__close {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobmenu__close img,
.popup__close img {
  display: block;
  width: 100%;
  height: 100%;
}

.popup__close img {
  width: 16px;
  height: 16px;
}

.header__mobsearch:focus-visible,
.header__mobmenu:focus-visible,
.mobmenu__close:focus-visible,
.popup__close:focus-visible {
  outline: 3px solid #0c0c13;
  outline-offset: 3px;
}

.banner__name {
  color: #147985;
}

.banner__button,
.item__button,
.wpcf7-submit.button {
  background-color: #a85f00;
  border-color: #a85f00;
  color: #fff;
}

.banner__button:hover,
.item__button:hover,
.wpcf7-submit.button:hover {
  background-color: #8f5000;
  border-color: #8f5000;
  color: #fff;
}

.button--brand {
  background-color: #147985;
  border-color: #147985;
}

.footer .footer__top .footer__widget .footer__title,
.footer .footer__bottom .footer__bottom-link {
  color: #5b6570;
}

/* Keep footer links readable when the inherited theme hover rule is active. */
.footer .footer__top a:hover,
.footer .footer__bottom a:hover {
  color: #147985 !important;
}

.footer .category-menu__group {
  color: #596773;
}

#clearfy-cookie-accept {
  background-color: #315eb8;
  border-color: #315eb8;
  color: #fff;
}

.city-index a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding-block: 4px;
}

/* FORMS_PRIVACY_SECURITY_SUCCESSOR: cookie controls */
#muestra-analytics-accept,
.clearfy-cookie #muestra-analytics-accept {
  min-height: 44px;
  background: #315eb8 !important;
  border: 2px solid #315eb8 !important;
  color: #ffffff !important;
  font-weight: 700;
}

#muestra-analytics-accept:hover,
#muestra-analytics-accept:active {
  background: #24488e !important;
  border-color: #24488e !important;
  color: #ffffff !important;
  opacity: 1;
}

#muestra-analytics-decline,
.clearfy-cookie #muestra-analytics-decline {
  min-height: 44px;
  background: #ffffff !important;
  border: 2px solid #17292b !important;
  color: #17292b !important;
  font-weight: 700;
}

#muestra-analytics-decline:hover,
#muestra-analytics-decline:active {
  background: #e8eef2 !important;
  border-color: #0c0c13 !important;
  color: #0c0c13 !important;
}

#muestra-analytics-accept:focus-visible,
#muestra-analytics-decline:focus-visible {
  outline: 3px solid #0c0c13;
  outline-offset: 3px;
}

/* MUESTRA_POPUP_LAYER_CONTRACT: modal geometry and stacking */
html {
  scrollbar-gutter: stable;
}

html:has(.popup.open) {
  overflow-y: scroll !important;
  overscroll-behavior: none !important;
}

body:has(.popup.open) {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

/* FJ-MUESTRA-CLOSED-MODAL-PAINT-001: closed dialogs must not paint behind the page. */
.popup:not(.open) {
  display: none !important;
  pointer-events: none !important;
  transition: none !important;
}

.popup.open {
  inset: 0 !important;
  z-index: 2147483000 !important;
  padding: max(16px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left)) !important;
  overflow: auto !important;
  overscroll-behavior: contain !important;
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(4px) !important;
  isolation: isolate !important;
  transition: none !important;
}

.popup.open .popup__content {
  position: relative !important;
  z-index: 1 !important;
  box-sizing: border-box !important;
  width: min(560px, 100%) !important;
  max-width: 560px !important;
  max-height: calc(100dvh - 32px) !important;
  margin: auto !important;
  overflow: auto !important;
  overscroll-behavior: contain !important;
  background: #fff !important;
  isolation: isolate !important;
}

.popup.open .popup__close {
  z-index: 2 !important;
}

/* Reserve space for the close control on long desktop dialog headings. */
.popup.open .popup__title {
  padding: 0 52px;
}

@media (max-width: 744px) {
  .popup.open {
    align-items: center !important;
    justify-content: center !important;
  }

  .popup.open .popup__content {
    max-height: calc(100dvh - 32px) !important;
    padding: 18px 16px !important;
    gap: 14px !important;
    border-radius: 20px !important;
  }

  .popup.open .popup__title {
    padding: 0 42px;
    font-size: 1.65rem !important;
    line-height: 1.08 !important;
  }

  .popup.open .popup__subtitle {
    line-height: 1.35;
  }

  .popup.open .popup__form,
  .popup.open .popup__form form {
    width: 100% !important;
    max-width: 100% !important;
  }

  .popup.open .popup__form form {
    gap: 10px !important;
  }

  .popup.open .popup__form input:not([type="checkbox"]):not([type="radio"]) {
    min-height: 44px !important;
  }

  .popup.open .popup__close {
    right: 12px !important;
    top: 12px !important;
  }
}

/* MUESTRA_MOBILE_PRODUCT_WIDTH_CONTRACT: exact 320px containment */
@media (max-width: 744px) {
  .product__single .product__row {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex-wrap: wrap !important;
  }

  .product__single .product__row > .product__available {
    box-sizing: border-box !important;
    display: block !important;
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
  }

  .product__tabs,
  .product__tabs .woocommerce-tabs.wc-tabs-wrapper,
  .product__tabs .tab-header-scrolling {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .product__tabs .tab-header-scrolling {
    overflow-x: visible !important;
    overflow-y: visible !important;
  }

  .product__tabs .tabs.wc-tabs {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex-wrap: wrap !important;
    gap: 8px 12px !important;
    padding-bottom: 12px !important;
  }

  .product__tabs .tabs.wc-tabs > li {
    box-sizing: border-box !important;
    flex: 1 1 132px !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 44px !important;
    overflow-wrap: anywhere !important;
  }

  .product__tabs .tabs.wc-tabs > li > a {
    display: flex !important;
    align-items: center !important;
    min-height: 44px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
}

/* MUESTRA_MOBILE_COOKIE_SETTINGS_FLOW_V1: keep settings out of page copy. */
@media (max-width: 744px) {
  #muestra-analytics-settings {
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    display: block !important;
    width: fit-content;
    max-width: calc(100% - 32px);
    min-height: 44px;
    margin: 16px auto !important;
  }
}


/* FJ-MUESTRA-MENU-ZINDEX-TRANSITION-001: closed menus cannot intercept input.
   Keep opacity/transform animation; stacking order must switch immediately. */
.mobmenu {
  -webkit-transition: -webkit-transform .5s ease-out, opacity .5s ease-out;
  transition: transform .5s ease-out, opacity .5s ease-out;
  pointer-events: none;
}
.mobmenu.open {
  pointer-events: auto;
}

.muestra-recovered-catalog img {
  max-width: 100%;
  height: auto;
}

/* Native form controls keep the original grid after the CF7 wrapper is removed.
   The snippet wrapper is semantic only; legacy hidden fields take no grid cell. */
.muestra-lead-form > .hidden-fields-container { display: none; }
.muestra-lead-form > .muestra-form-nosnippet { display: contents; }
.muestra-lead-form > .wpcf7-response-output { grid-column: 1 / -1; }

/* Match the native mobile content gutter in the catalog request component. */
@media (max-width: 744px) {
  .catalog-help__wrapper { box-sizing: border-box; padding-inline: 16px; }
}

/* Price/analogue requests use the existing optional lead.php comment field. */
.muestra-lead-form .muestra-task-field {
  display: grid;
  grid-column: 1 / -1;
  gap: 6px;
  min-width: 0;
  width: 100%;
  font-size: 14px;
  line-height: 1.4;
}
.muestra-lead-form .muestra-task-field textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 88px;
  max-width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #f7f7f7;
  color: #222;
  font: inherit;
  resize: vertical;
}

/* Keep a verified product photo and its heading together on narrow screens. */
@media (max-width: 744px) {
  .product__main .product__frame img[data-image-identity="verified-source"] {
    --four-site-product-image-max-height: 320px;
  }
}

.product__single .product__available:not(.product__available--not) {
  color: #166534;
  background-color: #e9f7ee;
  border-color: #b7dec4;
  background-image: radial-gradient(circle at center, #15803d 0 4px, transparent 4.5px);
}

/* Typography aligned with the approved Planeta product reference. */
@font-face { font-family: "Onest"; src: url("fonts/onest-variable.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }
.product__single :is(h1,h2,h3,p,li,button,input,textarea,select),
.muestra-virtual-service :is(h1,h2,h3,p,li,button,input,textarea,select) { font-family: "Onest", sans-serif; }
.product__single .product__title,
main.muestra-virtual-service .muestra-virtual-service__hero h1 { font-family: "Onest", sans-serif; font-size: 33px; font-weight: 500; line-height: 1.15; letter-spacing: -.01em; }
@media (max-width: 767px) {
  .product__single .product__title,
  main.muestra-virtual-service .muestra-virtual-service__hero h1 { font-size: 26px; line-height: 1.2; }
}

/* Match product description text to the agreed catalogue type scale. */
main .product__tabs #tab-description :is(p, li) {
  font-family: "Onest", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 24px;
  max-inline-size: 774px;
}

@media (max-width: 767px) {
  main .product__tabs #tab-description :is(p, li) {
    max-inline-size: min(100%, 414px);
  }
}
