/* =========================================================
   BONAFORA — NOWE KONTO: USTAWIENIE HASŁA
========================================================= */

.woocommerce-account .bf-new-password {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  width: 100%;
  margin: 0 0 28px;
  padding: 26px 28px;
  background: #fff8f6;
  border: 1px solid #e4a39b;
  border-radius: 22px;
  box-sizing: border-box;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.035);
}

.woocommerce-account .bf-new-password__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #d9a29b;
  color: #111;
  border-radius: 50%;
  font-family: Inter, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.woocommerce-account .bf-new-password__content {
  min-width: 0;
}

.woocommerce-account .bf-new-password h2 {
  margin: 0 0 10px !important;
  color: #111 !important;
  font-family: Inter, sans-serif !important;
  font-size: clamp(23px, 2vw, 28px) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

.woocommerce-account .bf-new-password p {
  margin: 0 0 8px !important;
  color: #111 !important;
  font-family: Inter, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
}

.woocommerce-account .bf-new-password__important {
  color: #c62828 !important;
  font-weight: 800 !important;
}

.woocommerce-account .bf-new-password__form {
  margin: 18px 0 9px !important;
}

.woocommerce-account .bf-new-password__button {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 280px !important;
  min-height: 58px !important;
  max-width: 100% !important;
  padding: 14px 32px !important;
  margin: 0 !important;
  background: #fff !important;
  color: #111 !important;
  border: 3px solid #111 !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;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease !important;
}

.woocommerce-account .bf-new-password__button:hover,
.woocommerce-account .bf-new-password__button:focus {
  background: #f7c2b2 !important;
  color: #111 !important;
  border-color: #f7c2b2 !important;
}

.woocommerce-account .bf-new-password__button:focus-visible {
  outline: 2px solid #111 !important;
  outline-offset: 3px !important;
}

.woocommerce-account .bf-new-password__hint {
  margin-bottom: 0 !important;
  color: #5f5553 !important;
  font-size: 14px !important;
}

.woocommerce-account .bf-new-password__status {
  margin: 14px 0 0 !important;
  padding: 10px 12px !important;
  background: #fff !important;
  border-left: 4px solid #d9a29b !important;
  border-radius: 6px !important;
  font-size: 14px !important;
}

.woocommerce-account .bf-new-password__status--success {
  border-left-color: #2f7d4a !important;
}

.woocommerce-account .bf-new-password__status--error {
  border-left-color: #c62828 !important;
}

@media (max-width: 767px) {
  .woocommerce-account .bf-new-password {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 21px 18px;
    border-radius: 18px;
  }

  .woocommerce-account .bf-new-password__icon {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .woocommerce-account .bf-new-password__button {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* =========================================================
   BONAFORA — STANDARDOWE KOMUNIKATY WOOCOMMERCE

   Obejmuje klasyczne notices WooCommerce:
   - sukces: .woocommerce-message
   - informacja: .woocommerce-info
   - błąd: .woocommerce-error

   Celowo NIE obejmuje komunikatów WooCommerce Blocks
   (.wc-block-components-notice-banner).
========================================================= */

body.woocommerce-page .woocommerce-message,
body.woocommerce-page .woocommerce-info,
body.woocommerce-page .woocommerce-error,
body.woocommerce .woocommerce-message,
body.woocommerce .woocommerce-info,
body.woocommerce .woocommerce-error {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  margin: 0 0 24px !important;
  padding: 18px 20px !important;
  background: #fff8f6 !important;
  background-image: none !important;
  color: #111 !important;
  border: 1px solid #e4a39b !important;
  border-left-width: 4px !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  clear: both !important;
  list-style: none !important;
  font-family: Inter, sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.55 !important;
  text-align: left !important;
}

/* Sukces. */
body.woocommerce-page .woocommerce-message,
body.woocommerce .woocommerce-message {
  border-left-color: #2f7d4a !important;
}

/* Informacja. */
body.woocommerce-page .woocommerce-info,
body.woocommerce .woocommerce-info {
  border-left-color: #d9a29b !important;
}

/* Błąd. */
body.woocommerce-page .woocommerce-error,
body.woocommerce .woocommerce-error {
  background: #fff8f8 !important;
  border-color: #e6b3b3 !important;
  border-left-color: #c62828 !important;
}

/*
 * WooCommerce albo motyw mogą dokładać ikonę przez ::before/::after.
 * To właśnie ten element potrafił renderować się jako zepsuty obrazek.
 */
body.woocommerce-page .woocommerce-message::before,
body.woocommerce-page .woocommerce-message::after,
body.woocommerce-page .woocommerce-info::before,
body.woocommerce-page .woocommerce-info::after,
body.woocommerce-page .woocommerce-error::before,
body.woocommerce-page .woocommerce-error::after,
body.woocommerce .woocommerce-message::before,
body.woocommerce .woocommerce-message::after,
body.woocommerce .woocommerce-info::before,
body.woocommerce .woocommerce-info::after,
body.woocommerce .woocommerce-error::before,
body.woocommerce .woocommerce-error::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  background-image: none !important;
  border: 0 !important;
}

/* Zabezpieczenie, gdy motyw wstawia ikonę jako prawdziwy IMG/SVG. */
body.woocommerce-page .woocommerce-message > img,
body.woocommerce-page .woocommerce-message > svg,
body.woocommerce-page .woocommerce-info > img,
body.woocommerce-page .woocommerce-info > svg,
body.woocommerce-page .woocommerce-error > img,
body.woocommerce-page .woocommerce-error > svg,
body.woocommerce .woocommerce-message > img,
body.woocommerce .woocommerce-message > svg,
body.woocommerce .woocommerce-info > img,
body.woocommerce .woocommerce-info > svg,
body.woocommerce .woocommerce-error > img,
body.woocommerce .woocommerce-error > svg {
  display: none !important;
}

/* Błędy WooCommerce są często listą <ul><li>. */
body.woocommerce-page .woocommerce-error li,
body.woocommerce .woocommerce-error li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  color: inherit !important;
  font: inherit !important;
}

body.woocommerce-page .woocommerce-error li + li,
body.woocommerce .woocommerce-error li + li {
  margin-top: 8px !important;
}

/* Zwykłe linki w komunikacie pozostają czytelne. */
body.woocommerce-page .woocommerce-message a:not(.button),
body.woocommerce-page .woocommerce-info a:not(.button),
body.woocommerce-page .woocommerce-error a:not(.button),
body.woocommerce .woocommerce-message a:not(.button),
body.woocommerce .woocommerce-info a:not(.button),
body.woocommerce .woocommerce-error a:not(.button) {
  color: #111 !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

@media (max-width: 767px) {
  body.woocommerce-page .woocommerce-message,
  body.woocommerce-page .woocommerce-info,
  body.woocommerce-page .woocommerce-error,
  body.woocommerce .woocommerce-message,
  body.woocommerce .woocommerce-info,
  body.woocommerce .woocommerce-error {
    margin-bottom: 20px !important;
    padding: 16px 17px !important;
    border-radius: 14px !important;
    font-size: 14px !important;
  }
}

/* =========================================================
   BONAFORA — KOMUNIKAT O NOWYM SKLEPIE PRZY LOGOWANIU
========================================================= */

.woocommerce-account .bf-migration-login-notice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  width: 100%;
  margin: 0 0 28px;
  padding: 22px 24px;
  background: #fff8f6;
  border: 1px solid #e4a39b;
  border-radius: 18px;
  box-sizing: border-box;
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.03);
}

.woocommerce-account .bf-migration-login-notice__content {
  min-width: 0;
}

.woocommerce-account .bf-migration-login-notice h3 {
  margin: 0 0 8px !important;
  color: #111 !important;
  font-family: Inter, sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

.woocommerce-account .bf-migration-login-notice p {
  margin: 0 0 6px !important;
  color: #111 !important;
  font-family: Inter, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

.woocommerce-account .bf-migration-login-notice p:last-child {
  margin-bottom: 0 !important;
}

/* Celowo bez klasy WooCommerce .button — nie przejmuje pozycjonowania
   głównego przycisku „Zaloguj się”. */
.woocommerce-account .bf-migration-login-notice__button {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 190px !important;
  min-height: 48px !important;
  padding: 11px 24px !important;
  margin: 0 !important;
  background: #fff !important;
  color: #111 !important;
  border: 2px solid #111 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  font-family: Inter, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer !important;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease !important;
}

.woocommerce-account .bf-migration-login-notice__button:hover,
.woocommerce-account .bf-migration-login-notice__button:focus {
  background: #f7c2b2 !important;
  color: #111 !important;
  border-color: #f7c2b2 !important;
}

.woocommerce-account .bf-migration-login-notice__button:focus-visible {
  outline: 2px solid #111 !important;
  outline-offset: 3px !important;
}

/* =========================================================
   BONAFORA — KOMUNIKAT PO NIEUDANYM LOGOWANIU
========================================================= */

.woocommerce-account .bf-migration-login-error {
  display: block !important;
  color: inherit !important;
  font: inherit !important;
  line-height: 1.55 !important;
}

.woocommerce-account .bf-migration-login-error__link {
  display: inline-block !important;
  margin-top: 8px !important;
  color: #111 !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.woocommerce-account .bf-migration-login-error__link:hover,
.woocommerce-account .bf-migration-login-error__link:focus {
  color: #8a5b50 !important;
}

@media (max-width: 767px) {
  .woocommerce-account .bf-migration-login-notice {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px 16px;
    border-radius: 16px;
  }

  .woocommerce-account .bf-migration-login-notice h3 {
    font-size: 18px !important;
  }

  .woocommerce-account .bf-migration-login-notice__button {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* =========================================================
   BONAFORA v1.0.6 — TWARDY FIX RWD DLA NOTICE WOOCOMMERCE

   Breakdance / CSS mobilny potrafił ponownie nadać notice własny
   układ, obramowanie i ikonę po załadowaniu wcześniejszych reguł.
   Te selektory są celowo bardziej szczegółowe i dotyczą tylko
   klasycznych komunikatów WooCommerce.
========================================================= */

html body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-notices-wrapper > .woocommerce-message,
html body.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-message,
html body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message,
html body.woocommerce-account .woocommerce-notices-wrapper > .woocommerce-message,
html body.woocommerce-account .woocommerce-message,
html body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-notices-wrapper > .woocommerce-info,
html body.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-info,
html body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info,
html body.woocommerce-account .woocommerce-notices-wrapper > .woocommerce-info,
html body.woocommerce-account .woocommerce-info,
html body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-notices-wrapper > .woocommerce-error,
html body.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-error,
html body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-error,
html body.woocommerce-account .woocommerce-notices-wrapper > .woocommerce-error,
html body.woocommerce-account .woocommerce-error {
  position: relative !important;
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  margin: 0 0 24px !important;
  padding: 18px 20px !important;
  background: #fff8f6 !important;
  background-image: none !important;
  color: #111 !important;
  border: 1px solid #e4a39b !important;
  border-left: 4px solid #d9a29b !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  clear: both !important;
  list-style: none !important;
  font-family: Inter, sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.55 !important;
  text-align: left !important;
  overflow: visible !important;
}

html body.woocommerce-account .woocommerce-message {
  border-left-color: #2f7d4a !important;
}

html body.woocommerce-account .woocommerce-error {
  background: #fff8f8 !important;
  border-color: #e6b3b3 !important;
  border-left-color: #c62828 !important;
}

/* Usuń ikonę niezależnie od tego, czy jest pseudo-elementem notice,
   pseudo-elementem dziecka, czy prawdziwym elementem IMG/SVG/I. */
html body.woocommerce-account .woocommerce-message::before,
html body.woocommerce-account .woocommerce-message::after,
html body.woocommerce-account .woocommerce-info::before,
html body.woocommerce-account .woocommerce-info::after,
html body.woocommerce-account .woocommerce-error::before,
html body.woocommerce-account .woocommerce-error::after,
html body.woocommerce-account .woocommerce-message > *::before,
html body.woocommerce-account .woocommerce-message > *::after,
html body.woocommerce-account .woocommerce-info > *::before,
html body.woocommerce-account .woocommerce-info > *::after,
html body.woocommerce-account .woocommerce-error > *::before,
html body.woocommerce-account .woocommerce-error > *::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body.woocommerce-account .woocommerce-message img,
html body.woocommerce-account .woocommerce-message svg,
html body.woocommerce-account .woocommerce-message i,
html body.woocommerce-account .woocommerce-message [class*="icon" i],
html body.woocommerce-account .woocommerce-info img,
html body.woocommerce-account .woocommerce-info svg,
html body.woocommerce-account .woocommerce-info i,
html body.woocommerce-account .woocommerce-info [class*="icon" i],
html body.woocommerce-account .woocommerce-error img,
html body.woocommerce-account .woocommerce-error svg,
html body.woocommerce-account .woocommerce-error i,
html body.woocommerce-account .woocommerce-error [class*="icon" i] {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

@media (max-width: 767px) {
  html body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-notices-wrapper > .woocommerce-message,
  html body.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-message,
  html body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message,
  html body.woocommerce-account .woocommerce-notices-wrapper > .woocommerce-message,
  html body.woocommerce-account .woocommerce-message,
  html body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-notices-wrapper > .woocommerce-info,
  html body.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-info,
  html body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info,
  html body.woocommerce-account .woocommerce-notices-wrapper > .woocommerce-info,
  html body.woocommerce-account .woocommerce-info,
  html body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-notices-wrapper > .woocommerce-error,
  html body.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-error,
  html body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-error,
  html body.woocommerce-account .woocommerce-notices-wrapper > .woocommerce-error,
  html body.woocommerce-account .woocommerce-error {
    display: block !important;
    grid-template-columns: none !important;
    flex-direction: initial !important;
    align-items: initial !important;
    justify-content: initial !important;
    gap: 0 !important;
    margin: 0 0 20px !important;
    padding: 16px 17px !important;
    background: #fff8f6 !important;
    background-image: none !important;
    border: 1px solid #e4a39b !important;
    border-left: 4px solid #d9a29b !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    text-align: left !important;
  }

  html body.woocommerce-account .woocommerce-message {
    border-left-color: #2f7d4a !important;
  }

  html body.woocommerce-account .woocommerce-error {
    background: #fff8f8 !important;
    border-color: #e6b3b3 !important;
    border-left-color: #c62828 !important;
  }
}
