/**
 * My Account - Panel użytkownika po zalogowaniu
 * Nowoczesny design z nawigacją zakładkową na górze
 * Version: 2.0
 */

/* ===============================================
   STRONA GŁÓWNA MOJE-KONTO - ZALOGOWANY
   =============================================== */

/* Tło strony - białe dla spójności ze stopką */
.woocommerce-account.logged-in {
  background: #ffffff !important;
}

.woocommerce-account.logged-in #content,
.woocommerce-account.logged-in .site-content,
.woocommerce-account.logged-in .content-area {
  background: #ffffff !important;
  padding-top: 0 !important;
}

/* Ukryj nagłówek strony, przycisk Edit i zakładkę Płatności One click */
.woocommerce-account.logged-in .entry-header,
.woocommerce-account.logged-in h1.entry-title,
.woocommerce-account.logged-in .page-title,
.woocommerce-account.logged-in .edit-link,
.woocommerce-account.logged-in footer.entry-footer,
.woocommerce-MyAccount-navigation-link--payment-methods,
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--payment-methods,
.woocommerce-MyAccount-navigation ul li[class*="payment-methods"],
.woocommerce-MyAccount-navigation ul li[class*="payment"],
nav.woocommerce-MyAccount-navigation ul li:nth-child(5) {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  left: -9999px !important;
}

/* Główny kontener - szeroki panel jako jeden blok */
/* UWAGA: Wykluczamy elementy wyszukiwarki DGWT */
.woocommerce-account.logged-in .woocommerce:not(.dgwt-wcas-suggestions-wrapp):not(.dgwt-wcas-has-img):not(.dgwt-wcas-search-wrapp):not([class*="dgwt-wcas"]) {
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 2.5rem 2rem !important;
  display: block !important;
  background: #ffffff !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid #e8ecf2 !important;
}

/* WAŻNE: Nadpisanie domyślnych stylów WooCommerce dla layoutu */
.woocommerce-account.logged-in .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-navigation {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  margin-right: 0 !important;
}

.woocommerce-account.logged-in .woocommerce-MyAccount-content,
.woocommerce-account .woocommerce-MyAccount-content {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  margin-left: 0 !important;
  clear: both !important;
}

/* Clearfix dla głównego kontenera */
.woocommerce-account.logged-in .woocommerce::after {
  content: "" !important;
  display: table !important;
  clear: both !important;
}

/* ===============================================
   NAWIGACJA - ZAKŁADKI NA GÓRZE (część panelu)
   =============================================== */
.woocommerce-MyAccount-navigation {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  border: none !important;
  border-bottom: 1px solid #e8ecf2 !important;
  width: 100% !important;
  margin-bottom: 0 !important;
}

/* Nagłówek "Panel klienta" */
.woocommerce-MyAccount-navigation::before {
  content: 'Panel klienta';
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #012241;
  padding: 1.5rem 2rem;
  text-align: center;
  background: transparent;
  border: none;
}

.woocommerce-MyAccount-navigation ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 0 1.5rem 0 !important;
  display: flex !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 0.75rem !important;
  background: transparent !important;
}

.woocommerce-MyAccount-navigation ul li {
  margin: 0 !important;
  flex-shrink: 0 !important;
}

.woocommerce-MyAccount-navigation ul li a {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1rem 1.75rem !important;
  color: #5a6a7a !important;
  text-decoration: none !important;
  border-radius: 12px !important;
  transition: all 0.3s ease !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  position: relative !important;
  background: #f5f7fa !important;
  border: 1px solid transparent !important;
  min-width: 110px !important;
  text-align: center !important;
  gap: 0.5rem !important;
}

/* Ikony dla elementów menu */
.woocommerce-MyAccount-navigation ul li a::before {
  content: '';
  width: 26px;
  height: 26px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.7;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

/* Ikona - Pulpit/Kokpit */
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--dashboard a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%235a6a7a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zM14 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zM14 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z'%3E%3C/path%3E%3C/svg%3E");
}

/* Ikona - Zamówienia */
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--orders a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%235a6a7a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z'%3E%3C/path%3E%3C/svg%3E");
}

/* Ikona - Adresy */
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--edit-address a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%235a6a7a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z'%3E%3C/path%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 11a3 3 0 11-6 0 3 3 0 016 0z'%3E%3C/path%3E%3C/svg%3E");
}

/* Ikona - Szczegóły konta */
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--edit-account a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%235a6a7a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z'%3E%3C/path%3E%3C/svg%3E");
}

/* Ikona - Metody płatności / One Click */
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--payment-methods a::before,
.woocommerce-MyAccount-navigation ul li[class*="payment"] a::before,
.woocommerce-MyAccount-navigation ul li[class*="one-click"] a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%235a6a7a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z'%3E%3C/path%3E%3C/svg%3E");
}

/* Ikona - Wyloguj */
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%235a6a7a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1'%3E%3C/path%3E%3C/svg%3E");
}

/* Ikona - Pobrane pliki */
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--downloads a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%235a6a7a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4'%3E%3C/path%3E%3C/svg%3E");
}

/* Ikona - Punkty lojalnościowe */
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--points-and-rewards a::before,
.woocommerce-MyAccount-navigation ul li[class*="points"] a::before,
.woocommerce-MyAccount-navigation ul li[class*="loyalty"] a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%235a6a7a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z'%3E%3C/path%3E%3C/svg%3E");
}

/* Ikona - Subskrypcje */
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--subscriptions a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%235a6a7a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15'%3E%3C/path%3E%3C/svg%3E");
}

/* Hover na zakładkach */
.woocommerce-MyAccount-navigation ul li a:hover {
  background: #e8f0fa !important;
  color: #1C5EA8 !important;
  border-color: transparent !important;
}

.woocommerce-MyAccount-navigation ul li a:hover::before {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(31%) sepia(93%) saturate(456%) hue-rotate(182deg) brightness(93%) contrast(91%);
}

/* Aktywna zakładka */
.woocommerce-MyAccount-navigation ul li.is-active a {
  background: linear-gradient(135deg, #1C5EA8 0%, #164B87 100%) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 15px rgba(32, 91, 171, 0.3) !important;
}

.woocommerce-MyAccount-navigation ul li.is-active a::before {
  filter: brightness(0) invert(1);
  opacity: 1;
}

/* Zakładka wyloguj - specjalne stylowanie */
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
  background: #fef2f2 !important;
  color: #dc2626 !important;
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a:hover::before {
  filter: brightness(0) saturate(100%) invert(22%) sepia(93%) saturate(3521%) hue-rotate(352deg) brightness(89%) contrast(95%);
}

/* ===============================================
   GŁÓWNA TREŚĆ KONTA - POD ZAKŁADKAMI (część panelu)
   =============================================== */
.woocommerce-MyAccount-content {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 1.5rem 0 !important;
  border: none !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  float: none !important;
  clear: both !important;
  display: block !important;
  margin: 0 !important;
}

/* Formularze - pełna szerokość */
.woocommerce-MyAccount-content .woocommerce-EditAccountForm,
.woocommerce-MyAccount-content .woocommerce-address-fields,
.woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper,
.woocommerce-MyAccount-content form {
  max-width: 100% !important;
  width: 100% !important;
}

/* Szczegóły konta - układ dwóch kolumn (tylko desktop) */
.woocommerce-MyAccount-content .woocommerce-EditAccountForm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
  padding-bottom: 0;
}

/* Ukryj divy .clear - psują układ grid */
.woocommerce-MyAccount-content .woocommerce-EditAccountForm > .clear,
.woocommerce-MyAccount-content .woocommerce-EditAccountForm > div.clear {
  display: none !important;
}

/* Pola które mają być na pełną szerokość (dwie kolumny) */
.woocommerce-MyAccount-content .woocommerce-EditAccountForm fieldset,
.woocommerce-MyAccount-content .woocommerce-EditAccountForm > p:last-of-type {
  grid-column: 1 / -1;
}

/* Imię - lewa kolumna */
.woocommerce-MyAccount-content .woocommerce-EditAccountForm > p.woocommerce-form-row--first {
  grid-column: 1 / 2;
}

/* Nazwisko - prawa kolumna */
.woocommerce-MyAccount-content .woocommerce-EditAccountForm > p.woocommerce-form-row--last {
  grid-column: 2 / 3;
}

/* Wyświetlana nazwa - lewa kolumna (trzeci paragraf z form-row-wide) */
.woocommerce-MyAccount-content .woocommerce-EditAccountForm > p.woocommerce-form-row--wide:nth-of-type(3),
.woocommerce-MyAccount-content .woocommerce-EditAccountForm > p:has(input[name="account_display_name"]) {
  grid-column: 1 / 2;
}

/* Email - prawa kolumna (czwarty paragraf z form-row-wide) */
.woocommerce-MyAccount-content .woocommerce-EditAccountForm > p.woocommerce-form-row--wide:nth-of-type(4),
.woocommerce-MyAccount-content .woocommerce-EditAccountForm > p:has(input[name="account_email"]) {
  grid-column: 2 / 3;
}

/* Przycisk Zapisz zmiany - mniejsze marginesy */
.woocommerce-MyAccount-content .woocommerce-EditAccountForm > p:last-of-type {
  margin-top: 0.5rem;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Pola formularza */
.woocommerce-MyAccount-content .form-row,
.woocommerce-MyAccount-content p.form-row,
.woocommerce-MyAccount-content .woocommerce-form-row {
  width: 100% !important;
  max-width: 100% !important;
  margin-bottom: 0 !important;
}

/* Inputy - pełna szerokość z lepszym stylem */
.woocommerce-MyAccount-content input[type="text"],
.woocommerce-MyAccount-content input[type="email"],
.woocommerce-MyAccount-content input[type="password"],
.woocommerce-MyAccount-content input[type="tel"],
.woocommerce-MyAccount-content input[type="number"],
.woocommerce-MyAccount-content select,
.woocommerce-MyAccount-content textarea,
.woocommerce-MyAccount-content .input-text {
  width: 100% !important;
  max-width: 100% !important;
  padding: 1rem 1.25rem !important;
  border: 1px solid #d1d5db !important;
  border-radius: 12px !important;
  font-size: 1rem !important;
  color: #1f2937 !important;
  background: #ffffff !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

.woocommerce-MyAccount-content input:focus,
.woocommerce-MyAccount-content select:focus,
.woocommerce-MyAccount-content textarea:focus {
  border-color: #1C5EA8 !important;
  background: #ffffff !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(32, 91, 171, 0.1) !important;
}

/* Etykiety formularza */
.woocommerce-MyAccount-content label {
  display: block !important;
  margin-bottom: 0.5rem !important;
  font-weight: 600 !important;
  color: #374151 !important;
  font-size: 0.9rem !important;
  text-align: center !important;
}

.woocommerce-MyAccount-content label .required {
  color: #dc2626 !important;
}

/* Sekcja zmiany hasła */
.woocommerce-MyAccount-content fieldset {
  border: 1px solid #e0e5eb !important;
  border-radius: 14px !important;
  padding: 1.5rem !important;
  margin: 1rem 0 0.5rem 0 !important;
  background: #f8fafc !important;
}

.woocommerce-MyAccount-content fieldset legend {
  font-weight: 700 !important;
  color: #012241 !important;
  padding: 0 0.75rem !important;
  font-size: 1.1rem !important;
}

/* Wrapper pola hasła */
.woocommerce-MyAccount-content .password-input,
.woocommerce-MyAccount-content .woocommerce-password-input {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
}

/* Ikony pokaż/ukryj hasło - widoczne bez białego tła */
.woocommerce-MyAccount-content .show-password-input,
.woocommerce-MyAccount-content .wp-hide-pw,
.woocommerce-MyAccount-content [class*="show-password"],
.woocommerce-MyAccount-content .password-input button {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  color: #1C5EA8 !important;
  font-size: 20px !important;
  width: 30px !important;
  height: 30px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: absolute !important;
  right: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 10 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Dashicons - ikony WordPress */
.woocommerce-MyAccount-content .dashicons,
.woocommerce-MyAccount-content .dashicons-visibility,
.woocommerce-MyAccount-content .dashicons-hidden {
  color: #1C5EA8 !important;
  font-size: 20px !important;
  width: 20px !important;
  height: 20px !important;
  display: inline-block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Input hasła - miejsce na ikonę */
.woocommerce-MyAccount-content .password-input input[type="password"],
.woocommerce-MyAccount-content .password-input input[type="text"],
.woocommerce-MyAccount-content .woocommerce-password-input input {
  padding-right: 45px !important;
}

/* Nagłówki w treści */
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
  color: #012241 !important;
  font-weight: 700 !important;
  margin-bottom: 1.5rem !important;
}

.woocommerce-MyAccount-content h2 {
  font-size: 1.35rem !important;
}

.woocommerce-MyAccount-content h3 {
  font-size: 1.1rem !important;
}

/* Kontener treści - flexbox do zmiany kolejności */
.woocommerce-MyAccount-content {
  display: flex !important;
  flex-direction: column !important;
}

/* Ukryj tylko pierwszy paragraf WooCommerce (z "nie jesteś") */
.woocommerce-MyAccount-content > p:first-of-type:not(.evenus-greeting) {
  display: none !important;
}

/* Wiadomość powitalna - nasz własny tekst - NA GÓRZE */
.woocommerce-MyAccount-content > p.evenus-greeting {
  display: block !important;
  order: -10 !important;
  font-size: 0.95rem !important;
  color: #374151 !important;
  line-height: 1.75 !important;
  margin-bottom: 1rem !important;
  padding: 1.25rem 1.5rem !important;
  background: linear-gradient(135deg, #f0f5fc 0%, #f8fafc 100%) !important;
  border-radius: 14px !important;
  border-left: 4px solid #1C5EA8 !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Drugi paragraf z informacjami - pod nagłówkiem */
.woocommerce-MyAccount-content > p:nth-of-type(2):not(.evenus-greeting) {
  order: -5 !important;
  font-size: 0.9rem !important;
  color: #5a6a7a !important;
  line-height: 1.8 !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 1.5rem 0 !important;
  padding: 1rem 1.5rem !important;
  background: #f8fafc !important;
  border-radius: 14px !important;
  box-sizing: border-box !important;
}

/* Drugi paragraf z informacjami - pełna szerokość */
.woocommerce-MyAccount-content > p:nth-of-type(2) {
  font-size: 0.9rem !important;
  color: #5a6a7a !important;
  line-height: 1.8 !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 1.5rem 0 !important;
  padding: 1rem 1.5rem !important;
  background: #f8fafc !important;
  border-radius: 14px !important;
  box-sizing: border-box !important;
}

/* Linki w treści */
.woocommerce-MyAccount-content a:not(.button):not(.woocommerce-button) {
  color: #1C5EA8 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}

.woocommerce-MyAccount-content a:not(.button):not(.woocommerce-button):hover {
  color: #164B87 !important;
  text-decoration: underline !important;
}

/* ===============================================
   TABELE - Zamówienia, Adresy etc.
   =============================================== */

/* Wrapper tabeli zamówień */
.woocommerce-MyAccount-content .woocommerce-orders-table,
.woocommerce-MyAccount-content .shop_table,
.woocommerce-MyAccount-content .woocommerce-table {
  width: 100% !important;
  display: table !important;
  table-layout: fixed !important;
}

.woocommerce-MyAccount-content table {
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin: 1.5rem 0 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
  border: 1px solid #e8ecf2 !important;
  text-align: left !important;
  table-layout: fixed !important;
}

.woocommerce-MyAccount-content table thead {
  background: linear-gradient(135deg, #f8fafc 0%, #f0f5fc 100%) !important;
}

.woocommerce-MyAccount-content table th {
  padding: 1rem 1.25rem !important;
  text-align: left !important;
  font-weight: 600 !important;
  color: #374151 !important;
  font-size: 0.85rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border-bottom: 2px solid #e5e7eb !important;
}

.woocommerce-MyAccount-content table td {
  padding: 1rem 1.25rem !important;
  color: #4b5563 !important;
  font-size: 0.95rem !important;
  border-bottom: 1px solid #f0f0f0 !important;
  vertical-align: middle !important;
  text-align: left !important;
}

.woocommerce-MyAccount-content table tbody tr:last-child td {
  border-bottom: none !important;
}

.woocommerce-MyAccount-content table tbody tr:hover {
  background: #fafafa !important;
}

/* Status zamówienia - badge */
.woocommerce-MyAccount-content table td .woocommerce-orders-table__cell-order-status,
.woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-status {
  display: inline-block !important;
  padding: 0.4rem 0.8rem !important;
  border-radius: 20px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  text-transform: capitalize !important;
}

/* ===============================================
   PRZYCISKI
   =============================================== */
.woocommerce-MyAccount-content .button,
.woocommerce-MyAccount-content .woocommerce-button,
.woocommerce-MyAccount-content button[type="submit"],
.woocommerce-MyAccount-content input[type="submit"] {
  background: linear-gradient(135deg, #1C5EA8 0%, #164B87 100%) !important;
  color: #fff !important;
  border: none !important;
  padding: 0.85rem 1.75rem !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
}

.woocommerce-MyAccount-content .button:hover,
.woocommerce-MyAccount-content .woocommerce-button:hover,
.woocommerce-MyAccount-content button[type="submit"]:hover,
.woocommerce-MyAccount-content input[type="submit"]:hover {
  background: linear-gradient(135deg, #164B87 0%, #153d73 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(32, 91, 171, 0.35) !important;
}

/* Przycisk view - mniejszy */
.woocommerce-MyAccount-content .woocommerce-button--view,
.woocommerce-MyAccount-content .view {
  padding: 0.5rem 1rem !important;
  font-size: 0.85rem !important;
}

/* ===============================================
   FORMULARZ EDYCJI ADRESU - Układ dwóch kolumn
   =============================================== */

/* Wrapper pól adresowych - grid dwukolumnowy */
.woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1rem 1.5rem !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* RESET - wszystkie pola mają taką samą szerokość */
.woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper > p,
.woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper > .form-row {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* UKRYJ POLE KRAJ/REGION i WOJEWÓDZTWO */
.woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper #billing_country_field,
.woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper #shipping_country_field,
.woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper #billing_state_field,
.woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper #shipping_state_field,
.woocommerce-MyAccount-content #billing_country_field,
.woocommerce-MyAccount-content #shipping_country_field,
.woocommerce-MyAccount-content #billing_state_field,
.woocommerce-MyAccount-content #shipping_state_field,
#billing_country_field,
#shipping_country_field,
#billing_state_field,
#shipping_state_field {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Wszystkie inputy - jednakowy wygląd */
.woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper input[type="text"],
.woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper input[type="email"],
.woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper input[type="tel"],
.woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper input[type="number"],
.woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper select,
.woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper .input-text {
  width: 100% !important;
  height: 50px !important;
  padding: 0 1rem !important;
  box-sizing: border-box !important;
  border: 1px solid #d1d5db !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #1f2937 !important;
  font-size: 1rem !important;
}

.woocommerce-MyAccount-content .woocommerce-address-fields input:focus,
.woocommerce-MyAccount-content .woocommerce-address-fields select:focus {
  border-color: #1C5EA8 !important;
  box-shadow: 0 0 0 3px rgba(28, 94, 168, 0.15) !important;
  outline: none !important;
}

/* Pola readonly/disabled - szare tło */
.woocommerce-MyAccount-content .woocommerce-address-fields input[readonly],
.woocommerce-MyAccount-content .woocommerce-address-fields input[disabled],
.woocommerce-MyAccount-content .woocommerce-address-fields select[readonly],
.woocommerce-MyAccount-content .woocommerce-address-fields select[disabled] {
  background: #f3f4f6 !important;
  border: 1px solid #e5e7eb !important;
  color: #6b7280 !important;
  cursor: not-allowed !important;
}

/* Etykiety w formularzu adresu - wyrównane do lewej */
.woocommerce-MyAccount-content .woocommerce-address-fields label {
  text-align: left !important;
  margin-bottom: 0.5rem !important;
}

/* Przycisk zapisz adres - wycentrowany, pełna szerokość gridu */
.woocommerce-MyAccount-content .woocommerce-address-fields > p:last-child,
.woocommerce-MyAccount-content .woocommerce-address-fields + p,
.woocommerce-MyAccount-content .woocommerce-address-fields p.form-row:last-child {
  grid-column: 1 / -1 !important;
  margin-top: 1rem !important;
  text-align: center !important;
}

/* Select2 dropdown - jednakowa wysokość */
.woocommerce-MyAccount-content .woocommerce-address-fields .select2-container {
  width: 100% !important;
}

.woocommerce-MyAccount-content .woocommerce-address-fields .select2-container .select2-selection--single {
  height: 50px !important;
  border-radius: 10px !important;
  border: 1px solid #d1d5db !important;
  background: #ffffff !important;
}

.woocommerce-MyAccount-content .woocommerce-address-fields .select2-container .select2-selection--single .select2-selection__rendered {
  line-height: 50px !important;
  padding-left: 1rem !important;
  color: #1f2937 !important;
}

.woocommerce-MyAccount-content .woocommerce-address-fields .select2-container .select2-selection--single .select2-selection__arrow {
  height: 48px !important;
  right: 10px !important;
}

/* Wrapper wewnętrzny pola - pełna szerokość */
.woocommerce-MyAccount-content .woocommerce-address-fields .woocommerce-input-wrapper {
  width: 100% !important;
  display: block !important;
}

/* ===============================================
   GLOBALNE STYLE PÓL - edytowalne vs readonly
   =============================================== */
   
/* Wszystkie inputy edytowalne - białe */
.woocommerce-MyAccount-content input[type="text"]:not([readonly]):not([disabled]),
.woocommerce-MyAccount-content input[type="email"]:not([readonly]):not([disabled]),
.woocommerce-MyAccount-content input[type="password"]:not([readonly]):not([disabled]),
.woocommerce-MyAccount-content input[type="tel"]:not([readonly]):not([disabled]),
.woocommerce-MyAccount-content input[type="number"]:not([readonly]):not([disabled]),
.woocommerce-MyAccount-content select:not([readonly]):not([disabled]),
.woocommerce-MyAccount-content textarea:not([readonly]):not([disabled]) {
  background: #ffffff !important;
}

/* ===============================================
   SEKCJA ADRESÓW - Dwa boksy obok siebie (tylko desktop)
   =============================================== */
   
/* Główny kontener adresów - WSZYSTKIE możliwe kombinacje selektorów */
/* Te style będą nadpisane przez media query na mobile */
.woocommerce-MyAccount-content .u-columns.woocommerce-Addresses.col2-set.addresses,
.woocommerce-MyAccount-content .woocommerce-Addresses.col2-set,
.woocommerce-MyAccount-content .u-columns.woocommerce-Addresses,
.woocommerce-MyAccount-content .woocommerce-Addresses,
.woocommerce-MyAccount-content .col2-set.addresses,
.woocommerce .woocommerce-MyAccount-content .u-columns,
.woocommerce .col2-set.addresses,
.woocommerce-account .woocommerce-MyAccount-content .u-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

/* Kolumny - usuń float i width 48% które psują grid */
.woocommerce-MyAccount-content .u-column1.col-1.woocommerce-Address,
.woocommerce-MyAccount-content .u-column2.col-2.woocommerce-Address,
.woocommerce-MyAccount-content .u-columns .u-column1,
.woocommerce-MyAccount-content .u-columns .u-column2,
.woocommerce-MyAccount-content .col2-set .col-1,
.woocommerce-MyAccount-content .col2-set .col-2,
.woocommerce .col2-set .col-1,
.woocommerce .col2-set .col-2,
.woocommerce-account .col2-set .col-1,
.woocommerce-account .col2-set .col-2 {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
  clear: none !important;
}

.woocommerce-MyAccount-content .woocommerce-Address {
  background: #f8fafc !important;
  padding: 1.5rem !important;
  border-radius: 14px !important;
  border: 1px solid #e0e5eb !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Ukrycie kółek/ikon przy tytułach adresów */
.woocommerce-MyAccount-content .woocommerce-Address-title h3::before,
.woocommerce-MyAccount-content .woocommerce-Address-title h3::after,
.woocommerce-MyAccount-content .woocommerce-Address h3::before,
.woocommerce-MyAccount-content .woocommerce-Address h3::after,
.woocommerce-MyAccount-content .woocommerce-column__title::before,
.woocommerce-MyAccount-content .woocommerce-column__title::after,
.woocommerce-MyAccount-content .woocommerce-Address-title::before,
.woocommerce-MyAccount-content .woocommerce-Address-title::after {
  display: none !important;
  content: none !important;
}

.woocommerce-MyAccount-content .woocommerce-Address-title,
.woocommerce-MyAccount-content .woocommerce-Address header {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  margin-bottom: 1rem !important;
  padding-bottom: 1rem !important;
  border-bottom: 1px solid #e0e5eb !important;
  text-align: center !important;
}

.woocommerce-MyAccount-content .woocommerce-Address-title h3,
.woocommerce-MyAccount-content .woocommerce-Address h3 {
  margin: 0 0 0.75rem 0 !important;
  font-size: 1.15rem !important;
  color: #012241 !important;
  font-weight: 700 !important;
}

.woocommerce-MyAccount-content .woocommerce-Address-title .edit,
.woocommerce-MyAccount-content .woocommerce-Address .edit {
  color: #1C5EA8 !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
}

.woocommerce-MyAccount-content .woocommerce-Address address {
  font-style: normal !important;
  color: #4b5563 !important;
  line-height: 1.7 !important;
  text-align: center !important;
}

/* Kolumny adresu (rozliczeniowy/wysyłka) - GŁÓWNY SELEKTOR */
.woocommerce-MyAccount-content .u-columns {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 1.5rem !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

.woocommerce-MyAccount-content .col2-set {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 1.5rem !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

.woocommerce-MyAccount-content .u-columns .u-column1,
.woocommerce-MyAccount-content .u-columns .u-column2,
.woocommerce-MyAccount-content .u-columns .woocommerce-column,
.woocommerce-MyAccount-content .col2-set .col-1,
.woocommerce-MyAccount-content .col2-set .col-2,
.woocommerce-MyAccount-content .u-columns > .woocommerce-Address {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* Kolumna woocommerce-column */
.woocommerce-MyAccount-content .woocommerce-column {
  background: #f8fafc !important;
  padding: 1.5rem !important;
  border-radius: 14px !important;
  border: 1px solid #e0e5eb !important;
}

.woocommerce-MyAccount-content .woocommerce-column__title {
  font-size: 1.15rem !important;
  color: #012241 !important;
  font-weight: 700 !important;
  margin-bottom: 1rem !important;
  padding-bottom: 0.75rem !important;
  border-bottom: 1px solid #e0e5eb !important;
  text-align: center !important;
}

/* Placeholder tekst */
.woocommerce-MyAccount-content input::placeholder {
  color: #9ca3af !important;
}

/* Opis pomocniczy w formularzach */
.woocommerce-MyAccount-content em,
.woocommerce-MyAccount-content .description {
  font-size: 0.85rem !important;
  color: #6b7280 !important;
  font-style: italic !important;
  display: block !important;
  margin-top: 0.5rem !important;
  text-align: center !important;
}

/* ===============================================
   WIADOMOŚCI - Powiadomienia
   =============================================== */
.woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-MyAccount-content .woocommerce-error {
  padding: 1rem 1.5rem !important;
  border-radius: 10px !important;
  margin-bottom: 1.5rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
}

.woocommerce-MyAccount-content .woocommerce-message {
  background: #ecfdf5 !important;
  border: 1px solid #10b981 !important;
  color: #065f46 !important;
}

.woocommerce-MyAccount-content .woocommerce-info {
  background: #eff6ff !important;
  border: 1px solid #3b82f6 !important;
  color: #1e40af !important;
}

.woocommerce-MyAccount-content .woocommerce-error {
  background: #fef2f2 !important;
  border: 1px solid #ef4444 !important;
  color: #991b1b !important;
}

/* ===============================================
   RESPONSIVE - TABLET (poniżej 1024px)
   =============================================== */
@media screen and (max-width: 1024px) {
  .woocommerce-account.logged-in .woocommerce {
    margin: 1rem !important;
    max-width: calc(100% - 2rem) !important;
  }
  
  .woocommerce-MyAccount-navigation ul {
    gap: 0.5rem !important;
    padding: 0 1rem 1.25rem !important;
  }
  
  .woocommerce-MyAccount-navigation ul li a {
    padding: 0.85rem 1.25rem !important;
    font-size: 0.82rem !important;
    min-width: 95px !important;
  }
  
  .woocommerce-MyAccount-navigation ul li a::before {
    width: 22px;
    height: 22px;
  }
  
  .woocommerce-MyAccount-content {
    padding: 1.5rem 1rem !important;
  }
  
  .woocommerce-MyAccount-content label {
    text-align: left !important;
  }
}

/* ===============================================
   RESPONSIVE - TABLET MAŁE I WIĘKSZE TELEFONY (poniżej 900px)
   =============================================== */
@media screen and (max-width: 900px) {
  /* Adresy - jedna kolumna od 900px */
  .woocommerce-MyAccount-content .woocommerce-Addresses,
  .woocommerce-MyAccount-content .u-columns,
  .woocommerce-MyAccount-content .col2-set,
  .woocommerce-MyAccount-content .u-columns.woocommerce-Addresses.col2-set.addresses {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 1rem !important;
  }
  
  .woocommerce-MyAccount-content .woocommerce-Address,
  .woocommerce-MyAccount-content .u-column1,
  .woocommerce-MyAccount-content .u-column2,
  .woocommerce-MyAccount-content .col-1,
  .woocommerce-MyAccount-content .col-2 {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 1rem !important;
  }
}

/* ===============================================
   RESPONSIVE - MOBILE (poniżej 768px)
   =============================================== */
@media screen and (max-width: 768px) {
  .woocommerce-account.logged-in .woocommerce {
    margin: 0.75rem !important;
    padding: 1.5rem 1rem !important;
    border-radius: 16px !important;
    max-width: calc(100% - 1.5rem) !important;
  }
  
  /* Nawigacja - pionowa lista na mobile */
  .woocommerce-MyAccount-navigation {
    border: none !important;
  }
  
  .woocommerce-MyAccount-navigation::before {
    font-size: 1.25rem;
    padding: 0.5rem 1rem 1rem;
  }
  
  .woocommerce-MyAccount-navigation ul {
    flex-direction: column !important;
    gap: 0.5rem !important;
    padding: 0 0 1.5rem !important;
    align-items: stretch !important;
  }
  
  .woocommerce-MyAccount-navigation ul li {
    width: 100% !important;
  }
  
  .woocommerce-MyAccount-navigation ul li a {
    flex-direction: row !important;
    justify-content: flex-start !important;
    padding: 0.9rem 1.25rem !important;
    font-size: 0.9rem !important;
    min-width: auto !important;
    width: 100% !important;
    border-radius: 12px !important;
    background: #f5f7fa !important;
    gap: 0.75rem !important;
    border: 1px solid #e5e7eb !important;
  }
  
  .woocommerce-MyAccount-navigation ul li a::before {
    width: 20px !important;
    height: 20px !important;
  }
  
  .woocommerce-MyAccount-navigation ul li.is-active a {
    background: linear-gradient(135deg, #1C5EA8 0%, #164B87 100%) !important;
    box-shadow: 0 3px 10px rgba(32, 91, 171, 0.3) !important;
    border-color: transparent !important;
  }
  
  /* Treść */
  .woocommerce-MyAccount-content {
    padding: 1.5rem 0.5rem !important;
    min-height: auto !important;
  }
  
  .woocommerce-MyAccount-content h2 {
    font-size: 1.15rem !important;
  }
  
  /* Powitanie */
  .woocommerce-MyAccount-content > p.evenus-greeting {
    padding: 1rem !important;
    font-size: 0.88rem !important;
    text-align: center !important;
  }
  
  .woocommerce-MyAccount-content > p:nth-of-type(2):not(.evenus-greeting) {
    text-align: center !important;
    padding: 0.85rem !important;
    font-size: 0.85rem !important;
  }
  
  .woocommerce-MyAccount-content label {
    text-align: left !important;
  }
  
  /* ===============================================
     TABELA ZAMÓWIEŃ - KAFELKI NA MOBILE
     =============================================== */
  .woocommerce-MyAccount-content table.woocommerce-orders-table,
  .woocommerce-MyAccount-content .woocommerce-orders-table {
    display: block !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }
  
  .woocommerce-MyAccount-content table.woocommerce-orders-table thead,
  .woocommerce-MyAccount-content .woocommerce-orders-table thead {
    display: none !important;
  }
  
  .woocommerce-MyAccount-content table.woocommerce-orders-table tbody,
  .woocommerce-MyAccount-content .woocommerce-orders-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
  }
  
  .woocommerce-MyAccount-content table.woocommerce-orders-table tr,
  .woocommerce-MyAccount-content .woocommerce-orders-table tr,
  .woocommerce-MyAccount-content .woocommerce-orders-table__row {
    display: block !important;
    background: #f8fafc !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 1rem !important;
    margin-bottom: 0 !important;
  }
  
  .woocommerce-MyAccount-content table.woocommerce-orders-table td,
  .woocommerce-MyAccount-content .woocommerce-orders-table td,
  .woocommerce-MyAccount-content .woocommerce-orders-table__cell {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.5rem 0 !important;
    border-bottom: 1px solid #e5e7eb !important;
    white-space: normal !important;
    text-align: left !important;
  }
  
  .woocommerce-MyAccount-content table.woocommerce-orders-table td:last-child,
  .woocommerce-MyAccount-content .woocommerce-orders-table td:last-child,
  .woocommerce-MyAccount-content .woocommerce-orders-table__cell:last-child {
    border-bottom: none !important;
    padding-top: 0.75rem !important;
  }
  
  /* Etykiety przed wartościami */
  .woocommerce-MyAccount-content table.woocommerce-orders-table td::before,
  .woocommerce-MyAccount-content .woocommerce-orders-table td::before {
    content: attr(data-title) !important;
    font-weight: 600 !important;
    color: #374151 !important;
    font-size: 0.85rem !important;
    margin-right: 0.5rem !important;
  }
  
  /* Przycisk Zobacz - pełna szerokość */
  .woocommerce-MyAccount-content .woocommerce-orders-table .woocommerce-button,
  .woocommerce-MyAccount-content .woocommerce-orders-table .button,
  .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button {
    width: 100% !important;
    text-align: center !important;
    margin-top: 0.5rem !important;
  }
  
  /* Komórka akcji - na pełną szerokość */
  .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions {
    flex-direction: column !important;
  }

  /* Tabele responsywne - inne */
  .woocommerce-MyAccount-content table:not(.woocommerce-orders-table) {
    display: block !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
  }
  
  .woocommerce-MyAccount-content table:not(.woocommerce-orders-table) thead {
    display: none !important;
  }
  
  .woocommerce-MyAccount-content table:not(.woocommerce-orders-table) tbody {
    display: block !important;
    width: 100% !important;
  }
  
  .woocommerce-MyAccount-content table:not(.woocommerce-orders-table) tr {
    display: block !important;
    padding: 0.5rem 0 !important;
    border-bottom: 1px solid #e5e7eb !important;
  }
  
  .woocommerce-MyAccount-content table:not(.woocommerce-orders-table) th,
  .woocommerce-MyAccount-content table:not(.woocommerce-orders-table) td {
    display: block !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.85rem !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    text-align: left !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Tabela szczegółów zamówienia - kafelkowy układ */
  .woocommerce-MyAccount-content .woocommerce-table--order-details,
  .woocommerce-MyAccount-content .order_details {
    display: block !important;
    overflow: hidden !important;
  }
  
  .woocommerce-MyAccount-content .woocommerce-table--order-details thead,
  .woocommerce-MyAccount-content .order_details thead {
    display: none !important;
  }
  
  .woocommerce-MyAccount-content .woocommerce-table--order-details tbody,
  .woocommerce-MyAccount-content .order_details tbody,
  .woocommerce-MyAccount-content .woocommerce-table--order-details tfoot,
  .woocommerce-MyAccount-content .order_details tfoot {
    display: block !important;
    width: 100% !important;
  }
  
  .woocommerce-MyAccount-content .woocommerce-table--order-details tr,
  .woocommerce-MyAccount-content .order_details tr {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    padding: 0.75rem 0 !important;
    border-bottom: 1px solid #e5e7eb !important;
  }
  
  .woocommerce-MyAccount-content .woocommerce-table--order-details td,
  .woocommerce-MyAccount-content .woocommerce-table--order-details th,
  .woocommerce-MyAccount-content .order_details td,
  .woocommerce-MyAccount-content .order_details th {
    display: block !important;
    padding: 0.25rem 0 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    text-align: left !important;
    border: none !important;
  }
  
  .woocommerce-MyAccount-content .woocommerce-table--order-details td.product-name,
  .woocommerce-MyAccount-content .order_details td.product-name {
    width: 100% !important;
    font-weight: 600 !important;
    color: #1C5EA8 !important;
  }
  
  .woocommerce-MyAccount-content .woocommerce-table--order-details td.product-total,
  .woocommerce-MyAccount-content .order_details td.product-total {
    width: 100% !important;
    text-align: right !important;
    font-weight: 600 !important;
  }
  
  /* Formularze - jedna kolumna na mobile */
  .woocommerce-MyAccount-content .woocommerce-EditAccountForm,
  .woocommerce-MyAccount-content .woocommerce-address-fields {
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
  }
  
  /* Szczegóły konta - WSZYSTKIE pola jedna kolumna, pełna szerokość */
  .woocommerce-MyAccount-content .woocommerce-EditAccountForm > p,
  .woocommerce-MyAccount-content .woocommerce-EditAccountForm > p.woocommerce-form-row,
  .woocommerce-MyAccount-content .woocommerce-EditAccountForm > p.woocommerce-form-row--first,
  .woocommerce-MyAccount-content .woocommerce-EditAccountForm > p.woocommerce-form-row--last,
  .woocommerce-MyAccount-content .woocommerce-EditAccountForm > p.woocommerce-form-row--wide,
  .woocommerce-MyAccount-content .woocommerce-EditAccountForm > p:has(input[name="account_display_name"]),
  .woocommerce-MyAccount-content .woocommerce-EditAccountForm > p:has(input[name="account_email"]),
  .woocommerce-MyAccount-content .woocommerce-EditAccountForm > fieldset {
    width: 100% !important;
    max-width: 100% !important;
    grid-column: 1 / -1 !important;
    flex: none !important;
  }
  
  /* Edycja adresu - jedna kolumna */
  .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
  }
  
  .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper > p,
  .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper > .form-row {
    width: 100% !important;
    max-width: 100% !important;
    grid-column: 1 / -1 !important;
  }
  
  .woocommerce-MyAccount-content input[type="text"],
  .woocommerce-MyAccount-content input[type="email"],
  .woocommerce-MyAccount-content input[type="password"],
  .woocommerce-MyAccount-content input[type="tel"],
  .woocommerce-MyAccount-content select {
    padding: 0.8rem 1rem !important;
    font-size: 16px !important; /* Zapobiega zoomowi na iOS */
  }
  
  /* Przyciski */
  .woocommerce-MyAccount-content .button,
  .woocommerce-MyAccount-content button[type="submit"] {
    width: 100% !important;
    padding: 0.9rem !important;
  }
  
  /* Adresy w kolumnie - FORCE */
  .woocommerce-MyAccount-content .woocommerce-Addresses,
  .woocommerce-MyAccount-content .u-columns,
  .woocommerce-MyAccount-content .col2-set,
  .woocommerce-MyAccount-content .u-columns.woocommerce-Addresses.col2-set.addresses,
  .woocommerce .woocommerce-MyAccount-content .u-columns,
  .woocommerce .col2-set.addresses {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  .woocommerce-MyAccount-content .u-column1.col-1.woocommerce-Address,
  .woocommerce-MyAccount-content .u-column2.col-2.woocommerce-Address,
  .woocommerce-MyAccount-content .woocommerce-Address {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Szczegóły zamówienia - adresy w kolumnie */
  .woocommerce-MyAccount-content .woocommerce-customer-details .col2-set,
  .woocommerce-MyAccount-content .woocommerce-customer-details .woocommerce-columns {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
  }
  
  /* Kafelki zamówień - kompaktowe */
  .woocommerce-MyAccount-content .woocommerce-orders-table__row {
    margin-bottom: 1rem !important;
  }
}

/* ===============================================
   RESPONSIVE - MAŁE TELEFONY (poniżej 480px)
   =============================================== */
@media screen and (max-width: 480px) {
  .woocommerce-account.logged-in .woocommerce {
    margin: 0.5rem !important;
    padding: 1rem 0.75rem !important;
    border-radius: 12px !important;
  }
  
  .woocommerce-MyAccount-navigation::before {
    font-size: 1.1rem;
    padding: 0.25rem 0.5rem 0.75rem;
  }
  
  .woocommerce-MyAccount-navigation ul {
    padding: 0 0 1rem !important;
    gap: 0.4rem !important;
  }
  
  .woocommerce-MyAccount-navigation ul li a {
    padding: 0.75rem 1rem !important;
    font-size: 0.85rem !important;
    border-radius: 10px !important;
  }
  
  .woocommerce-MyAccount-navigation ul li a::before {
    width: 18px !important;
    height: 18px !important;
  }
  
  .woocommerce-MyAccount-content {
    padding: 1rem 0.25rem !important;
  }
  
  .woocommerce-MyAccount-content > p.evenus-greeting {
    font-size: 0.85rem !important;
    padding: 0.85rem !important;
  }
  
  /* Szczegóły konta - wszystkie pola jedna kolumna */
  .woocommerce-MyAccount-content .woocommerce-EditAccountForm {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
  
  .woocommerce-MyAccount-content .woocommerce-EditAccountForm > p {
    grid-column: 1 / -1 !important;
  }
  
  /* Edycja adresu - jedna kolumna */
  .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
  
  /* Kafelki adresów - jedna kolumna FORCE */
  .woocommerce-MyAccount-content .woocommerce-Addresses,
  .woocommerce-MyAccount-content .u-columns,
  .woocommerce-MyAccount-content .col2-set,
  .woocommerce-MyAccount-content .woocommerce-customer-details .col2-set,
  .woocommerce-MyAccount-content .u-columns.woocommerce-Addresses.col2-set.addresses {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  .woocommerce-MyAccount-content .woocommerce-Address,
  .woocommerce-MyAccount-content .u-column1,
  .woocommerce-MyAccount-content .u-column2,
  .woocommerce-MyAccount-content .col-1,
  .woocommerce-MyAccount-content .col-2 {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Mniejsze pady w kafelkach adresów */
  .woocommerce-MyAccount-content .woocommerce-Address,
  .woocommerce-MyAccount-content .woocommerce-customer-details .col2-set .col-1,
  .woocommerce-MyAccount-content .woocommerce-customer-details .col2-set .col-2 {
    border-radius: 10px !important;
  }
  
  .woocommerce-MyAccount-content .woocommerce-customer-details address {
    padding: 1rem !important;
  }
  
  /* Nagłówki adresów - mniejszy padding */
  .woocommerce-MyAccount-content .woocommerce-customer-details .woocommerce-column__title,
  .woocommerce-MyAccount-content .woocommerce-customer-details .col2-set .col-1 h2,
  .woocommerce-MyAccount-content .woocommerce-customer-details .col2-set .col-2 h2,
  .woocommerce-MyAccount-content .woocommerce-customer-details .col2-set .col-1 h3,
  .woocommerce-MyAccount-content .woocommerce-customer-details .col2-set .col-2 h3 {
    padding: 0.75rem 1rem !important;
    font-size: 0.9rem !important;
  }
  
  /* Kafelki zamówień - kompaktowe */
  .woocommerce-MyAccount-content .woocommerce-orders-table__row {
    padding: 1rem !important;
  }
}

/* ===============================================
   UKRYCIE NIEPOTRZEBNYCH ELEMENTÓW
   =============================================== */
.woocommerce-account.logged-in .entry-header h1.entry-title,
.woocommerce-account.logged-in .page-title,
.woocommerce-account.logged-in .entry-title {
  display: none !important;
}

/* ===============================================
   KOKPIT (DASHBOARD) - WYŚRODKOWANIE
   =============================================== */
.woocommerce-account.logged-in .woocommerce-MyAccount-content {
  text-align: center !important;
}

/* Elementy kokpitu - wyśrodkowanie zawartości */
.woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-MyAccount-content .woocommerce-error {
  text-align: center !important;
  max-width: 700px !important;
  margin: 0 auto 1.5rem !important;
}

/* Dashboard - linki i treść */
.woocommerce-MyAccount-content > p,
.woocommerce-MyAccount-content > div:not(.woocommerce-Addresses):not(.u-columns):not(.col2-set) {
  text-align: center !important;
  max-width: 800px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Dashboard - kafelki/grid elementów */
.woocommerce-MyAccount-content .dashboard-section,
.woocommerce-MyAccount-content .account-dashboard,
.woocommerce-MyAccount-content .woocommerce-customer-details {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 1.5rem !important;
  width: 100% !important;
}

/* Dashboard - poszczególne boksy/karty */
.woocommerce-MyAccount-content .dashboard-item,
.woocommerce-MyAccount-content .account-box {
  flex: 0 1 300px !important;
  background: #f8fafc !important;
  padding: 1.5rem !important;
  border-radius: 14px !important;
  border: 1px solid #e0e5eb !important;
  text-align: center !important;
}

/* Tabele - wyśrodkowanie */
.woocommerce-MyAccount-content .woocommerce-orders-table {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

/* Paragraf z informacjami o ostatnich zamówieniach itp. */
.woocommerce-MyAccount-content p strong a {
  display: inline-block !important;
}

/* Zamówienia - lista */
.woocommerce-MyAccount-content .woocommerce-orders {
  width: 100% !important;
  text-align: center !important;
}

/* Formularz - wyśrodkowanie przycisków */
.woocommerce-MyAccount-content form .form-row {
  text-align: center !important;
}

/* Wyśrodkowanie inputów w formularzu */
.woocommerce-MyAccount-content form .form-row input,
.woocommerce-MyAccount-content form .form-row select {
  margin: 0 auto !important;
}

/* Przyciski formularza - wyśrodkowanie */
.woocommerce-MyAccount-content form .form-row.form-row-wide {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

/* Nagłówki sekcji - wyśrodkowanie */
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
  text-align: center !important;
  width: 100% !important;
}

/* ===============================================
   DOSTOSOWANIE STOPKI
   =============================================== */
.woocommerce-account.logged-in footer#colophon {
  margin-top: 0 !important;
}

/* ===============================================
   WYSZUKIWARKA DGWT - POPRAWKI DLA ZALOGOWANEGO
   Te same poprawki co dla wersji wylogowanej
   =============================================== */

/* RESET PADDINGU DLA ELEMENTOW WYSZUKIWARKI DGWT */
.woocommerce-account.logged-in .dgwt-wcas-search-wrapp,
.woocommerce-account.logged-in .dgwt-wcas-search-wrapp.woocommerce,
.woocommerce-account.logged-in [class*="dgwt-wcas"].woocommerce {
  padding: 0 !important;
  padding-top: 0 !important;
  min-height: auto !important;
  display: block !important;
  align-items: initial !important;
  max-width: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
}

/* ===============================================
   WYSZUKIWARKA DGWT - STYLE DLA STRONY MOJE-KONTO
   Kontener sugestii jest bezpośrednim dzieckiem body
   =============================================== */

/* Główny kontener sugestii - zaokrąglone rogi jak na innych stronach */
body.woocommerce-account .dgwt-wcas-suggestions-wrapp,
body.woocommerce-account.logged-in .dgwt-wcas-suggestions-wrapp,
body.woocommerce-account > .dgwt-wcas-suggestions-wrapp,
body.woocommerce-account.logged-in > .dgwt-wcas-suggestions-wrapp {
  background: #ffffff !important;
  border-radius: 24px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
  border: none !important;
  overflow: hidden !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Style dla pojedynczych sugestii */
body.woocommerce-account .dgwt-wcas-suggestion,
body.woocommerce-account.logged-in .dgwt-wcas-suggestion {
  padding: 15px 24px !important;
  border-bottom: 1px solid #f0f0f0 !important;
  transition: background 0.2s ease !important;
  background: #ffffff !important;
}

body.woocommerce-account .dgwt-wcas-suggestion:last-child,
body.woocommerce-account.logged-in .dgwt-wcas-suggestion:last-child {
  border-bottom: none !important;
}

body.woocommerce-account .dgwt-wcas-suggestion:hover,
body.woocommerce-account .dgwt-wcas-suggestion-selected,
body.woocommerce-account.logged-in .dgwt-wcas-suggestion:hover,
body.woocommerce-account.logged-in .dgwt-wcas-suggestion-selected {
  background: #f5f8fc !important;
}

/* Nagłówki sekcji w sugestiach (KATEGORIE, PRODUKTY) */
body.woocommerce-account .dgwt-wcas-st-headline,
body.woocommerce-account.logged-in .dgwt-wcas-st-headline {
  background: #f8f9fa !important;
  color: #666 !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 10px 24px !important;
}

/* Tytuł produktu */
body.woocommerce-account .dgwt-wcas-st-title,
body.woocommerce-account.logged-in .dgwt-wcas-st-title {
  font-weight: 500 !important;
  color: #222 !important;
  font-size: 15px !important;
}

/* Cena produktu */
body.woocommerce-account .dgwt-wcas-sp,
body.woocommerce-account.logged-in .dgwt-wcas-sp {
  color: #1C5EA8 !important;
  font-weight: 700 !important;
  font-size: 15px !important;
}

/* Obrazek produktu */
body.woocommerce-account .dgwt-wcas-si,
body.woocommerce-account.logged-in .dgwt-wcas-si {
  border-radius: 12px !important;
  overflow: hidden !important;
}

/* Wyszukiwarka w panelu - standardowe style */
body.woocommerce-account.logged-in .search-panel .dgwt-wcas-search-wrapp,
.woocommerce-account.logged-in nav .search-panel .dgwt-wcas-search-wrapp,
.woocommerce-account.logged-in #site-navigation .search-panel .dgwt-wcas-search-wrapp {
  width: 90% !important;
  max-width: 650px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

body.woocommerce-account.logged-in .search-panel .dgwt-wcas-sf-wrapp,
.woocommerce-account.logged-in .search-panel .dgwt-wcas-sf-wrapp {
  padding: 0 !important;
  margin: 0 !important;
}

/* Ukryj sieroce kontenery sugestii TYLKO gdy są nieaktywne */
body.woocommerce-account.logged-in > .dgwt-wcas-suggestions-wrapp[style*="display: none"],
body.woocommerce-account.logged-in > .dgwt-wcas-suggestions-wrapp[style*="display:none"] {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: fixed !important;
  left: -99999px !important;
}

/* Upewnij się że AKTYWNE sugestie są widoczne */
body.woocommerce-account.logged-in > .dgwt-wcas-suggestions-wrapp[style*="display: block"],
body.woocommerce-account.logged-in > .dgwt-wcas-suggestions-wrapp[style*="display:block"],
body.woocommerce-account.logged-in > .dgwt-wcas-suggestions-wrapp.dgwt-wcas-open {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  position: absolute !important;
  left: auto !important;
  background: #ffffff !important;
  border-radius: 24px !important;
}

/* ===============================================
   GLOBALNE NADPISANIE STYLI DGWT DLA STRONY MOJE-KONTO
   Używamy najbardziej specyficznych selektorów
   =============================================== */

/* Kontener sugestii - MUSI mieć zaokrąglone rogi */
html body.woocommerce-account .dgwt-wcas-suggestions-wrapp.dgwt-wcas-has-img.dgwt-wcas-has-headings,
html body.woocommerce-account .dgwt-wcas-suggestions-wrapp.dgwt-wcas-has-img,
html body.woocommerce-account .dgwt-wcas-suggestions-wrapp.dgwt-wcas-has-headings,
html body.woocommerce-account .dgwt-wcas-suggestions-wrapp,
html body.woocommerce-account .dgwt-wcas-suggestions-wrapp.woocommerce,
html body.woocommerce-account div.dgwt-wcas-suggestions-wrapp {
  border-radius: 24px !important;
  -webkit-border-radius: 24px !important;
  -moz-border-radius: 24px !important;
  background: #ffffff !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25) !important;
  border: none !important;
  overflow: hidden !important;
}

/* Pierwszy i ostatni element - zaokrąglone rogi */
html body.woocommerce-account .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion:first-child,
html body.woocommerce-account .dgwt-wcas-suggestions-wrapp > .dgwt-wcas-suggestion:first-of-type {
  border-top-left-radius: 24px !important;
  border-top-right-radius: 24px !important;
}

html body.woocommerce-account .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion:last-child,
html body.woocommerce-account .dgwt-wcas-suggestions-wrapp > .dgwt-wcas-suggestion:last-of-type {
  border-bottom-left-radius: 24px !important;
  border-bottom-right-radius: 24px !important;
}

/* Wszystkie sugestie - białe tło */
html body.woocommerce-account .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion {
  background: #ffffff !important;
  padding: 12px 20px !important;
  border-bottom: 1px solid #f0f0f0 !important;
}

html body.woocommerce-account .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion:last-child {
  border-bottom: none !important;
}

/* Hover/selected state */
html body.woocommerce-account .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion:hover,
html body.woocommerce-account .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-selected {
  background: #f5f8fc !important;
}

/* Nagłówki kategorii */
html body.woocommerce-account .dgwt-wcas-suggestions-wrapp .dgwt-wcas-st-headline {
  background: #f8f9fa !important;
  color: #555 !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 8px 20px !important;
  font-weight: 600 !important;
}

/* ===============================================
   ADRESY - FORCE GRID LAYOUT (najwyższa specyficzność)
   =============================================== */
html body.woocommerce-account.logged-in .woocommerce .woocommerce-MyAccount-content .u-columns.woocommerce-Addresses.col2-set.addresses,
html body.woocommerce-account .woocommerce .woocommerce-MyAccount-content .u-columns.woocommerce-Addresses.col2-set.addresses,
html body .woocommerce .woocommerce-MyAccount-content .u-columns.woocommerce-Addresses,
html body .woocommerce .col2-set.addresses {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1.5rem !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* UKRYJ ::before i ::after które psują grid */
html body .woocommerce .u-columns.woocommerce-Addresses.col2-set.addresses::before,
html body .woocommerce .u-columns.woocommerce-Addresses.col2-set.addresses::after,
html body .woocommerce .woocommerce-MyAccount-content .u-columns::before,
html body .woocommerce .woocommerce-MyAccount-content .u-columns::after,
html body .woocommerce .col2-set.addresses::before,
html body .woocommerce .col2-set.addresses::after,
.woocommerce-MyAccount-content .u-columns.woocommerce-Addresses::before,
.woocommerce-MyAccount-content .u-columns.woocommerce-Addresses::after,
.woocommerce-MyAccount-content .col2-set::before,
.woocommerce-MyAccount-content .col2-set::after {
  display: none !important;
  content: none !important;
}

/* Ukryj dziwne kółka/ikony przy linkach Edytuj */
.woocommerce-MyAccount-content .woocommerce-Address .edit::before,
.woocommerce-MyAccount-content .woocommerce-Address .edit::after,
.woocommerce-MyAccount-content .woocommerce-Address-title .edit::before,
.woocommerce-MyAccount-content .woocommerce-Address-title .edit::after,
.woocommerce-MyAccount-content a.edit::before,
.woocommerce-MyAccount-content a.edit::after,
.woocommerce-Address .edit svg,
.woocommerce-Address .edit img,
.woocommerce-Address .edit i,
.woocommerce-Address-title .edit svg,
.woocommerce-Address-title .edit img,
.woocommerce-Address-title .edit i {
  display: none !important;
  content: none !important;
  visibility: hidden !important;
}

html body.woocommerce-account .woocommerce .woocommerce-MyAccount-content .u-column1.col-1.woocommerce-Address,
html body.woocommerce-account .woocommerce .woocommerce-MyAccount-content .u-column2.col-2.woocommerce-Address,
html body .woocommerce .col2-set .col-1,
html body .woocommerce .col2-set .col-2,
html body .woocommerce .u-columns .u-column1,
html body .woocommerce .u-columns .u-column2 {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ===============================================
   FORMULARZ EDYCJI ADRESU - FORCE STYLES (najwyższa specyficzność)
   =============================================== */

/* UKRYJ POLA KRAJ I WOJEWÓDZTWO - GLOBALNE */
html body #billing_country_field,
html body #shipping_country_field,
html body #billing_state_field,
html body #shipping_state_field,
html body .woocommerce #billing_country_field,
html body .woocommerce #shipping_country_field,
html body .woocommerce #billing_state_field,
html body .woocommerce #shipping_state_field {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* WSZYSTKIE POLA FORMULARZA - JEDNAKOWA SZEROKOŚĆ */
html body .woocommerce-address-fields__field-wrapper {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1rem 1.5rem !important;
}

html body .woocommerce-address-fields__field-wrapper > p,
html body .woocommerce-address-fields__field-wrapper > .form-row {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  box-sizing: border-box !important;
}

/* WSZYSTKIE INPUTY - JEDNAKOWY WYGLĄD */
html body .woocommerce-address-fields__field-wrapper input,
html body .woocommerce-address-fields__field-wrapper select {
  width: 100% !important;
  height: 50px !important;
  padding: 0 1rem !important;
  border: 1px solid #d1d5db !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-sizing: border-box !important;
}

/* EMAIL OBOK TELEFONU - FORCE RESET */
html body .woocommerce-address-fields__field-wrapper #billing_email_field,
html body .woocommerce-address-fields__field-wrapper #shipping_email_field,
html body .woocommerce-address-fields__field-wrapper #billing_email_field.form-row-wide,
html body .woocommerce-address-fields__field-wrapper #shipping_email_field.form-row-wide,
html body #billing_email_field,
html body #shipping_email_field {
  grid-column: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: none !important;
  box-sizing: border-box !important;
}

html body .woocommerce-address-fields__field-wrapper #billing_email_field input,
html body .woocommerce-address-fields__field-wrapper #shipping_email_field input,
html body .woocommerce-address-fields__field-wrapper input[type="email"],
html body #billing_email_field input,
html body #shipping_email_field input {
  width: 100% !important;
  height: 50px !important;
  padding: 0 1rem !important;
  margin: 0 !important;
  border: 1px solid #d1d5db !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-sizing: border-box !important;
  font-size: 1rem !important;
  color: #1f2937 !important;
}

/* WRAPPER WEWNĘTRZNY - PEŁNA SZEROKOŚĆ */
html body .woocommerce-address-fields .woocommerce-input-wrapper {
  width: 100% !important;
  display: block !important;
}

/* ===============================================
   SZCZEGÓŁY ZAMÓWIENIA (view-order) - KAFELKI ADRESÓW
   =============================================== */

/* Reset woocommerce-customer-details - NIE grid, usuwamy flexbox */
.woocommerce-MyAccount-content .woocommerce-customer-details {
  display: block !important;
  flex-wrap: initial !important;
  justify-content: initial !important;
  margin-top: 2rem !important;
}

/* Kontener adresów col2-set wewnątrz customer-details */
.woocommerce-MyAccount-content .woocommerce-customer-details .col2-set,
.woocommerce-MyAccount-content .woocommerce-customer-details .woocommerce-columns {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 1.5rem !important;
  margin-bottom: 1rem !important;
}

/* Kolumny wewnątrz col2-set - kafelki adresów */
.woocommerce-MyAccount-content .woocommerce-customer-details .col2-set .col-1,
.woocommerce-MyAccount-content .woocommerce-customer-details .col2-set .col-2,
.woocommerce-MyAccount-content .woocommerce-customer-details .woocommerce-column {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #f8fafc !important;
  border-radius: 14px !important;
  border: 1px solid #e0e5eb !important;
  overflow: hidden !important;
}

/* Usuń podwójne obramowania z elementów wewnętrznych */
.woocommerce-MyAccount-content .woocommerce-customer-details .col2-set .col-1 *,
.woocommerce-MyAccount-content .woocommerce-customer-details .col2-set .col-2 * {
  border: none !important;
}

/* Przywróć border-bottom tylko dla nagłówka jeśli potrzebny */
.woocommerce-MyAccount-content .woocommerce-customer-details .col2-set .col-1 h2,
.woocommerce-MyAccount-content .woocommerce-customer-details .col2-set .col-1 h3,
.woocommerce-MyAccount-content .woocommerce-customer-details .col2-set .col-2 h2,
.woocommerce-MyAccount-content .woocommerce-customer-details .col2-set .col-2 h3,
.woocommerce-MyAccount-content .woocommerce-customer-details .woocommerce-column__title {
  border: none !important;
}

/* Tytuł adresu (Adres rozliczeniowy, Adres do wysyłki) */
.woocommerce-MyAccount-content .woocommerce-customer-details .woocommerce-column__title,
.woocommerce-MyAccount-content .woocommerce-customer-details .col2-set .col-1 h2,
.woocommerce-MyAccount-content .woocommerce-customer-details .col2-set .col-2 h2,
.woocommerce-MyAccount-content .woocommerce-customer-details .col2-set .col-1 h3,
.woocommerce-MyAccount-content .woocommerce-customer-details .col2-set .col-2 h3 {
  font-size: 1rem !important;
  font-weight: 600 !important;
  margin: 0 !important;
  padding: 1rem 1.5rem !important;
  background: var(--primary-color, #1C5EA8) !important;
  color: #fff !important;
  text-align: center !important;
  border-radius: 0 !important;
}

/* Adres tekst - kontener */
.woocommerce-MyAccount-content .woocommerce-customer-details .col2-set .col-1 address,
.woocommerce-MyAccount-content .woocommerce-customer-details .col2-set .col-2 address,
.woocommerce-MyAccount-content .woocommerce-customer-details address {
  font-style: normal !important;
  color: #4b5563 !important;
  line-height: 1.8 !important;
  padding: 1.5rem !important;
  margin: 0 !important;
}

/* Linki (telefon, email) w adresie */
.woocommerce-MyAccount-content .woocommerce-customer-details address a {
  color: var(--primary-color, #1C5EA8) !important;
  text-decoration: none !important;
}

.woocommerce-MyAccount-content .woocommerce-customer-details address a:hover {
  text-decoration: underline !important;
}

/* Ikony obok telefonu/email */
.woocommerce-MyAccount-content .woocommerce-customer-details address p {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  margin: 0.5rem 0 !important;
}

/* RWD dla adresów w szczegółach zamówienia */
@media (max-width: 768px) {
  .woocommerce-MyAccount-content .woocommerce-customer-details .col2-set,
  .woocommerce-MyAccount-content .woocommerce-customer-details .woocommerce-columns {
    grid-template-columns: 1fr !important;
  }
}

/* ===============================================
   FORCE MOBILE - ADRESY JEDNA KOLUMNA (max specificity)
   =============================================== */
@media screen and (max-width: 768px) {
  /* GŁÓWNY KONTENER ADRESÓW - FORCE COLUMN */
  html body.woocommerce-account.logged-in .woocommerce .woocommerce-MyAccount-content .u-columns.woocommerce-Addresses.col2-set.addresses,
  html body.woocommerce-account .woocommerce .woocommerce-MyAccount-content .u-columns.woocommerce-Addresses.col2-set.addresses,
  html body .woocommerce .woocommerce-MyAccount-content .u-columns.woocommerce-Addresses.col2-set.addresses,
  html body .woocommerce .woocommerce-MyAccount-content .woocommerce-Addresses,
  html body .woocommerce .woocommerce-MyAccount-content .u-columns,
  html body .woocommerce .woocommerce-MyAccount-content .col2-set,
  html body .woocommerce .col2-set.addresses,
  html body.woocommerce-account .woocommerce .woocommerce-MyAccount-content .u-columns,
  html body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses,
  .woocommerce-MyAccount-content .u-columns.woocommerce-Addresses.col2-set.addresses,
  .woocommerce-MyAccount-content .woocommerce-Addresses.col2-set,
  .woocommerce-MyAccount-content .u-columns.woocommerce-Addresses,
  .woocommerce-MyAccount-content .woocommerce-Addresses,
  .woocommerce-MyAccount-content .col2-set.addresses,
  .woocommerce-MyAccount-content .col2-set,
  .woocommerce-MyAccount-content .u-columns,
  div.u-columns.woocommerce-Addresses.col2-set.addresses {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 1rem !important;
  }
  
  /* KOLUMNY ADRESÓW - PEŁNA SZEROKOŚĆ */
  html body.woocommerce-account.logged-in .woocommerce .woocommerce-MyAccount-content .u-column1.col-1.woocommerce-Address,
  html body.woocommerce-account.logged-in .woocommerce .woocommerce-MyAccount-content .u-column2.col-2.woocommerce-Address,
  html body .woocommerce .woocommerce-MyAccount-content .u-column1,
  html body .woocommerce .woocommerce-MyAccount-content .u-column2,
  html body .woocommerce .woocommerce-MyAccount-content .col-1,
  html body .woocommerce .woocommerce-MyAccount-content .col-2,
  html body .woocommerce .woocommerce-MyAccount-content .woocommerce-Address,
  .woocommerce-MyAccount-content .u-column1.col-1.woocommerce-Address,
  .woocommerce-MyAccount-content .u-column2.col-2.woocommerce-Address,
  .woocommerce-MyAccount-content .woocommerce-Address,
  .woocommerce-MyAccount-content .u-column1,
  .woocommerce-MyAccount-content .u-column2,
  .woocommerce-MyAccount-content .col-1,
  .woocommerce-MyAccount-content .col-2,
  div.u-column1.col-1.woocommerce-Address,
  div.u-column2.col-2.woocommerce-Address {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    display: block !important;
    margin-bottom: 1rem !important;
    flex: none !important;
  }
}
