/* Shared public presentation. Image triggers, image overlays and modal backdrops
   deliberately keep their original backgrounds and behaviour. */
body:not(.wp-admin) {
  --dw-visual-blue: #35b9ea;
  --dw-visual-accent: #35b9ea;
  --dw-visual-line: #35b9ea;
  --ddrp-blue: #35b9ea;
  --ddpb-blue: #35b9ea;
}
body :is(.ddhm-desktop-link,.ddhm-mobile-panel__link) {
  border-radius: 12px !important;
  box-shadow: none !important;
}
body :is(.dwhp-hero,.dwhp-page-hero,.ddpages-hero,.ddrp-hero-media,.dds-services-hero) {
  border-radius: 24px !important;
  overflow: hidden;
  box-shadow: none !important;
}
body :is(.dwhp-search-section,.search-box-content,.ddpages-card,.ddpages-package,.ddrp-card,.ddrp-reel-cover,.ddrp-before-after-frame,.ddrp-empty,.ddpb-card,.dds-search,.dds-contact,.dds-promotion) {
  box-shadow: none !important;
  border-radius: 24px;
}
body :is(.ddpages-section,.ddrp-section,.ddpb-page-shell,.dds-services,.dds-search,.dds-contact,.dds-promotion,.dwhp-search-section) {
  background: #fff !important;
}
/* All public CTA families, not the transparent buttons wrapping photographs. */
body :is(.ddhm-desktop-link,.ddhm-mobile-panel__link,.dwhp-hero__button,.ddpages-button,.ddrp-button,.ddrp-featured-gallery-trigger,.ddpb-button,.dds-search-submit,.dds-search-footer button,.dds-services button[type=submit],.wpcf7-submit,.theme_button,.theme-button,.dws-search-button,.dws-reset-button) {
  background: var(--dw-visual-blue) !important;
  border-color: var(--dw-visual-blue) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
body :is(.ddhm-desktop-link,.ddpages-button,.ddrp-button,.ddrp-featured-gallery-trigger,.ddpb-button,.dds-search-submit,.wpcf7-submit,.theme_button):hover {
  background: #35b9ea !important;
  border-color: #35b9ea !important;
  color: #fff !important;
}
body :is(.wpcf7-form,.dds-search,.contact-us-box-form,.property_form) :is(input[type=text],input[type=email],input[type=tel],input[type=url],input[type=number],select,textarea),
body .dds-search .dw-select-toggle {
  background-color: #fff !important;
  color: #234d63 !important;
  border: 1px solid var(--dw-visual-line) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  min-height: 48px;
}
body :is(.wpcf7-form,.dds-search,.contact-us-box-form,.property_form) :is(input,select,textarea):focus-visible,
body :is(.ddhm-desktop-link,.ddrp-button,.ddrp-featured-gallery-trigger,.ddpb-button,.wpcf7-submit):focus-visible {
  outline: 2px solid #0877a7 !important;
  outline-offset: 3px;
  box-shadow: none !important;
}
body .dds-contact {
  padding: clamp(20px,3vw,36px);
  border: 1px solid var(--dw-visual-line) !important;
}
body .dds-contact-grid { gap: 20px; }
body .dds-contact :is(p,label,.wpcf7-form-control-wrap) { max-width: 100%; }
body .dds-contact-grid label,
body .dds-contact > .wpcf7 form > p > label { display:block; width:100%; }
body .dds-contact :is(.dds-branches,.dds-promotion) {
  background: #fff !important;
  border: 1px solid var(--dw-visual-line) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}
body .dds-contact input[type=checkbox] { accent-color: #35b9ea; }
body .dds-contact .wpcf7-submit:disabled { opacity:.6; cursor:not-allowed; }
@media(max-width:767px) {
  body :is(.dwhp-hero,.dwhp-page-hero,.ddpages-hero,.ddrp-hero-media,.dds-services-hero) { border-radius:18px !important; }
  body .dds-contact { padding:20px 16px; }
  body .dds-contact-grid { grid-template-columns:minmax(0,1fr); }
}
/* The publication-gallery adapter shares image trigger classes: only its
   explicitly marked text links are CTAs. Never recolour photograph buttons. */
body.ddrp-realizations-page button.ddpub-gallery-link {
  background:#35b9ea !important;
  border:1px solid #35b9ea !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  border-radius:12px !important;
  box-shadow:none !important;
}
body #uslugi-katalog-szkic-v2 .dds-contact,
body #uslugi-katalog-szkic-v2 .dds-search {
  border:1px solid #35b9ea !important;
  border-radius:24px !important;
  background:#fff !important;
  box-shadow:none !important;
}
body #uslugi-katalog-szkic-v2 .dds-contact :is(input[type=text],input[type=email],input[type=tel],textarea),
body #uslugi-katalog-szkic-v2 .dds-search :is(input[type=text],.dds-select-toggle) {
  border:1px solid #35b9ea !important;
  border-radius:12px !important;
  background:#fff !important;
  box-shadow:none !important;
}
