/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
[type="button"]:not(.iti__selected-country),
[type="submit"],
button:not(.iti__selected-country),
.wc-block-grid__product-add-to-cart.wp-block-button .wp-block-button__link {
  color: var(--e-global-color-primary);
  background-color: var(--e-global-color-accent);
  border-radius: 16px !important;
}
[type="button"]:not(.iti__selected-country):focus,
[type="submit"]:focus,
button:not(.iti__selected-country):focus,
[type="button"]:not(.iti__selected-country):hover,
[type="submit"]:hover,
button:not(.iti__selected-country):hover,
.wc-block-grid__product-add-to-cart.wp-block-button
  .wp-block-button__link:hover {
  color: var(--e-global-color-primary);
  background-color: var(--e-global-color-accent);
  outline: none;
}
button[name="apply_coupon"] {
  color: var(--e-global-color-primary) !important ;
  background-color: var(--e-global-color-accent) !important ;
  border-radius: 16px !important;
}
button[name="apply_coupon"]:hover {
  color: var(--e-global-color-primary) !important;
  background-color: var(--e-global-color-accent) !important ;
  outline: none;
}

.woocommerce-page input,
.woocommerce-page textarea,
.woocommerce-page select {
  background-color: #575b5f !important;
  border-radius: 16px !important;
  color: var(--e-global-color-primary) !important;
}
.woocommerce form .woocommerce-billing-fields .input-text,
.woocommerce form .woocommerce-billing-fields select {
  padding: 16px !important;
  min-height: 50px;
}
.woocommerce-page label,
.woocommerce-page input::placeholder,
.woocommerce-page textarea::placeholder {
  color: var(--e-global-color-primary) !important;
}
.woocommerce-page .wc-block-components-quantity-selector__button {
  color: var(--e-global-color-primary) !important;
  opacity: 1 !important;
}
.woocommerce-page .wc-blocks-components-select__container {
  border-radius: 16px !important;
}
.woocommerce-page .wc-blocks-components-select__container label {
  color: var(--e-global-color-primary) !important;
}
.woocommerce-page
  .wc-block-components-checkbox
  .wc-block-components-checkbox__mark {
  fill: var(--e-global-color-primary) !important;
}
/*.woocommerce-page .wc-block-components-checkout-place-order-button{
    color: var(--e-global-color-accent) !important;
    border-color: var(--e-global-color-accent) !important;
}
.woocommerce-page .wc-block-components-checkout-place-order-button:hover{
    color: var(--e-global-color-primary) !important;
    background-color: var(--e-global-color-accent) !important;
}*/
.woocommerce-page .wc-block-cart__submit-button,
.woocommerce-page .wc-block-components-totals-coupon__button {
  color: var(--e-global-color-primary) !important;
  border-radius: 16px !important;
  background-color: var(--e-global-color-accent) !important;
}
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account .woocommerce-MyAccount-navigation {
  float: unset !important;
  width: 100% !important;
}
/* ===== ACCOUNT INFO ROW STYLES ===== */
.account-info-row {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 40px;
  margin: 32px 0;
  color: #000000;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 120px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

/* Разделители */
.account-info-row .account-divider {
  position: absolute !important;
  width: 1px !important;
  height: 60px !important;
  background-color: #C9D8ED !important;
  background: #C9D8ED !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 100 !important;
  display: block !important;
  pointer-events: none !important;
  content: "" !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.account-divider-left {
  left: 33.33% !important;
}

.account-divider-right {
  right: 33.33% !important;
}

/* Секции */
.account-section {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0; /* Важно для правильного сжатия */
}

/* Секция пользователя */
.account-user {
  justify-content: flex-start;
  gap: 16px;
}

.user-avatar svg {
  width: 68px;
  height: 69px;
}

.avatar-fallback {
  width: 68px;
  height: 69px;
  background: #f0f0f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-name,
.user-joined {
  color: #000000;
  font-size: 16px;
  line-height: 1.2;
  margin: 0;
}

/* Секция баланса */
.account-balance {
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.balance-title {
  color: #000000;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px 0;
  white-space: nowrap;
}

.balance-content {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  height: 32px; /* Фиксированная высота для выравнивания */
}

.balance-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
}

.balance-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.wallet-fallback {
  font-size: 20px;
  display: inline-block;
}

.balance-amount {
  color: #000000;
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  margin: 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
  height: 32px;
}

.top-up-btn {
  background-color: #8B5CF6 !important;
  color: #ffffff !important;
  border-radius: 16px !important;
  padding: 8px 16px !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  border: none !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background-color 0.2s ease !important;
  background: #8B5CF6 !important;
  height: 32px !important;
  line-height: 1 !important;
  vertical-align: middle !important;
}

.top-up-btn:hover {
  background-color: #7C3AED !important;
  color: #ffffff !important;
}

.top-up-btn {
  background-color: #8b5cf6;
  color: #ffffff;
  border-radius: 16px;
  padding: 8px 16px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border: none;
  white-space: nowrap;
  display: inline-block;
  transition: background-color 0.2s ease;
}

.top-up-btn:hover {
  background-color: #7c3aed;
  color: #ffffff;
}

/* Секция выхода */
.account-logout {
  justify-content: flex-end;
}

.logout-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #000000;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.logout-link:hover {
  opacity: 0.8;
}

.logout-icon svg {
  width: 24px;
  height: 24px;
}

/* Минимальные стили для предотвращения конфликтов */
.account-info-row * {
  box-sizing: border-box;
}

/* Агрессивная борьба с плагинами */
.account-info-row .rs-points-wrapper,
.account-info-row .woocs-wrapper,
.account-info-row [class*="rs-"],
.account-info-row [class*="woocs-"],
.account-info-row [id*="rs-"],
.account-info-row [id*="woocs-"] {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: inline !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Убираем все псевдоэлементы от плагинов */
.account-info-row [class*="rs-"]::before,
.account-info-row [class*="rs-"]::after,
.account-info-row [class*="woocs-"]::before,
.account-info-row [class*="woocs-"]::after {
  display: none !important;
  content: none !important;
}

/* Принудительно скрываем все элементы с синими цветами */
.account-info-row [style*="background-color: blue"],
.account-info-row [style*="background: blue"],
.account-info-row [style*="background-color: #"],
.account-info-row [style*="background: #"],
.account-info-row [style*="background-color: rgb("],
.account-info-row [style*="background: rgb("] {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

/* Скрываем пустые элементы, которые могут создавать артефакты */
.account-info-row div:empty:not(.account-divider),
.account-info-row span:empty,
.account-info-row p:empty {
  display: none !important;
}

/* Мобильная версия */
@media (max-width: 768px) {
  .account-info-row {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  .account-info-row .account-divider {
    display: none !important;
  }

  .account-section {
    width: 100%;
    justify-content: center;
  }
}

.account-navigation .woocommerce-MyAccount-navigation ul {
  list-style: none;
  gap: 16px 32px;
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 32px;
}
.account-navigation .woocommerce-MyAccount-navigation ul li a {
  color: var(--e-global-color-primary);
  padding: 5px;
}
.account-navigation .woocommerce-MyAccount-navigation ul li.is-active a {
  color: var(--e-global-color-accent);
  border-bottom: 1px solid;
  border-color: var(--e-global-color-accent);
}
.account-info-block {
  margin-bottom: 44px;
}

.account-content h2 {
  font-weight: 700;
  color: var(--e-global-color-primary);
}
.account-info-block form {
  background: #ffffff;
  padding: 32px;
  border-radius: 16px;
}
.account-info-block form label {
  display: none !important;
}
.woocommerce-billing-fields .select2-selection,
.account-info-block form .select2-selection,
.account-info-block form input {
  font-size: 18px;
  min-height: 59px;
  padding: 7px 20px;
  border: 1px solid #69727d;
  background-color: #ffffff !important;
  border-radius: 16px !important;
  color: #000000 !important;
}
.woocommerce-billing-fields
  .select2-container
  .select2-selection--single
  .select2-selection__rendered,
.account-info-block
  form
  .select2-container
  .select2-selection--single
  .select2-selection__rendered {
  color: #000000 !important;
}
.woocommerce .woocommerce-Button {
  background-color: var(--e-global-color-accent) !important;
  border-radius: 16px !important;
  padding: 13px !important;
  font-weight: 500;
  font-size: 16px;
  line-height: 26px;
  color: var(--e-global-color-primary) !important;
  text-align: center;
  min-height: 48px;
}
/* Стили для кнопки Top up перенесены в inline CSS */

.account-content .woocommerce-Button,
.account-content .woocommerce-button,
.order-again .button {
  background-color: var(--e-global-color-accent) !important;
  border-radius: 16px !important;
  padding: 8px 12px !important;
  font-weight: 500;
  font-size: 16px;
  line-height: 26px;
  color: var(--e-global-color-primary) !important;
  text-align: center;
}
.account-info-block form button[type="submit"] {
  background-color: var(--e-global-color-accent) !important;
  border-radius: 16px !important;
  padding: 8px 12px;
  font-weight: 500;
  font-size: 16px;
  line-height: 26px;
  color: #333948 !important;
  width: 232px;
  min-height: 52px;
  max-width: 100%;
}
.account-info-block form button[type="submit"]:hover {
  color: var(--e-global-color-primary) !important;
}
.account-info-block .woocommerce-address-fields #billing_first_name_field,
.account-info-block .woocommerce-address-fields #billing_last_name_field,
.account-info-block .woocommerce-address-fields #billing_phone_field,
.account-info-block .woocommerce-address-fields #billing_email_field {
  display: none;
}
.account-content {
  margin-bottom: 50px;
}

.woocommerce .account-content table.my_account_orders th,
.woocommerce .account-content table.my_account_orders td {
  border: none;
  padding: 20px;
}

.woocommerce .account-content table.my_account_orders thead th {
  background: #33373a;
  color: var(--e-global-color-primary) !important;
}
.woocommerce .account-content table.my_account_orders thead th:first-child {
  border-top-left-radius: 16px;
}
.woocommerce .account-content table.my_account_orders thead th:last-child {
  border-top-right-radius: 16px;
}

.woocommerce .account-content table.my_account_orders tbody th,
.woocommerce .account-content table.my_account_orders tbody td {
  background: #ffffff;
  color: #000000 !important;
}

.woocommerce
  .account-content
  table.my_account_orders
  tbody
  tr:last-child
  th:first-child {
  border-bottom-left-radius: 16px;
}
.woocommerce
  .account-content
  table.my_account_orders
  tbody
  tr:last-child
  td:last-child {
  border-bottom-right-radius: 16px;
}
.woocommerce
  .account-content
  table.my_account_orders
  .woocommerce-orders-table__cell-order-actions
  a {
  color: var(--e-global-color-primary) !important;
  display: flex;
  gap: 8px;
  align-items: center;
}

.woocommerce
  .account-content
  table.my_account_orders
  .woocommerce-orders-table__cell-order-actions
  a
  svg {
  width: 1.5em;
}
.button.add_to_cart_button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 13px;
}
.key_library_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.key_library_item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 350px;
}

.key_library_item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.key_library_item-content {
  position: absolute;
  bottom: 0;
  left: 0;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: #1e1e1eb2;
  color: var(--e-global-color-primary);
}
.key_library_item-key {
  display: flex;
  gap: 8px;
}
.product-block .my_rewards_title {
  font-size: 28px !important;
  font-style: normal;
  font-weight: 400 !important;
  line-height: 134%;
}

.product-block .grid-product-buy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 30px;
  gap: 40px;
}

.product-block {
  background: #131313;
  padding: 30px;
  border-radius: 20px;
  height: auto;
  margin: -10px 0 30px;
  width: 100%;
}

.product-block .price {
  text-align: right;
  margin: 0px 0 30px;
  font-size: 24px;
  color: var(--e-global-color-primary);
}

.button-qty {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  width: 100%;
}

.count-box-pr {
  border-radius: 16px;
  border: 1px solid #959595;
  background: #131313;
  padding: 20px 24px;
}

.product-block .single_add_to_cart_button {
  width: 100%;
  border-radius: 16px !important;
  padding: 15px !important;
  margin-top: 25px !important;
  color: var(--e-global-color-primary) !important;
  background: var(--e-global-color-accent) !important;
}

.count-box-pr .quantity .qty {
  width: 100%;
}

.count-box-pr .quantity span {
  color: var(--e-global-color-primary);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 142%; /* 22.72px */
  text-transform: uppercase;
  float: left;
  width: 50%;
}

.button-qty button {
  font-size: 16px;
  font-weight: 400;
  padding: 12px 15px;
  margin: 0 6px;
  border-radius: 16px;
  border: 2px solid #c7c7c7;
  background: #ededed;
  backdrop-filter: blur(38.5px);
  color: #fff;
  cursor: pointer;
  width: 100%;
}

.button-qty button:hover {
  border: 2px solid var(--e-global-color-accent);
}

.info-product-buy {
  border-radius: 15px;
  height: 160px;
  background: var(--e-global-color-accent);
  margin-bottom: 25px;
  background-position: 90% 50%;
  background-repeat: no-repeat;
}

.info-product-buy span {
  color: #fff;
  font-size: 46px;
  font-style: normal;
  font-weight: 400;
  line-height: 142%;
  padding: 80px 0 0 20px;
  display: block;
}

.product-block .qib-button-wrapper {
  border: initial;
  float: right;
  width: 50%;
  margin: 0;
  padding: 0;
  display: block;
}

.my_rewards_title {
  margin: 0 !important;
}

.product-block .price br {
  display: none;
}

.product-block form .quantity-wrap {
  display: flex;
  justify-content: space-between;
}
.product-block form .quantity {
  height: 60px;
}

.product-block .added_to_cart.wc-forward {
  display: none;
}
body .woocs-style-1-dropdown,
body .woocs-style-1-dropdown .woocs-style-1-dropdown-menu,
body .woocs-style-1-dropdown:hover {
  background-color: var(--e-global-color-accent) !important;
  color: var(--e-global-color-primary) !important;
  padding: 5px 3px !important;
  border-radius: 16px;
}
body .woocs-style-1-dropdown .woocs-style-1-dropdown-menu li,
body .woocs-style-1-dropdown .woocs-style-1-dropdown-menu li:hover {
  background-color: var(--e-global-color-accent) !important;
  color: var(--e-global-color-primary) !important;
  padding: 5px 10px !important;
  border-radius: 16px;
}
.wc-block-components-checkout-place-order-button {
  width: 100% !important;
}
.woocommerce-checkout #shipping-option,
.wp-block-woocommerce-checkout-order-summary-totals-block
  .wp-block-woocommerce-checkout-order-summary-shipping-block {
  display: none;
}
.woocommerce.wp-block-group.alignwide {
  margin-inline: 0 !important;
}
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-color: var(--e-global-color-accent);
  outline: none !important;
  color: #fff;
  background: #131313;
}
.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--e-global-color-accent);
}
.woocommerce-message a.button,
.woocommerce-page #payment #place_order {
  border-radius: 16px !important;
  padding: 15px !important;
  color: var(--e-global-color-primary) !important;
  background: var(--e-global-color-accent) !important;
}
.wp-post-image.woocommerce-placeholder,
.wc-block-components-notices__snackbar {
  display: none !important;
}

/* Упрощенные стили для разделителей */
.account-info-row .account-divider {
  position: absolute;
  width: 1px;
  height: 60px;
  background-color: #c9d8ed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: block;
  visibility: visible;
  opacity: 1;
}

@media (max-width: 1200px) {
  .account-info-row {
    zoom: 0.8;
  }
}

@media (max-width: 768px) {
  .account-info-row {
    flex-direction: column !important;
    gap: 20px !important;
    height: auto !important;
    padding: 20px !important;
  }

  .account-info-row::before,
  .account-info-row::after,
  .account-info-row .account-divider {
    display: none !important;
  }
}

/* Эмуляция стилей Elementor для совместимости */
.elementor-widget-woocommerce-my-account
  .e-my-account-tab
  .woocommerce-MyAccount-content {
  float: unset !important;
  padding: 0 !important;
  width: 100% !important;
}

.elementor-widget-woocommerce-my-account
  .e-my-account-tab
  .woocommerce-MyAccount-navigation {
  float: unset !important;
  width: 100% !important;
}

.elementor-widget-woocommerce-my-account .e-my-account-tab {
  color: #69727d;
  font-family: inherit;
}

/* Дополнительные стили для белого фона и черного текста в аккаунте */
.account-info-row {
  background: #ffffff !important;
  color: #000000 !important;
}

.account-info-row h3,
.account-info-row span,
.account-info-row div {
  color: #000000 !important;
}

.account-info-row svg {
  fill: #000000 !important;
  color: #000000 !important;
}

.account-info-row svg path {
  fill: #000000 !important;
  stroke: #000000 !important;
}

/* Стили для полей ввода - белый фон, черный текст */
.woocommerce-page input,
.woocommerce-page textarea,
.woocommerce-page select {
  background-color: #ffffff !important;
  color: #000000 !important;
}

.woocommerce-page input::placeholder,
.woocommerce-page textarea::placeholder {
  color: #666666 !important;
}

/* Стили для выпадающих списков */
.select2-dropdown,
.select2-results,
.select2-results__option {
  background-color: #ffffff !important;
  color: #000000 !important;
}

.select2-results__option--highlighted {
  background-color: #f0f0f0 !important;
  color: #000000 !important;
}

/* Цвет разделителей */
.account-info-row .account-divider {
  background-color: #c9d8ed;
}
