/* === Layout === */
.lk-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 50px;
  max-width: 1280px;
  margin: 100px auto;
  padding: 0 40px;
  align-items: start;
}

/* === Sidebar === */
.lk-sidebar {
  position: sticky;
  top: 140px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 30px 25px;
  border-radius: 25px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.55) 100%),
    radial-gradient(800px 400px at 70% 10%, rgba(110,141,173,0.15) 0%, rgba(255,255,255,0) 60%);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.45);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.lk-sidebar__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lk-sidebar__link {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 22px;
  border-radius: 15px;
  font-size: 16px;
  color: #171717;
  background: rgba(255,255,255,0.6);
  text-align: center;
  transition: all 0.25s ease;
}
.lk-sidebar__link:hover {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}
.lk-sidebar__link.is-active,
.lk-sidebar__link[aria-current="page"] {
  background: #171717;
  color: #fff;
  font-weight: 500;
}

/* === Content === */
.lk-content {
  background: #fff;
  border-radius: 25px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
  padding: 60px;
  min-height: 500px;
  color: #171717;
  font-family: "SegoeUIWeb", sans-serif;
}

/* === Headings === */
.lk-title {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.4px;
  margin-bottom: 35px;
  text-transform: uppercase;
}

/* === Forms === */
.lk-form {
  display: grid;
  gap: 20px;
  max-width: 600px;
}

.lk-field label {
  font-size: 15px;
  color: rgba(23,23,23,0.8);
  margin-bottom: 6px;
  display: block;
}

.lk-form input,
.lk-form select,
.lk-form textarea {
  width: 100%;
  border: 1px solid rgba(23,23,23,0.15);
  border-radius: 15px;
  padding: 12px 16px;
  font-size: 16px;
  background: #fff;
  transition: border .2s ease, box-shadow .2s ease;
}
.lk-form input:focus,
.lk-form select:focus,
.lk-form textarea:focus {
  border-color: #171717;
  box-shadow: 0 0 0 3px rgba(23,23,23,0.08);
  outline: none;
}

/* === Buttons === */
.lk-btn {
  padding: 14px 40px;
  border-radius: 999px;
  border: 1px solid #171717;
  background: #171717;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  transition: all .2s ease;
}
.lk-btn:hover {
  background: #fff;
  color: #171717;
  transform: translateY(-1px);
}
.lk-btn:active {
  transform: translateY(0);
}

/* === Tables === */
.lk-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}
.lk-table th {
  text-align: left;
  background: rgba(23,23,23,0.05);
  font-weight: 600;
  font-size: 15px;
  color: #171717;
  padding: 14px 18px;
  text-transform: uppercase;
}
.lk-table td {
  padding: 14px 18px;
  border-top: 1px solid rgba(0,0,0,0.05);
  font-size: 15px;
  color: rgba(23,23,23,0.8);
}

/* === Empty State === */
.lk-empty {
  background: rgba(255,255,255,0.7);
  border-radius: 25px;
  padding: 40px;
  text-align: center;
  color: rgba(23,23,23,0.7);
  font-size: 16px;
}

/* ========================================================================== */
/* === AUTH PAGES (LOGIN/REGISTER/PASSWORD) - NEW DESIGN FROM FIGMA === */
/* ========================================================================== */

.auth-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 200px);
  padding: 0px;
}

/* Двухколоночный layout */
.auth-wrapper {
  display: flex;
  gap: 100px;
  max-width: 1240px;
  width: 100%;
  min-height: 772px;
  align-items: center;
}

/* === ЛЕВАЯ КОЛОНКА: ТЕКСТ === */
.auth-text-block {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  /* padding: 150px 0; */
}

.auth-text-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
}

.auth-main-title {
  display: block;
  font-family: "SegoeUIWeb", sans-serif;
  font-size: 36px;
  font-weight: 350;
  line-height: 1.33;
  text-transform: uppercase;
  color: #171717;
  margin: 0;
}

.auth-description {
  font-family: "SegoeUIWeb", sans-serif;
  font-size: 20px;
  font-weight: 350;
  line-height: 1.33;
  color: rgba(23, 23, 23, 0.7);
  max-width: 498px;
  margin: 0;
}

/* === ПРАВАЯ КОЛОНКА: ФОРМА === */
.auth-form-block {
  width: 570px;
  min-height: 572px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 25px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.auth-panel {
  display: none;
  width: 100%;
}

.auth-panel.is-active {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
}

/* === ПОЛЯ ВВОДА === */
.auth-form-inputs {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.form-input-wrapper {
  position: relative;
  width: 100%;
  max-width: 483px;
  margin: 0 auto;
}

.form-input-wrapper input {
  width: 100%;
  height: 50px;
  padding: 10px 20px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  font-family: "SegoeUIWeb", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #171717;
  background: #FFFFFF;
  transition: border .2s ease, box-shadow .2s ease;
}

.form-input-wrapper input::placeholder {
  color: rgba(23, 23, 23, 0.4);
}

.form-input-wrapper input:focus {
  border-color: #171717;
  box-shadow: 0 0 0 3px rgba(23, 23, 23, 0.08);
  outline: none;
}

/* Поле с паролем и иконкой */
.password-wrapper {
  display: flex;
  align-items: center;
  position: relative;
}

.password-wrapper input {
  padding-right: 50px;
}

.password-toggle {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  width: 24px;
  height: 24px;
  cursor: pointer;
  color: rgba(23, 23, 23, 0.6);
  transition: color .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover {
  color: #171717;
}

.password-toggle svg {
  width: 24px;
  height: 24px;
  stroke-width: 2px;
}

/* === КНОПКА === */
.auth-btn {
  width: 100%;
  max-width: 483px;
  margin: 0 auto;
  padding: 15px 30px;
  border: none;
  border-radius: 15px;
  background: #171717;
  color: #FFFFFF;
  font-family: "SegoeUIWeb", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.33;
  text-align: center;
  cursor: pointer;
  transition: all .2s ease;
  display: block;
  text-decoration: none;
}

.auth-btn:hover {
  background: #333333;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.auth-btn:active {
  transform: translateY(0);
}

/* Группа кнопок (для страницы Забыли пароль) */
.auth-buttons-group {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  max-width: 483px;
  margin: 0 auto;
}

/* Вторичная кнопка (прозрачная с рамкой) */
.auth-btn-secondary {
  background: transparent;
  border: 1px solid #171717;
  color: #171717;
}

.auth-btn-secondary:hover {
  background: #171717;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* === ОШИБКИ ФОРМЫ === */
.auth-error-messages {
  width: 100%;
  max-width: 483px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Скрываем пустой контейнер */
.auth-error-messages:empty {
  display: none;
}

.auth-error-item {
  padding: 12px 16px;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 12px;
  color: #DC2626;
  font-family: "SegoeUIWeb", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Скрываем дубликат враппера только внутри формы логина.
   РАНЬШЕ было безусловное .woocommerce-notices-wrapper-original { display:none } —
   это резало уведомления НА ВСЕЙ странице ЛК (edit-account, edit-address),
   поэтому юзер не видел ни успеха «Адрес изменён», ни ошибок валидации. */
.auth-section > .woocommerce-notices-wrapper,
.auth-section > .woocommerce-notices-wrapper-original,
.auth-section .woocommerce-notices-wrapper-original {
  display: none !important;
}

/* Уведомления WooCommerce на страницах профиля — показываем аккуратным баннером сверху. */
.profile-section .woocommerce-notices-wrapper,
.profile-content .woocommerce-notices-wrapper,
.profile-tab-content .woocommerce-notices-wrapper {
  display: block;
  margin: 30px 0 40px;
  width: 100%;
}

.profile-section .woocommerce-error,
.profile-section .woocommerce-message,
.profile-section .woocommerce-info,
.profile-content .woocommerce-error,
.profile-content .woocommerce-message,
.profile-content .woocommerce-info,
.profile-tab-content .woocommerce-error,
.profile-tab-content .woocommerce-message,
.profile-tab-content .woocommerce-info {
  display: block;
  list-style: none;
  padding: 18px 24px;
  margin: 0 0 16px;
  border-radius: 12px;
  font-family: "SegoeUIWeb", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: #DC2626;
}

.profile-section .woocommerce-message,
.profile-content .woocommerce-message,
.profile-tab-content .woocommerce-message,
.profile-section .woocommerce-info,
.profile-content .woocommerce-info,
.profile-tab-content .woocommerce-info {
  background: rgba(34, 139, 34, 0.08);
  border-color: rgba(34, 139, 34, 0.2);
  color: #228B22;
}

.profile-section .woocommerce-error li,
.profile-section .woocommerce-message li,
.profile-section .woocommerce-info li,
.profile-content .woocommerce-error li,
.profile-content .woocommerce-message li,
.profile-content .woocommerce-info li {
  list-style: none;
  margin: 0 0 4px;
}

.profile-section .woocommerce-error li:last-child,
.profile-section .woocommerce-message li:last-child {
  margin-bottom: 0;
}

.profile-section .woocommerce-error a,
.profile-section .woocommerce-message a {
  color: inherit;
  text-decoration: underline;
}

/* Внутри нашего контейнера родные блоки WooCommerce показываем в виде .auth-error-item */
.auth-error-messages .woocommerce-notices-wrapper {
  display: block !important;
}

.auth-error-messages .woocommerce-error,
.auth-error-messages .woocommerce-message,
.auth-error-messages .woocommerce-info,
.auth-error-messages ul.woocommerce-error,
.auth-error-messages ul.woocommerce-message {
  display: block !important;
  list-style: none;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  color: inherit;
}

.auth-error-messages .woocommerce-error li,
.auth-error-messages .woocommerce-message li,
.auth-error-messages .woocommerce-info li {
  display: block;
  padding: 12px 16px;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 12px;
  color: #DC2626;
  font-family: "SegoeUIWeb", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  margin: 0 0 8px;
  list-style: none;
}

.auth-error-messages .woocommerce-message li,
.auth-error-messages .woocommerce-info li {
  background: rgba(34, 139, 34, 0.08);
  border-color: rgba(34, 139, 34, 0.2);
  color: #228B22;
}

.auth-error-messages .woocommerce-error li:last-child,
.auth-error-messages .woocommerce-message li:last-child {
  margin-bottom: 0;
}

.auth-error-messages .woocommerce-error a,
.auth-error-messages .woocommerce-message a {
  color: inherit;
  text-decoration: underline;
}

.auth-error-messages .woocommerce-error strong,
.auth-error-messages .woocommerce-message strong {
  font-weight: 600;
}

/* === ЧЕКБОКС СОГЛАСИЯ === */
.auth-checkbox-wrapper {
  width: 100%;
  max-width: 483px;
  margin: 0 auto;
}

.auth-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  cursor: pointer;
  user-select: none;
}

.auth-checkbox-label input[type="checkbox"] {
  display: none;
}

.auth-checkbox-custom {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1px solid #171717;
  border-radius: 2px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-top: 2px;
}

.auth-checkbox-label input[type="checkbox"]:checked + .auth-checkbox-custom {
  background: #171717;
}

.auth-checkbox-label input[type="checkbox"]:checked + .auth-checkbox-custom::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid #FFFFFF;
  border-bottom: 2px solid #FFFFFF;
  transform: rotate(-45deg) translateY(-1px);
}

.auth-checkbox-text {
  font-family: "SegoeUIWeb", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.33;
  color: rgba(23, 23, 23, 0.8);
  flex: 1;
}

/* === ССЫЛКИ === */
.auth-links {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  text-align: center;
}

.auth-link-forgot,
.auth-link-register {
  font-family: "SegoeUIWeb", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.33;
  color: rgba(23, 23, 23, 0.8);
  text-align: center;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color .2s ease;
}

.auth-link-forgot:hover {
  color: #171717;
  text-decoration: underline;
}

.auth-link-register:hover {
  color: #171717;
}

.auth-link-register .underline {
  text-decoration: underline;
}

/* === АДАПТИВ === */
@media (max-width: 1280px) {  
  .auth-wrapper {
    gap: 60px;
  }
}

@media (max-width: 980px) {
  .lk-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 60px auto;
    padding: 0 20px;
  }
  .lk-sidebar {
    flex-direction: row;
    overflow-x: auto;
    padding: 15px;
    border-radius: 18px;
  }
  .lk-sidebar__link {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 10px 20px;
  }
  .lk-content {
    padding: 40px;
  }

  /* Auth страницы на планшетах */
  .auth-section {
    min-height: calc(100vh - 150px);
  }

  .auth-wrapper {
    flex-direction: column;
    gap: 40px;
    min-height: auto;
  }

  .auth-text-block {
    padding: 0;
  }

  .auth-text-content {
    text-align: center;
    align-items: center;
  }

  .auth-main-title {
    font-size: 28px;
  }

  .auth-description {
    font-size: 18px;
  }

  .auth-form-block {
    width: 100%;
    max-width: 570px;
    min-height: auto;
    padding: 40px 30px;
  }
}

@media (max-width: 480px) {
  .lk-content {
    padding: 25px;
  }
  .lk-title {
    font-size: 20px;
  }
  .lk-btn {
    width: 100%;
    font-size: 15px;
  }

  /* Auth страницы на мобильных */
  .auth-text-block {
    display: none; /* Скрываем текстовый блок на мобильных */
  }

  .auth-form-block {
    padding: 30px 20px;
  }

  .form-input-wrapper {
    max-width: 100%;
  }

  .auth-btn {
    max-width: 100%;
  }

  .auth-links {
    max-width: 100%;
  }

  .auth-main-title {
    font-size: 24px;
  }

  .auth-description {
    font-size: 16px;
  }
}

/* Скрываем заголовок h1 от WooCommerce */
h1 {
  display: none;
}

