/* Preserve the original full-photo heroes and animated product showcases.
   Only the existing PDF/catalogue actions are refined here.
   Brand orange is taken from PRESCOT_logo-podstawowe.svg. */
html body #content .mdw-card-portfolio .pm-download-widget,
html body #content .mdw-card-portfolio .pm-download-widget > .elementor-widget-container {
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
}
html body #content .mdw-card-portfolio .pm-download-widget h2 {
  margin: 0 !important;
  padding: 0 !important;
  font: 600 14px/1.4 var(--prescot-font-body, sans-serif) !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  -webkit-text-fill-color: currentColor !important;
}
html body #content .mdw-card-portfolio .pm-download,
html body #content .mdw-card-portfolio .sp-product-action .elementor-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: fit-content !important;
  max-width: 100% !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 12px 20px !important;
  border: 1px solid #e14e26 !important;
  border-radius: 10px !important;
  background: #e14e26 !important;
  color: #fff !important;
  -webkit-text-fill-color: currentColor !important;
  box-shadow: none !important;
  font: 600 14px/1.4 var(--prescot-font-body, sans-serif) !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-decoration: none !important;
  white-space: normal !important;
  text-align: center !important;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease !important;
}
/* Documentation is a secondary action; buying/browsing keeps the orange fill. */
html body #content .mdw-card-portfolio .pm-download {
  border-color: #ffffff68 !important;
  background: #ffffff0a !important;
}
html body #content .mdw-card-portfolio .pm-download svg {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
}
html body #content .mdw-card-portfolio .sp-download-caption { display: none !important; }
html body #content .mdw-card-portfolio :is(.pm-download, .sp-product-action .elementor-button):focus-visible {
  outline: 3px solid #e14e26 !important;
  outline-offset: 4px !important;
}
@media (hover: hover) {
  html body #content .mdw-card-portfolio .pm-download:hover {
    background: #ffffff16 !important;
    border-color: #e14e26 !important;
    box-shadow: 0 0 0 1px #e14e26 !important;
  }
  html body #content .mdw-card-portfolio .sp-product-action .elementor-button:hover {
    background: #c7401c !important;
    border-color: #c7401c !important;
    box-shadow: 0 4px 16px #0002 !important;
  }
}
@media (max-width: 767px) {
  html body #content .mdw-card-portfolio .pm-download,
  html body #content .mdw-card-portfolio .sp-product-action .elementor-button {
    width: 100% !important;
  }
  /* A real catalogue link remains available next to the PDF on Delux phones;
     decorative badges keep the original mobile visibility rules. */
  html body #content .pm-delux-showcase .pm-reveal-copy .sp-product-action {
    display: block !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  html body #content .mdw-card-portfolio :is(.pm-download, .sp-product-action .elementor-button) {
    transition: none !important;
  }
}
/* Short phones still need room for the original copy and the document links.
   Keep the sticky reveal and its transforms; remove only the old 640px floor. */
@media (max-width: 767px) and (max-height: 650px) {
  html body #content .mdw-card-portfolio.pm-mobile-showcase:not(.pm-delux-showcase) .pm-reveal-stage {
    min-height: 100svh !important;
    padding-block: 24px !important;
  }
}

html body #content .pm-contact-widget{border:0!important;background:none!important;padding:0!important}
html body #content .pm-contact-widget :is(h2,.elementor-widget-container){font:500 14px/1.5 var(--prescot-font-body,sans-serif)!important;letter-spacing:0!important;border:0!important;background:none!important;padding:0!important;margin:0!important}
html body #content .pm-contact-action{display:inline-flex;align-items:center;justify-content:center;gap:14px;min-height:48px;padding:12px 20px;border:1px solid #ffffff68;border-radius:10px;color:#fff;background:#ffffff0a;text-decoration:none;font-size:14px;letter-spacing:0}
html body #content .pm-contact-action:hover{border-color:#e14e26;background:#ffffff16}
html body #content .pm-contact-action:focus-visible{outline:2px solid #e14e26;outline-offset:4px}
html body #content .pm-contact-action::after{content:'→';font-size:20px}
html body .prescot-process-story.elementor-element-eeeaee5 .prescot-process-photo{background-size:contain!important;min-height:280px!important;--min-height:280px}
@media(max-width:767px){html body .prescot-process-story.elementor-element-eeeaee5 .prescot-process-photo{display:flex!important;width:100%!important;min-height:250px!important;background-size:cover!important;background-position:center!important}}

/* A stable dark logo tab stays legible over pale catalogue photography. */
html body.prescot-mobile-catalog :is(.prescot-smart-logo,#top-sticky-logo) a{background:#212a35;padding:12px 18px;border-radius:10px;box-shadow:0 2px 12px #0002}
html body.prescot-mobile-catalog :is(.prescot-smart-logo,#top-sticky-logo) img{filter:none!important}
@media(max-width:767px){html body .prescot-process-story.elementor-element-eeeaee5 .prescot-process-photo{min-height:190px!important;--min-height:190px;background-size:135% auto!important}}

/* Offset the logo tab padding without shifting the centred mark. */
html body.prescot-mobile-catalog #top-sticky-logo a{display:inline-block!important;margin-inline:-18px}
