/* elc_promo: promotion pop-up + toasts */
:root {
  --elc-promo-brand: #432323;
  --elc-promo-surface: #f5f3f1;
  --elc-promo-text: #1c1414;
  --elc-promo-muted: #5f5555;
}

.elc-promo-lock,
.elc-promo-lock body {
  overflow: hidden;
}

/* ---------- pop-up ---------- */

.elc-promo-popup {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.elc-promo-popup[hidden] {
  display: none;
}
.elc-promo-popup.is-visible {
  opacity: 1;
}
.elc-promo-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 12, 0.55);
}
.elc-promo-popup__dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: 100%;
  max-width: 840px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: var(--elc-promo-surface);
  color: var(--elc-promo-text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(12px);
  transition: transform 0.25s ease;
}
.elc-promo-popup__dialog:focus {
  outline: none;
}
.elc-promo-popup.is-visible .elc-promo-popup__dialog {
  transform: none;
}
.elc-promo-popup__media {
  min-width: 0;
  min-height: 420px;
  background: #e9e4df;
}
.elc-promo-popup__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.elc-promo-popup__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 56px 48px;
}
.elc-promo-popup__logo {
  max-width: 160px;
  max-height: 48px;
  margin-bottom: 28px;
  /* the shop logo is white (made for the dark header) - render it in dark brown-black */
  filter: brightness(0);
  opacity: 0.85;
}
.elc-promo-popup__subtitle {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.4;
  color: var(--elc-promo-muted);
}
.elc-promo-popup__title {
  margin: 0 0 32px;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--elc-promo-text);
  text-transform: none;
}
.elc-promo-popup__button,
.elc-promo-popup__button:visited {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 999px;
  background: var(--elc-promo-brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease;
}
.elc-promo-popup__button:hover,
.elc-promo-popup__button:focus {
  background: #2a1515;
  color: #fff;
  text-decoration: none;
}
.elc-promo-popup__dismiss {
  margin-top: 16px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--elc-promo-muted);
  font-size: 14px;
  font-style: italic;
  text-decoration: underline;
  cursor: pointer;
}
.elc-promo-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--elc-promo-text);
  cursor: pointer;
}
.elc-promo-popup__close:hover {
  background: #fff;
}

@media (max-width: 640px) {
  .elc-promo-popup__dialog {
    grid-template-columns: minmax(0, 1fr);
    max-width: 420px;
  }
  .elc-promo-popup__media {
    min-height: 0;
    height: 220px;
  }
  .elc-promo-popup__body {
    padding: 28px 24px 32px;
  }
  .elc-promo-popup__logo {
    margin-bottom: 16px;
  }
  .elc-promo-popup__title {
    margin-bottom: 24px;
  }
}

/* ---------- toasts ---------- */

.elc-promo-toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10060;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 360px;
  max-width: calc(100vw - 32px);
}
.elc-promo-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 40px 12px 12px;
  position: relative;
  background: #fff;
  color: var(--elc-promo-text);
  border-left: 4px solid var(--elc-promo-brand);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.elc-promo-toast.is-visible {
  opacity: 1;
  transform: none;
}
.elc-promo-toast--removed {
  border-left-color: #9a8f8f;
}
.elc-promo-toast__image {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  object-fit: cover;
}
.elc-promo-toast__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}
.elc-promo-toast__close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border: 0;
  background: none;
  color: var(--elc-promo-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 640px) {
  .elc-promo-toasts {
    right: 16px;
    left: 16px;
    bottom: 16px;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .elc-promo-popup,
  .elc-promo-popup__dialog,
  .elc-promo-toast {
    transition: none;
  }
}

/* ---------- lowest price in 30 days (Omnibus), under the product price ---------- */
.elc-omnibus {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--elc-promo-muted);
}
.elc-omnibus__price {
  white-space: nowrap;
}

/* ---------- "Praca" (form 3) and "B2B" (form 2) pages: ets_contactform7 forms ---------- */
/* Kept here rather than in the theme's custom.css, which is edited by hand over FTP. */
.wpcf7[data-id="2"] form > h3,
.wpcf7[data-id="3"] form > h3 {
  display: none;
}
.wpcf7[data-id="2"] .wpcf7-submit,
.wpcf7[data-id="3"] .wpcf7-submit {
  min-height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: 6px;
  background: var(--elc-promo-brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease;
}
.wpcf7[data-id="2"] .wpcf7-submit:hover,
.wpcf7[data-id="2"] .wpcf7-submit:focus-visible,
.wpcf7[data-id="3"] .wpcf7-submit:hover,
.wpcf7[data-id="3"] .wpcf7-submit:focus-visible {
  background: #2a1515;
}
/* Disabled until the consent box is ticked (Contact Form 7 behaviour) */
.wpcf7[data-id="2"] .wpcf7-submit:disabled,
.wpcf7[data-id="3"] .wpcf7-submit:disabled {
  background: var(--elc-promo-brand);
  opacity: 0.45;
  cursor: not-allowed;
}
/* CV upload: one native file button styled in the brand colour (the module adds a second, fake one) */
.wpcf7[data-id="3"] .button_choosefile {
  display: none;
}
.wpcf7[data-id="3"] input[type="file"] {
  width: 100%;
  height: auto;
  padding: 8px;
  border: 1px dashed #c9bfb8;
  border-radius: 6px;
  background: #faf8f6;
  font-size: 14px;
  cursor: pointer;
}
.wpcf7[data-id="3"] input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 14px;
  border: 0;
  border-radius: 4px;
  background: var(--elc-promo-brand);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.wpcf7[data-id="3"] .file_type_des {
  display: none;
}
/* "Czego potrzebujesz?" checkbox group */
.elc-cf7-group {
  margin: 4px 0 14px;
}
.elc-cf7-group__label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}
.elc-cf7-group .wpcf7-list-item {
  display: inline-block;
  margin: 0 16px 6px 0;
}
/* Success message after sending */
.wpcf7[data-id="2"] .wpcf7-mail-sent-ok,
.wpcf7[data-id="3"] .wpcf7-mail-sent-ok {
  margin: 16px 0 0;
  padding: 14px 16px;
  border: 0;
  border-left: 4px solid #2e7d4f;
  border-radius: 4px;
  background: #eaf5ee;
  color: #1d4d31;
  font-size: 15px;
  font-weight: 600;
}
/* "Pracuj z nami" heading, same weight as the B2B page heading */
.cms-id-6 .elementor-widget-text-editor h2 {
  margin: 0 0 16px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: none;
}
@media (max-width: 767px) {
  .cms-id-6 .elementor-widget-text-editor h2 {
    font-size: 28px;
  }
}
