/* =========================================================
   BONAFORA — GLOBAL CSS
   Elementy wspólne dla całej strony
   ========================================================= */

/* =========================================================
   Górny pasek — licznik wysyłki
   ========================================================= */

.top-bar {
  display: flex;
  align-items: center;
  justify-content: center;

  height: 44px;
  min-height: 44px;
  padding: 0 8px;

  line-height: 1.2;
  text-align: center;
}

.ship-countdown {
  margin: 0 4px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .top-bar {
    height: 36px;
    min-height: 36px;
    padding: 0 8px;

    font-size: 12px;
    line-height: 1.2;
    text-align: center;
  }
}

/* =========================================================
   FiboSearch — panel szczegółów produktu
   Zostaje zdjęcie i nazwa produktu
   ========================================================= */

.dgwt-wcas-details-wrapp :is(
  .dgwt-wcas-pd-sku,
  .dgwt-wcas-pd-sku-val,
  .dgwt-wcas-sku,
  .sku,
  .dgwt-wcas-pd-desc,
  .dgwt-wcas-pd-excerpt,
  .dgwt-wcas-pd-description,
  .dgwt-wcas-product-details,
  .dgwt-wcas-pd-content,
  .dgwt-wcas-pd-price,
  .dgwt-wcas-tpd-price,
  .price,
  .woocommerce-Price-amount,
  .dgwt-wcas-pd-addtc,
  .dgwt-wcas-pd-addtc-form,
  form.cart,
  .quantity,
  .button,
  button
) {
  display: none !important;
}

/* =========================================================
   Breakdance — wysokie mega menu i kolejność warstw
   ========================================================= */

.breakdance-dropdown-floater .breakdance-dropdown-body {
  max-height: calc(100dvh - 70px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}

.breakdance-dropdown-floater,
.breakdance-dropdown,
.breakdance-menu {
  z-index: 9999 !important;
}

/* =========================================================
   Menu mobilne — pełna szerokość bez zależności od ID Breakdance
   Breakpoint zgodny z „Tablet Landscape” w Menu Builderze
   ========================================================= */

@media (max-width: 1119px) {
  .breakdance-menu-list.is-visible {
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }
}

.mobile-menu-style .breakdance-menu-list {
  display: flex;
  flex-direction: column;
}

.mobile-menu-style .breakdance-menu-item {
  width: 100%;
}

.mobile-menu-style .breakdance-menu-item > a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  font-size: 15px;
}

.mobile-menu-style .breakdance-dropdown {
  position: static;
  display: none;
}

.mobile-menu-style .breakdance-menu-item.open > .breakdance-dropdown {
  display: block;
}

/* =========================================================
   Mini cart — przyciski i wysokość panelu
   ========================================================= */

.bde-mini-cart-offcanvas-body :is(
  a.checkout,
  a.wc-forward.checkout,
  .woocommerce-mini-cart__buttons a.checkout,
  .button.checkout
),
.bde-mini-cart-offcanvas-body :is(
  a.checkout,
  a.wc-forward.checkout,
  .woocommerce-mini-cart__buttons a.checkout,
  .button.checkout
) * {
  text-transform: none !important;
}

/* =========================================================
   Mini cart RWD — szerokość względem ekranu, nie rodzica
   ========================================================= */

@media (max-width: 767px) {

  html.is-breakdance-mini-cart-open,
  html.is-breakdance-mini-cart-open body {
    overflow-x: hidden !important;
  }

  html.is-breakdance-mini-cart-open
  .bde-mini-cart-offcanvas.bde-mini-cart-offcanvas--active {
    position: fixed !important;

    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;

    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;

    margin: 0 !important;
    box-sizing: border-box !important;

    transform: none !important;
  }

  html.is-breakdance-mini-cart-open
  .bde-mini-cart-offcanvas-body,
  html.is-breakdance-mini-cart-open
  .widget_shopping_cart_content,
  html.is-breakdance-mini-cart-open
  .woocommerce-mini-cart {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  html.is-breakdance-mini-cart-open
  .bde-mini-cart-item {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  html.is-breakdance-mini-cart-open
  .bde-mini-cart-item-title {
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
  }
}

/* =========================================================
   Trusted Shops — kolejność warstw
   ========================================================= */

etrusted-widget,
[id*="trustbadge"],
[class*="trustbadge"] {
  z-index: 2 !important;
}

/* =========================================================
   YITH Wishlist — komunikaty i klikalność
   ========================================================= */

.yith-wcwl-feedback-messages-container {
  display: none !important;
}

.yith-wcwl-add-to-wishlist,
.yith-wcwl-add-to-wishlist a {
  pointer-events: auto !important;
}

.yith-wcwl-add-to-wishlist a {
  cursor: pointer !important;
}

.yith-wcwl-add-to-wishlist :is(svg, i) {
  pointer-events: none !important;
}
/* =========================================================
   Mini cart RWD — hamburger nie przebija przez panel
   ========================================================= */

@media (max-width: 767px) {

  html.is-breakdance-mini-cart-open
  :is(
    .bde-menu-toggle,
    .breakdance-menu-toggle,
    .bde-menu-custom-area,
    [class*="menu-toggle"],
    [class*="hamburger"]
  ) {
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* =========================================================
   Wishlist — pozycja serduszka na kafelku produktu
   ========================================================= */

.woocommerce ul.products li.product {
  position: relative;
}

.bonafora-wishlist-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

/* =========================================================
   Wishlist — grafika pustego i pełnego serduszka
   ========================================================= */

.bonafora-wishlist-icon .yith-wcwl-add-to-wishlist a {
  font-size: 0;
  line-height: 0;
}

.bonafora-wishlist-icon
.yith-wcwl-add-to-wishlist
 a :is(svg, i, img) {
  display: none;
}

.bonafora-wishlist-icon
.yith-wcwl-add-to-wishlist
 a::before {
  content: "";
  display: block;

  width: 28px;
  height: 28px;

  background-image:
    url("/wp-content/uploads/2026/05/Projekt-bez-nazwy-10.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  pointer-events: none;
}

.bonafora-wishlist-icon :is(
  .yith-wcwl-wishlistaddedbrowse,
  .yith-wcwl-wishlistexistsbrowse
) a::before,
.bonafora-wishlist-icon a:is(
  .delete_item,
  .remove_from_wishlist
)::before {
  background-image:
    url("/wp-content/uploads/2026/05/2.png");
}

/* =========================================================
   Wishlist — serduszko i licznik w nagłówku
   ========================================================= */

.bf-wishlist-header {
  position: relative;

  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  width: 24px;
  height: 24px;

  color: #000;
  text-decoration: none !important;
  white-space: nowrap;
}

.bf-wishlist-heart {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.bf-wishlist-header .bonafora-wishlist-count {
  position: absolute;
  top: -7px;
  right: -9px;

  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  box-sizing: border-box;

  background: #e8a9a3;
  color: #000;
  border-radius: 999px;

  font-size: 9px;
  font-weight: 600;
  line-height: 1;
}
/* =========================================================
   Breakdance — szybsze mobilne menu
   Bez sztywnego ID elementu — działa po zmianie/duplikacji headera
   ========================================================= */

@media (max-width: 1119px) {
  .breakdance-menu-list,
  .breakdance-menu-list *,
  .breakdance-dropdown,
  .breakdance-dropdown * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* =========================================================
   Strona główna — mini cart zakotwiczony do ekranu
   ========================================================= */

@media (max-width: 767px) {

  html.is-breakdance-mini-cart-open
  body.home
  .bde-mini-cart-offcanvas--active
  .bde-mini-cart-offcanvas-body {
    position: fixed !important;

    top: var(
      --wp-admin--admin-bar--height,
      0px
    ) !important;

    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;

    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;

    height: calc(
      100dvh -
      var(--wp-admin--admin-bar--height, 0px)
    ) !important;

    min-height: 0 !important;

    max-height: calc(
      100dvh -
      var(--wp-admin--admin-bar--height, 0px)
    ) !important;

    margin: 0 !important;
    box-sizing: border-box !important;
    transform: none !important;
  }
}
/* Kategorie produktu — maksymalnie 2 linie na RWD */
@media (max-width: 767px) {
  body.single-product .bf-product-terms a {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;

    line-height: 1.3;
    max-height: 2.6em;
  }
}

/* =========================================================
   GLOBAL — InStock Notifier: popup również na listingu
   Skopiowane z product.css; bez zmian wyglądu
   ========================================================= */
/* =========================================================
   BONAFORA — POPUP "POWIADOM O DOSTĘPNOŚCI"
   Wtyczka: Back In Stock Notifier + SweetAlert2 Opty-Fix
   ========================================================= */
   body .cwginstock-subscribe-form,
   body .cwginstock-subscribe-form *,
   body .swal2-popup,
   body .swal2-popup * {
   box-sizing: border-box !important;
}

/* --- 1. RESET I STRUKTURA BAZOWA SWEETALERT2 --- */
body .swal2-container {
  padding: 0 !important;
}
body .swal2-container.swal2-center {
  align-items: flex-start !important;
  padding-top: 90px !important;
}
body .swal2-popup,
body .swal2-modal,
body .swal2-show,
body .swal2-header,
body .swal2-content,
body .swal2-html-container,
body .swal2-actions,
body .swal2-footer {
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

/* --- 2. GŁÓWNE OKIENKO FORMULARZA (Standard + Swal2) --- */
body .cwginstock-subscribe-form,
body .swal2-popup .cwginstock-subscribe-form {
  width: 520px !important;
  max-width: calc(100vw - 40px) !important;
  margin: 0 auto !important;
  background: #ffffff !important;
  border: 1px solid #ead8d4 !important;
  border-radius: 24px !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16) !important;
  overflow: hidden !important;
  font-family: inherit;
  color: #111111;
}
body .cwginstock-subscribe-form .panel,
body .cwginstock-subscribe-form .panel-primary {
  background: transparent;
  border: 0;
  box-shadow: none;
  margin: 0;
}

/* --- 3. NAGŁÓWEK POPUPU --- */
body .cwginstock-subscribe-form .panel-heading,
body .cwginstock-subscribe-form .modal-header,
body .cwginstock-subscribe-form .cwginstock-panel-heading {
  background: #d9a29b !important;
  border: 0;
  padding: 28px 34px;
  text-align: center;
}
body .cwginstock-subscribe-form .panel-heading h4,
body .cwginstock-subscribe-form .modal-title,
body .cwginstock-subscribe-form h3,
body .cwginstock-subscribe-form h4 {
  color: #111111;
  font-family: inherit;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}

/* --- 4. CIAŁO FORMULARZA & KOMUNIKATY --- */
body .cwginstock-subscribe-form .panel-body,
body .cwginstock-subscribe-form .modal-body,
body .cwginstock-subscribe-form form {
  background: #ffffff;
  padding: 30px 34px 34px;
}
body .cwginstock-subscribe-form .form-group,
body .cwginstock-subscribe-form p,
body .cwginstock-subscribe-form .cwginstock-field {
  margin-bottom: 14px;
}
body .cwginstock-subscribe-form .cwginstock_success,
body .cwginstock-subscribe-form .success,
body .cwginstock-subscribe-form .alert-success {
  background: #f7eee9;
  color: #111111;
  border: 1px solid #ead8d4;
  border-radius: 14px;
  padding: 12px 14px;
}
body .cwginstock-subscribe-form .cwginstock_error,
body .cwginstock-subscribe-form .error,
body .cwginstock-subscribe-form .alert-danger {
  background: #fff1f1;
  color: #9b1c1c;
  border: 1px solid #f0b8b8;
  border-radius: 14px;
  padding: 12px 14px;
}

/* --- 5. POLA INPUT (Standardowe) --- */
body .cwginstock-subscribe-form input[type="text"],
body .cwginstock-subscribe-form input[type="email"],
body .cwginstock-subscribe-form input[type="number"],
body .cwginstock-subscribe-form .form-control {
  width: 100%;
  height: 54px;
  padding: 12px 18px;
  background: #ffffff;
  color: #111111;
  border: 1px solid #ded8d5;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  box-shadow: none;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
body .cwginstock-subscribe-form input::placeholder {
  color: #8d8582;
  opacity: 1;
}
body .cwginstock-subscribe-form input[type="text"]:focus,
body .cwginstock-subscribe-form input[type="email"]:focus,
body .cwginstock-subscribe-form input[type="number"]:focus,
body .cwginstock-subscribe-form .form-control:focus {
  border-color: #d9a29b;
  box-shadow: 0 0 0 3px rgba(217, 162, 155, 0.25);
}

/* --- 6. SPECJALNE POLE TELEFONU (iti / intl-tel-input) --- */
body .cwginstock-subscribe-form .iti,
body .cwginstock-subscribe-form .intl-tel-input {
  width: 100% !important;
  position: relative !important;
  display: block !important;
}
body .cwginstock-subscribe-form input[type="tel"],
body .cwginstock-subscribe-form .iti input[type="tel"],
body .cwginstock-subscribe-form .intl-tel-input input[type="tel"] {
  width: 100% !important;
  height: 54px !important;
  min-height: 54px !important;
  padding-left: 132px !important;
  padding-right: 20px !important;
  border: 1px solid #ded8d5 !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  font-size: 16px !important;
  line-height: 54px !important;
  text-align: center !important;
  box-shadow: none !important;
  outline: none !important;
}
body .cwginstock-subscribe-form input[type="tel"]:focus {
  border-color: #d9a29b !important;
  box-shadow: 0 0 0 3px rgba(217, 162, 155, 0.25) !important;
}

/* Kontener flagi */
body .cwginstock-subscribe-form .iti__country-container,
body .cwginstock-subscribe-form .intl-tel-input .flag-container {
  position: absolute !important;
  left: 6px !important;
  top: 6px !important;
  bottom: auto !important;
  transform: none !important;
  height: 42px !important;
  min-height: 42px !important;
  display: flex !important;
  align-items: center !important;
  z-index: 5 !important;
}

/* Pastylka wybranego kraju */
body .cwginstock-subscribe-form .iti__selected-country,
body .cwginstock-subscribe-form .iti__selected-flag,
body .cwginstock-subscribe-form .intl-tel-input .selected-flag,
body .cwginstock-subscribe-form .iti button.iti__selected-country {
  height: 42px !important;
  min-height: 42px !important;
  min-width: 112px !important;
  padding: 0 14px !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: #ffffff !important;
  color: #111111 !important;
  border: 1px solid #ded8d5 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  outline: none !important;
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
}

/* Reset stanów aktywnego wyboru flagi */
body .cwginstock-subscribe-form .iti .iti__selected-country:focus,
body .cwginstock-subscribe-form .iti .iti__selected-country:focus-visible,
body .cwginstock-subscribe-form .iti .iti__selected-country:active,
body .cwginstock-subscribe-form .iti button.iti__selected-country:focus,
body .cwginstock-subscribe-form .iti button.iti__selected-country:focus-visible {
  border: 1px solid #ded8d5 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: #ffffff !important;
}
body .cwginstock-subscribe-form .iti__selected-country:hover,
body .cwginstock-subscribe-form .iti button.iti__selected-country:hover {
  border-color: #d9a29b !important;
  background: #ffffff !important;
}
body .cwginstock-subscribe-form .iti .iti__selected-dial-code {
  color: #111111 !important;
  font-weight: 500 !important;
  margin-left: 6px !important;
}
body .cwginstock-subscribe-form .iti__arrow,
body .cwginstock-subscribe-form .intl-tel-input .iti-arrow {
  border-top-color: #111111 !important;
}

/* --- 7. ZGODY I LINKI --- */
body .cwginstock-subscribe-form label,
body .cwginstock-subscribe-form label span {
  color: #111111;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.3;
}
body .cwginstock-subscribe-form input[type="checkbox"] {
  accent-color: #d9a29b;
  width: 15px;
  height: 15px;
  margin-right: 8px;
}
body .cwginstock-subscribe-form a {
  color: #111111;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body .cwginstock-subscribe-form .cwginstock-gdpr,
body .cwginstock-subscribe-form .cwginstock-terms,
body .cwginstock-subscribe-form .form-group:has(input[type="checkbox"]) {
  margin-bottom: 22px;
}

/* --- 8. PRZYCISKI (Wewnątrz popupu oraz główny na karcie) --- */
body .cwginstock-subscribe-form button:not(.close),
body .cwginstock-subscribe-form input[type="submit"],
body .cwginstock-subscribe-form .btn:not(.close),
body .cwginstock-subscribe-form .cwgstock_button,
body .cwginstock-subscribe-form .cwginstock-subscribe-button,
body .summary .cwgstock_button, 
body .summary .cwginstock-subscribe-button, 
body .entry-summary .cwgstock_button, 
body button.cwgstock_button, 
body input.cwgstock_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  background: #ffffff;
  color: #111111;
  border: 3px solid #111111;
  border-radius: 999px;
  font-family: inherit;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
  text-transform: none;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
  appearance: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Przycisk w popupie (Szerokość 100%) */
body .cwginstock-subscribe-form button:not(.close),
body .cwginstock-subscribe-form input[type="submit"],
body .cwginstock-subscribe-form .cwginstock-subscribe-button {
  width: 100%;
  margin-top: 18px;
  padding: 12px 28px;
}

/* Przycisk główny na karcie produktu (Szerokość auto / min 320px) */
body .summary .cwgstock_button, 
body .summary .cwginstock-subscribe-button, 
body .entry-summary .cwgstock_button, 
body button.cwgstock_button, 
body input.cwgstock_button {
  width: auto;
  min-width: 320px;
  max-width: 100%;
  padding: 12px 32px;
}

/* Hover dla wszystkich buttonów */
body .cwginstock-subscribe-form button:not(.close):hover,
body .cwginstock-subscribe-form input[type="submit"]:hover,
body .cwginstock-subscribe-form .cwginstock-subscribe-button:hover,
body .summary .cwgstock_button:hover, 
body .summary .cwginstock-subscribe-button:hover, 
body button.cwgstock_button:hover {
  background: #d9a29b;
  color: #ffffff;
  border-color: #d9a29b;
}
/* =========================================================
   POPRAWKA MOBILE — POWIADOMIENIE O DOSTĘPNOŚCI
   ========================================================= */

@media (max-width: 768px) {

  /* Popup ma być ponad nagłówkiem strony */
  body .swal2-container {
    z-index: 2147483000 !important;
    padding: 12px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  /* Ustawienie popupu w bezpiecznej odległości od góry */
  body .swal2-container.swal2-center {
    align-items: flex-start !important;
    justify-content: center !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  body .swal2-popup {
    position: relative !important;
    margin: 0 auto !important;
  }

  /* Okno nie może być wyższe od ekranu */
  body .cwginstock-subscribe-form,
  body .swal2-popup .cwginstock-subscribe-form {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;

    max-height: calc(100vh - 24px) !important;
    max-height: calc(100dvh - 24px) !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;

    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  body .cwginstock-subscribe-form,
  body .cwginstock-subscribe-form * {
    box-sizing: border-box !important;
  }

  /* Trochę mniejsze odstępy, aby formularz nie był tak wysoki */
  body .cwginstock-subscribe-form .panel-heading,
  body .cwginstock-subscribe-form .modal-header,
  body .cwginstock-subscribe-form .cwginstock-panel-heading {
    padding: 18px 52px 18px 20px !important;
  }

  body .cwginstock-subscribe-form .panel-body,
  body .cwginstock-subscribe-form .modal-body,
  body .cwginstock-subscribe-form form {
    padding: 20px !important;
  }

  body .cwginstock-subscribe-form .form-group,
  body .cwginstock-subscribe-form p,
  body .cwginstock-subscribe-form .cwginstock-field {
    margin-bottom: 11px !important;
  }

  /* Krzyżyk wewnątrz okna, a nie nad nim */
  body .swal2-close {
    top: 8px !important;
    right: 8px !important;

    width: 36px !important;
    height: 36px !important;

    background: #ffffff !important;
    color: #111111 !important;

    border: 1px solid #ead8d4 !important;
    z-index: 2147483001 !important;
  }

  /* Przycisk wysyłający formularz */
  body .cwginstock-subscribe-form button:not(.close),
  body .cwginstock-subscribe-form input[type="submit"],
  body .cwginstock-subscribe-form .cwgstock_button,
  body .cwginstock-subscribe-form .cwginstock-subscribe-button {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    margin: 14px auto 0 !important;
    padding: 12px 16px !important;

    justify-content: center !important;
    box-sizing: border-box !important;
  }

  /* Główny przycisk „Powiadom mnie o dostawie” na karcie produktu */
  body .summary .cwgstock_button,
  body .summary .cwginstock-subscribe-button,
  body .summary button.cwg_popup_submit,
  body .entry-summary .cwgstock_button,
  body .entry-summary .cwginstock-subscribe-button,
  body .entry-summary button.cwg_popup_submit {
    display: flex !important;

    width: calc(100% - 24px) !important;
    max-width: 360px !important;
    min-width: 0 !important;

    margin-left: auto !important;
    margin-right: auto !important;

    justify-content: center !important;
    box-sizing: border-box !important;
  }
}
/* --- 9. PRZYCISKI ZAMKNIĘCIA (Krzyżyki standardowe i Swal2) --- */
body .cwg_popup_submit .close,
body .cwginstock-subscribe-form .close,
body .cwginstock-subscribe-form button.close {
  background: transparent;
  color: #b7a7a3;
  border: 0;
  box-shadow: none;
  font-size: 36px;
  font-weight: 300;
  line-height: 1;
  opacity: 1;
  transition: color 0.2s ease;
}
body .cwg_popup_submit .close:hover,
body .cwginstock-subscribe-form .close:hover {
  background: transparent;
  color: #d9a29b;
}

/* Dedykowany zewnętrzny krzyżyk Swal2 floating okrągły */
body .swal2-close {
  position: absolute !important;
  top: -16px !important;
  right: -16px !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #ffffff !important;
  color: #b7a7a3 !important;
  border: 1px solid #ead8d4 !important;
  border-radius: 999px !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14) !important;
  font-size: 34px !important;
  font-weight: 300 !important;
  line-height: 1 !important;
  opacity: 1 !important;
  cursor: pointer !important;
}
body .swal2-close:hover {
  background: #d9a29b !important;
  color: #ffffff !important;
  border-color: #d9a29b !important;
}


/* =========================================================
   10. KONSOLIDACJA I RESPONSYWNOŚĆ (MEDIA QUERIES)
   ========================================================= */
@media (max-width: 768px) {
  body .swal2-container.swal2-center {
    padding-top: 70px !important;
  }
  body .cwg_popup_submit .modal-dialog {
    max-width: calc(100vw - 32px);
    margin: 0 auto;
  }
  body .cwginstock-subscribe-form,
  body .swal2-popup .cwginstock-subscribe-form {
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    border-radius: 20px !important;
  }
  body .cwginstock-subscribe-form .panel-heading,
  body .cwginstock-subscribe-form .modal-header,
  body .cwginstock-subscribe-form .cwginstock-panel-heading {
    padding: 24px 22px;
  }
  body .cwginstock-subscribe-form .panel-heading h4,
  body .cwginstock-subscribe-form h3 {
    font-size: 22px;
  }
  body .cwginstock-subscribe-form .panel-body,
  body .cwginstock-subscribe-form form {
    padding: 24px 22px 28px;
  }
  
  /* Inputs Mobile */
  body .cwginstock-subscribe-form input[type="text"],
  body .cwginstock-subscribe-form input[type="email"],
  body .cwginstock-subscribe-form .form-control {
    height: 50px;
    font-size: 15px;
  }
  
  /* Telefon Mobile */
  body .cwginstock-subscribe-form input[type="tel"] {
    height: 50px !important;
    min-height: 50px !important;
    line-height: 50px !important;
    padding-left: 118px !important;
    font-size: 15px !important;
  }
  body .cwginstock-subscribe-form .iti__country-container {
    top: 5px !important;
    left: 5px !important;
    height: 40px !important;
    min-height: 40px !important;
  }
  body .cwginstock-subscribe-form .iti__selected-country,
  body .cwginstock-subscribe-form .iti button.iti__selected-country {
    height: 40px !important;
    min-height: 40px !important;
    min-width: 104px !important;
    padding: 0 12px !important;
    font-size: 15px !important;
  }

  /* Przycisk w popupie Mobile */
  body .cwginstock-subscribe-form button:not(.close),
  body .cwginstock-subscribe-form input[type="submit"],
  body .cwginstock-subscribe-form .cwginstock-subscribe-button {
    min-height: 52px;
    font-size: 18px;
  }
  
  /* Przycisk na karcie produktu Mobile */
  body .summary .cwgstock_button, 
  body .summary .cwginstock-subscribe-button, 
  body .entry-summary .cwgstock_button,
  body button.cwgstock_button {
    min-width: 100% !important;
    width: 100% !important;
    min-height: 52px !important;
    padding: 12px 24px !important;
    font-size: 18px !important;
  }
  
  /* Krzyżyk Mobile */
  body .swal2-close {
    top: -12px !important;
    right: -8px !important;
    width: 34px !important;
    height: 34px !important;
    font-size: 28px !important;
  }
}
/* =========================================================
   POPUP „POWIADOM MNIE” — KRZYŻYK WEWNĄTRZ OKNA NA DESKTOPIE
   ========================================================= */

@media (min-width: 769px) {

  body .swal2-popup {
    position: relative !important;
  }

  body .swal2-close {
    position: absolute !important;

    top: 12px !important;
    right: 12px !important;
    bottom: auto !important;
    left: auto !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;

    margin: 0 !important;
    padding: 0 0 3px !important;

    background: #ffffff !important;
    color: #8f7d78 !important;

    border: 1px solid #ead8d4 !important;
    border-radius: 50% !important;

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14) !important;

    font-size: 30px !important;
    font-weight: 300 !important;
    line-height: 1 !important;

    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;

    z-index: 9999999 !important;
    transform: none !important;
  }

  body .swal2-close:hover {
    background: #d9a29b !important;
    color: #ffffff !important;
    border-color: #d9a29b !important;
  }

  /* Zostawia miejsce na krzyżyk w różowym nagłówku */
  body
  .cwginstock-subscribe-form
  .panel-heading {
    padding-right: 62px !important;
    padding-left: 62px !important;
  }
}
/* =========================================================
   InStock Notifier — usuń podwójny przycisk na listingach
   Zostaje wyłącznie przycisk otwierający popup
   ========================================================= */

.product:has(.cwg_popup_submit)
a.button.product_type_simple:not(.cwg_popup_submit) {
  display: none !important;
}
/* =========================================================
   InStock Notifier — przycisk popupu na listingach
   ========================================================= */

body:not(.single-product)
.product
.cwg_popup_submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 100% !important;
  max-width: 100% !important;
  min-height: 56px !important;

  margin: 0 !important;
  padding: 10px 12px !important;

  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;

  color: #111111 !important;

  border: 3px solid #111111 !important;
  border-radius: 999px !important;

  font-family: inherit !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  line-height: 1.1 !important;

  text-align: center !important;
  white-space: nowrap !important;

  box-sizing: border-box !important;
  box-shadow: none !important;

  appearance: none !important;
  -webkit-appearance: none !important;

  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent !important;

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease !important;
}


/* Hover jak przy „Dodaj do koszyka” */

@media (hover: hover) and (pointer: fine) {

  body:not(.single-product)
  .product
  .cwg_popup_submit:hover {
    background: #d9a29b !important;
    background-color: #d9a29b !important;

    color: #111111 !important;
    border-color: #d9a29b !important;
  }
}


/* Telefon i tablet */

@media (max-width: 768px) {

  body:not(.single-product)
  .product
  .cwg_popup_submit {
    min-height: 52px !important;
    padding: 7px 8px !important;

    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.15 !important;

    white-space: normal !important;
    overflow-wrap: normal !important;
    text-align: center !important;
  }
}


/* Dotyk — bez zawieszonego koloru */

@media (hover: none), (pointer: coarse) {

  body:not(.single-product)
  .product
  .cwg_popup_submit:hover,

  body:not(.single-product)
  .product
  .cwg_popup_submit:focus {
    background: transparent !important;
    background-color: transparent !important;

    color: #111111 !important;
    border-color: #111111 !important;

    outline: none !important;
  }

  body:not(.single-product)
  .product
  .cwg_popup_submit:active {
    background: #d9a29b !important;
    background-color: #d9a29b !important;

    color: #111111 !important;
    border-color: #d9a29b !important;
  }
}
/*
 * =====================================================
 * MOJE KONTO — PRZYCISKI
 * =====================================================
 */

/* Zapisz zmiany */
.woocommerce-account
.woocommerce-EditAccountForm
button[name="save_account_details"],

/* Zresetuj hasło */
.woocommerce-account
form.lost_reset_password
button[type="submit"],

/* Ustaw nowe hasło */
.woocommerce-account
.woocommerce-ResetPassword
button[type="submit"] {
    appearance: none !important;
    -webkit-appearance: none !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: auto !important;
    max-width: 100% !important;
    min-height: 58px !important;

    padding: 14px 30px !important;
    margin: 0 !important;

    background: #ffffff !important;
    color: #111111 !important;

    border: 3px solid #111111 !important;
    border-radius: 999px !important;
    box-shadow: none !important;

    font-family: Inter, sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;

    text-align: center !important;
    text-transform: none !important;
    text-decoration: none !important;

    box-sizing: border-box !important;
    cursor: pointer !important;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease !important;
}

/* Hover — róż Bonafora */
.woocommerce-account
.woocommerce-EditAccountForm
button[name="save_account_details"]:hover,

.woocommerce-account
form.lost_reset_password
button[type="submit"]:hover,

.woocommerce-account
.woocommerce-ResetPassword
button[type="submit"]:hover {
    background: #f7c2b2 !important;
    color: #111111 !important;
    border-color: #f7c2b2 !important;
}

/* Focus klawiaturą */
.woocommerce-account
.woocommerce-EditAccountForm
button[name="save_account_details"]:focus-visible,

.woocommerce-account
form.lost_reset_password
button[type="submit"]:focus-visible,

.woocommerce-account
.woocommerce-ResetPassword
button[type="submit"]:focus-visible {
    outline: 2px solid #f7c2b2 !important;
    outline-offset: 3px !important;
}
/*
 * =====================================================
 * NOWE KONTO — INFORMACJA O USTAWIENIU HASŁA
 * =====================================================
 */

/* Komunikat może mieć klasę info albo message */
body.woocommerce-account
.woocommerce-MyAccount-content
.woocommerce-notices-wrapper
:is(.woocommerce-info, .woocommerce-message),

body.woocommerce-account
.woocommerce-MyAccount-content
> :is(.woocommerce-info, .woocommerce-message) {
    position: relative !important;

    display: block !important;
    width: 100% !important;

    margin: 0 0 32px !important;
    padding: 28px 30px !important;

    background: #fff8f6 !important;
    color: #111111 !important;

    border: 1px solid #e7aaa3 !important;
    border-radius: 22px !important;
    box-shadow: none !important;

    font-family: Inter, sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.55 !important;

    box-sizing: border-box !important;
}

/* Wyraźne czerwone wezwanie nad tekstem */
body.woocommerce-account
.woocommerce-MyAccount-content
.woocommerce-notices-wrapper
:is(.woocommerce-info, .woocommerce-message)::before,

body.woocommerce-account
.woocommerce-MyAccount-content
> :is(.woocommerce-info, .woocommerce-message)::before {
    content: "USTAW NOWE HASŁO" !important;

    position: static !important;
    display: block !important;

    width: auto !important;
    height: auto !important;

    margin: 0 0 10px !important;
    padding: 0 !important;

    background: none !important;
    color: #c62828 !important;

    font-family: Inter, sans-serif !important;
    font-size: 23px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;

    border: 0 !important;
}

/* Wyłączenie ewentualnej drugiej ikony WooCommerce */
body.woocommerce-account
.woocommerce-MyAccount-content
.woocommerce-notices-wrapper
:is(.woocommerce-info, .woocommerce-message)::after,

body.woocommerce-account
.woocommerce-MyAccount-content
> :is(.woocommerce-info, .woocommerce-message)::after {
    display: none !important;
}

/*
 * Jeżeli komunikat zawiera link lub przycisk,
 * zostanie wystylizowany jako duża pastylka.
 */
body.woocommerce-account
.woocommerce-MyAccount-content
.woocommerce-notices-wrapper
:is(.woocommerce-info, .woocommerce-message)
:is(a, .button),

body.woocommerce-account
.woocommerce-MyAccount-content
> :is(.woocommerce-info, .woocommerce-message)
:is(a, .button) {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    min-height: 58px !important;

    margin: 22px 0 0 !important;
    padding: 14px 30px !important;

    background: #ffffff !important;
    color: #111111 !important;

    border: 3px solid #111111 !important;
    border-radius: 999px !important;

    float: none !important;

    font-family: Inter, sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-decoration: none !important;

    box-sizing: border-box !important;
    cursor: pointer !important;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease !important;
}

body.woocommerce-account
.woocommerce-MyAccount-content
.woocommerce-notices-wrapper
:is(.woocommerce-info, .woocommerce-message)
:is(a, .button):hover,

body.woocommerce-account
.woocommerce-MyAccount-content
> :is(.woocommerce-info, .woocommerce-message)
:is(a, .button):hover {
    background: #f7c2b2 !important;
    color: #111111 !important;
    border-color: #f7c2b2 !important;
}


/*
 * =====================================================
 * FORMULARZ RESETOWANIA HASŁA — PRZYCISK
 * =====================================================
 */

body.woocommerce-account
form.lost_reset_password
button[type="submit"] {
    appearance: none !important;
    -webkit-appearance: none !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-width: 290px !important;
    min-height: 58px !important;

    padding: 14px 32px !important;

    background: #ffffff !important;
    color: #111111 !important;

    border: 3px solid #111111 !important;
    border-radius: 999px !important;
    box-shadow: none !important;

    font-family: Inter, sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;

    text-transform: none !important;
    cursor: pointer !important;
}

body.woocommerce-account
form.lost_reset_password
button[type="submit"]:hover {
    background: #f7c2b2 !important;
    color: #111111 !important;
    border-color: #f7c2b2 !important;
}


/*
 * TELEFON
 */
@media (max-width: 767px) {

    body.woocommerce-account
    .woocommerce-MyAccount-content
    .woocommerce-notices-wrapper
    :is(.woocommerce-info, .woocommerce-message),

    body.woocommerce-account
    .woocommerce-MyAccount-content
    > :is(.woocommerce-info, .woocommerce-message) {
        padding: 22px 18px !important;
        border-radius: 18px !important;
    }

    body.woocommerce-account
    .woocommerce-MyAccount-content
    .woocommerce-notices-wrapper
    :is(.woocommerce-info, .woocommerce-message)::before,

    body.woocommerce-account
    .woocommerce-MyAccount-content
    > :is(.woocommerce-info, .woocommerce-message)::before {
        font-size: 20px !important;
    }

    body.woocommerce-account
    form.lost_reset_password
    button[type="submit"] {
        width: 100% !important;
        min-width: 0 !important;
    }
}
body.woocommerce-account
.woocommerce-MyAccount-content
form p:has(button[name="save_address"]) {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.woocommerce-account
.woocommerce-MyAccount-content
button[name="save_address"] {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;

  position: static !important;
  float: none !important;

  width: auto !important;
  min-width: 220px !important;
  min-height: 52px !important;
  padding: 12px 28px !important;

  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;

  background: #fff !important;
  color: #111 !important;
  border: 3px solid #111 !important;
  border-radius: 999px !important;
}
/* Konto klienta – adresy jeden pod drugim na telefonie */
@media (max-width: 767px) {
  body.woocommerce-account
  .woocommerce-customer-details
  .woocommerce-columns--addresses {
    display: block !important;
  }

  body.woocommerce-account
  .woocommerce-customer-details
  .woocommerce-column--billing-address,
  body.woocommerce-account
  .woocommerce-customer-details
  .woocommerce-column--shipping-address {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 24px !important;
  }
}
/* Stopka RWD — większe pola dotykowe */
@media (max-width: 767px) {

  .bde-text-link-2049-133,
  button.breakdance-menu-link[aria-controls="dropdown-192"] {
    display: flex !important;
    align-items: center !important;

    min-height: 48px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;

    box-sizing: border-box !important;
  }
}