/* Обычные страницы WordPress внутри темы Lozá: кабинет, оплата счёта */
.wp-page { padding: calc(var(--header-h) + 48px) 0 24px; }
.wp-page .wrap { max-width: 980px; }
.wp-page h1.wp-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 4vw, 42px); margin-bottom: 24px; }
.wp-content { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 32px 34px; box-shadow: 0 18px 40px -24px rgb(var(--shadow-rgb) / 0.4); }
.wp-content > * + * { margin-top: 1em; }
.wp-content a { color: var(--wine); }
.wp-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.wp-content th, .wp-content td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.wp-content input[type=text], .wp-content input[type=email], .wp-content input[type=password], .wp-content input[type=tel], .wp-content select, .wp-content textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit;
}
.wp-content .button, .wp-content button[type=submit], .wp-content input[type=submit] {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px; border: 0; border-radius: 999px;
  background: var(--btn-bg); color: var(--on-btn); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
}
.wp-content .button:hover, .wp-content button[type=submit]:hover { background: var(--btn-hover, #5A1A36); }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.woocommerce-MyAccount-navigation a { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text); }
.woocommerce-MyAccount-navigation .is-active a { background: var(--wine); border-color: var(--wine); color: #FBF3E6; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { list-style: none; padding: 14px 18px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 18px; }
.woocommerce-error { border-color: #A12C7B; }
.woocommerce-message[tabindex="-1"]:focus, .woocommerce-info[tabindex="-1"]:focus, .woocommerce-error[tabindex="-1"]:focus, .woocommerce-notices-wrapper [tabindex="-1"]:focus { outline: none; }
.wp-content .woocommerce-error { border-color: rgb(var(--wine-rgb) / 0.45); background: rgb(var(--wine-rgb) / 0.06); }
.wc-block-components-notice-banner { display: flex; align-items: flex-start; gap: 10px; padding: 14px 18px !important; margin: 0 0 18px !important; border-radius: 14px !important; border: 1px solid var(--line) !important; background: var(--bg) !important; color: var(--text) !important; font-size: 15px; line-height: 1.5; }
.wc-block-components-notice-banner.is-error { border-color: rgb(var(--wine-rgb) / 0.45) !important; background: rgb(var(--wine-rgb) / 0.06) !important; }
.wc-block-components-notice-banner.is-success { border-color: rgb(79 107 27 / 0.45) !important; }
.wc-block-components-notice-banner > svg { display: none; }
.wc-block-components-notice-banner a { color: var(--wine); }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none; }
.wp-content .woocommerce-message, .wp-content .woocommerce-info, .wp-content .woocommerce-error { padding: 14px 18px; border-top: 1px solid var(--line); background: var(--bg); color: var(--text); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
body .wp-content .woocommerce a.button, body .wp-content .woocommerce button.button, body .wp-content .woocommerce input.button, body .wp-content .woocommerce .button.alt {
  float: none; order: 2; min-height: 40px; padding: 8px 18px; border-radius: 999px; background: var(--btn-bg); color: var(--on-btn); font-weight: 700; line-height: 1.2;
}
body .wp-content .woocommerce a.button:hover, body .wp-content .woocommerce button.button:hover { background: var(--btn-hover, #5A1A36); color: var(--on-btn); }
@media (max-width: 760px) {
  .wp-page { padding-top: calc(var(--header-h) + 28px); }
  .wp-content { padding: 20px 16px; overflow-x: auto; }
}

/* ---------- Поля на страницах WordPress (кабинет, оплата счёта) — в светлой и тёмной теме ---------- */
body .wp-content input.input-text, body .wp-content input[type=text], body .wp-content input[type=email], body .wp-content input[type=tel],
body .wp-content input[type=password], body .wp-content input[type=number], body .wp-content select, body .wp-content textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid rgb(var(--ink-rgb) / 0.2); border-radius: 12px;
  background: var(--field); color: var(--text); font: inherit; font-size: 15.5px; line-height: 1.3; box-shadow: none;
  transition: border-color .2s, box-shadow .2s;
}
body .wp-content input::placeholder, body .wp-content textarea::placeholder { color: var(--text-2); opacity: .7; }
body .wp-content input:focus, body .wp-content select:focus, body .wp-content textarea:focus {
  outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px rgb(var(--wine-rgb) / 0.18);
}
body .wp-content input:-webkit-autofill { -webkit-text-fill-color: var(--text); -webkit-box-shadow: 0 0 0 40px var(--field) inset; caret-color: var(--text); }
body .wp-content label { display: block; font-size: 14.5px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
body .wp-content .required { color: var(--wine); text-decoration: none; border: 0; }
body .wp-content fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
/* глаз «показать пароль» (добавляет скрипт WooCommerce) */
body .wp-content .password-input { position: relative; display: block; }
body .wp-content .password-input input { padding-right: 48px; }
body .wp-content .show-password-input {
  position: absolute; top: 50%; right: 8px; width: 34px; height: 34px; margin-top: -17px; padding: 0; border: 0; border-radius: 10px;
  background: transparent; color: var(--text-2); cursor: pointer;
}
body .wp-content .show-password-input::before, body .wp-content .show-password-input::after { content: none; display: none; }
body .wp-content .show-password-input {
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
}
body .wp-content .show-password-input.display-password {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M4 4l16 16'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M4 4l16 16'/%3E%3C/svg%3E");
}
body .wp-content .show-password-input:hover { color: var(--text); }
body .wp-content .show-password-input:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }

/* оплата счёта: блок способов оплаты в цветах сайта */
body .wp-content #payment { background: rgb(var(--ink-rgb) / 0.05); border-radius: 16px; color: var(--text); }
body .wp-content #payment ul.payment_methods { border-bottom-color: var(--line); }
body .wp-content #payment div.payment_box { background: var(--bg); color: var(--text-2); border: 1px solid var(--line); border-radius: 12px; }
body .wp-content #payment div.payment_box::before { border-bottom-color: var(--bg); }
body .wp-content #payment .place-order { border-top-color: var(--line); }
body .wp-content table.shop_table { border-color: var(--line); border-radius: 14px; }
body .wp-content table.shop_table th, body .wp-content table.shop_table td { border-color: var(--line); }

/* ---------- Личный кабинет ---------- */
.lz-pay-note { margin: 14px 2px 0; font-size: 14px; line-height: 1.5; color: var(--text-2); max-width: 70ch; }
.lz-pay-note a { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.woocommerce-account .wp-content h2 { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--text); }
.woocommerce-account .woocommerce-order-details, .woocommerce-account .woocommerce-customer-details { margin-top: 22px; }
.woocommerce-account .woocommerce-customer-details address { font-style: normal; color: var(--text-2); }
.woocommerce-account .wp-page .wrap { max-width: 1040px; }
.woocommerce-account .wp-content { padding: 0; overflow: hidden; }
.woocommerce-account .wp-content > .woocommerce { display: block; }
.woocommerce-account .wp-content > .woocommerce > .woocommerce-notices-wrapper:empty { display: none; }
.lz-acc-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 26px 34px 0; }
.lz-acc-name { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.2; color: var(--text); }
.lz-acc-mail { color: var(--text-2); font-size: 15px; overflow-wrap: anywhere; }
.wp-content > * + .lz-acc-head, .wp-content .woocommerce > * + * { margin-top: 0; }
.lz-acc-tabs { padding: 18px 34px 0; border-bottom: 1px solid var(--line); }
.woocommerce-MyAccount-navigation.lz-acc-tabs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.lz-acc-tabs ul::-webkit-scrollbar { display: none; }
.lz-acc-tabs li { flex: none; margin: 0; }
.lz-acc-tabs li.woocommerce-MyAccount-navigation-link--customer-logout { margin-left: auto; }
.woocommerce-MyAccount-navigation.lz-acc-tabs a {
  position: relative; display: block; padding: 12px 14px 14px; border: 0; border-radius: 0; background: none;
  color: var(--text-2); font-weight: 700; font-size: 15.5px; text-decoration: none; white-space: nowrap; transition: color .2s;
}
.woocommerce-MyAccount-navigation.lz-acc-tabs a:hover { color: var(--text); }
.woocommerce-MyAccount-navigation.lz-acc-tabs a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--wine);
  transform: scaleX(0); transition: transform .25s cubic-bezier(.22, 1, .36, 1);
}
.woocommerce-MyAccount-navigation.lz-acc-tabs .is-active a { background: none; color: var(--text); }
.woocommerce-MyAccount-navigation.lz-acc-tabs .is-active a::after { transform: none; }
.lz-acc-tabs .woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--wine); }
.woocommerce-account .woocommerce-MyAccount-content { float: none; width: auto; padding: 28px 34px 34px; }
.woocommerce-account .woocommerce-MyAccount-content > * + * { margin-top: 18px; }
.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-notices-wrapper:empty + * { margin-top: 0; }
.woocommerce-account .woocommerce-notices-wrapper { padding: 0; }
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message, .woocommerce-account .woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-error { margin: 0 0 18px; }
.lz-link { color: var(--wine); font-weight: 700; text-decoration: none; border-bottom: 1px solid rgb(var(--wine-rgb) / 0.35); }
.lz-link:hover { border-bottom-color: currentColor; }
.wp-content a.lz-btn, .wp-content button.lz-btn { min-height: 44px; padding: 10px 22px; }

/* счета */
.lz-bills { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lz-bill { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 16px; background: rgb(var(--paper-rgb) / 0.5); }
.lz-bill-main { min-width: 0; }
.lz-bill-no { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.25; color: var(--text); }
.lz-bill-what { margin-top: 4px; color: var(--text); font-size: 15px; }
.lz-bill-meta { margin-top: 4px; color: var(--text-2); font-size: 14.5px; }
.lz-bill-status { font-weight: 700; color: var(--wine); }
.lz-bill-status.is-processing, .lz-bill-status.is-completed { color: var(--green-label); }
.lz-bill-status.is-refunded { color: var(--text-2); }
.lz-bill-side { display: flex; align-items: center; gap: 18px; flex: none; }
.lz-bill-sum { font-family: var(--font-display); font-weight: 600; font-size: 22px; white-space: nowrap; color: var(--text); }
.lz-bill-actions { display: flex; align-items: center; gap: 16px; }
.lz-bill--single { margin-bottom: 8px; }
.lz-back { margin-bottom: 14px; font-size: 15px; }
.lz-notes { padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; }
.lz-notes-title { font-weight: 700; margin-bottom: 8px; }
.lz-note + .lz-note { margin-top: 10px; }
.lz-note-date { color: var(--text-2); font-size: 13.5px; }
.lz-empty { padding: 26px 24px; border: 1px dashed rgb(var(--ink-rgb) / 0.2); border-radius: 16px; color: var(--text-2); max-width: 640px; }
.lz-empty-title { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--text); margin-bottom: 6px; }
.lz-empty a { color: var(--wine); }

/* история платежей */
.lz-table-wrap { overflow-x: auto; }
.wp-content table.lz-pay-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.lz-pay-table th { font-size: 13.5px; font-weight: 700; color: var(--text-2); padding: 0 12px 10px; border-bottom: 1px solid var(--line); }
.lz-pay-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.lz-pay-table tr:last-child td { border-bottom: 0; }
.lz-pay-table th:first-child, .lz-pay-table td:first-child { padding-left: 0; }
.lz-pay-no { display: block; font-weight: 700; }
.lz-pay-what { display: block; color: var(--text-2); font-size: 14px; margin-top: 2px; }
.lz-pay-act { text-align: right; white-space: nowrap; }

/* форма «Аккаунт» */
.lz-form { display: grid; gap: 26px; }
.lz-form-block + .lz-form-block { padding-top: 26px; border-top: 1px solid var(--line); }
.lz-form-title { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin-bottom: 16px; color: var(--text); }
.lz-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.lz-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lz-field { margin: 0; min-width: 0; }
.lz-hint { margin-top: 6px; color: var(--text-2); font-size: 13.5px; line-height: 1.45; }
.lz-hint--top { margin: -8px 0 14px; }
.lz-hint.is-pending { color: var(--text); padding: 10px 12px; border-radius: 12px; background: rgb(var(--wine-rgb) / 0.08); }
.lz-hint-actions { display: flex; gap: 16px; margin-top: 6px; }
.lz-hint-actions a { color: var(--wine); font-weight: 700; }
.lz-form-submit { margin: 0; }
@media (max-width: 860px) {
  .lz-grid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .woocommerce-account .wp-content { padding: 0; }
  .lz-acc-head { padding: 20px 18px 0; }
  .lz-acc-name { font-size: 21px; }
  .lz-acc-tabs { padding: 10px 8px 0; }
  .woocommerce-MyAccount-navigation.lz-acc-tabs a { padding: 12px 10px 13px; font-size: 15px; }
  .woocommerce-MyAccount-navigation.lz-acc-tabs a::after { left: 10px; right: 10px; }
  .woocommerce-account .woocommerce-MyAccount-content { padding: 20px 18px 24px; }
  .lz-grid { grid-template-columns: 1fr; }
  .lz-bill { flex-direction: column; align-items: stretch; padding: 16px; }
  .lz-bill-side { flex-wrap: wrap; justify-content: space-between; gap: 12px; }
  .lz-bill-actions { flex: 1 1 100%; justify-content: space-between; flex-direction: row-reverse; }
  .lz-bill-actions .lz-btn { flex: 1 1 auto; max-width: 220px; }
  .lz-pay-table thead { display: none; }
  .lz-pay-table, .lz-pay-table tbody, .lz-pay-table tr, .lz-pay-table td { display: block; }
  .lz-pay-table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .lz-pay-table tr:last-child { border-bottom: 0; }
  .lz-pay-table td { padding: 3px 0; border: 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .lz-pay-table td::before { content: attr(data-title); color: var(--text-2); font-size: 14px; text-align: left; }
  .lz-pay-table td:first-child { display: block; text-align: left; }
  .lz-pay-table td:first-child::before, .lz-pay-table td.lz-pay-act::before { content: none; }
  .lz-pay-table td.lz-pay-act { justify-content: flex-start; padding-top: 6px; }
}
