body:has(.vega-checkout-container) .site-header {
    display: none;
}

body:has(.vega-checkout-container) {
    background-color: #fff;
}

.woocommerce-Price-currencySymbol{
	font-size: 18px !important;
}

.woocommerce-notices-wrapper {
    width: 100%;
    max-width: 78.125vw;
    margin: 0 auto;
}

.woocommerce-message::before {
    color: var(--color-primary);
}

.woocommerce-message {
    border: 0;
}

.woocommerce-message .wc-forward {
    display: none !important;
}

.woocommerce-form-coupon-toggle {
    display: none;
}

.checkout-back-button .icon-arrow-right {
    fill: var(--color-text-light-gray);
    transform: rotate(-135deg);
    width: 36.5px;
    height: 20px;
    flex-shrink: 0;
    stroke: var(--color-text-light-gray);

}

/*
 * Custom Review Order Styles on Checkout Page
 */

.woocommerce-checkout .vega-checkout-wrapper {
    z-index: 9999;
    position: relative;
    background-color: #fff;
}

.woocommerce-checkout .vega-order-review__items {
    display: flex;
    flex-direction: column;
    gap: 1.2vw;
    margin-bottom: 20px;
    /* Отступ от итогов */
}

.woocommerce-checkout .cart-item {
    display: flex;
    align-items: center;
    gap: 0.8vw;
    /* Убедитесь, что стили из мини-корзины здесь тоже применяются */
}

.woocommerce-checkout .cart-item__image-link img {
    width: 60px;
    /* Задайте нужный размер */
    height: auto;
    border-radius: 8px;
}

.woocommerce-checkout .cart-item__name {
    flex-grow: 1;
    /* Чтобы название занимало все доступное место */
    font-size: 16px;
    font-weight: 500;
}

.woocommerce-checkout .cart-item__quantity,
.woocommerce-checkout .cart-item__price {
    white-space: nowrap;
}

/* Стили для таблицы с итогами */
.vega-totals-table {
    width: 100%;
    margin-bottom: 20px;
}

.vega-totals-table th,
.vega-totals-table td {
    padding: 8px 0;
    text-align: right;
}

.vega-totals-table th {
    text-align: left;
    font-weight: normal;
    color: var(--color-text-light-gray);
}

.vega-totals-table .order-total th,
.vega-totals-table .order-total td {
    font-weight: bold;
    font-size: 1.2em;
    color: var(--color-primary-darkest);
}


.woocommerce form .form-row .input-text,
.woocommerce form .form-row select {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-family: "Vela Sans", sans-serif;
    font-weight: 500;
    font-size: 0.7812vw;
    line-height: 1.0417vw;
    color: var(--color-primary-darkest);
    border-bottom: 1px solid var(--color-primary);
    padding-bottom: 0.52vw;
    border-radius: 0;
}

.form-row.form-row-last {
    position: absolute;
}

.woocommerce form .form-row-first,
.woocommerce form .form-row-last,
.woocommerce-page form .form-row-first,
.woocommerce-page form .form-row-last {
    width: 100%;
}

.coupon-button{
	width: 52% !important;
}

#vega_apply_coupon_btn{right:0;
	position: absolute;}

p button.coupon-button {
    width: fit-content !important;
    left: 400px;
    z-index: 5;
}

p button.coupon-button, .wc-block-components-totals-coupon__button {
    display: flex !important;
    width: 207px !important;
    height: 34px !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 4px !important;
    border-radius: 10px !important;
	border: 1px solid var(--color-primary) !important;
    background: none !important;
   color: var(--color-primary) !important;
    font-family: "Vela Sans" !important;
    font-size: 16px !important;
    font-style: normal !important;
    font-weight: 600 !important;
    line-height: 110% !important;
    letter-spacing: -0.48px !important;
    text-transform: uppercase !important;
}
p button.coupon-button:hover, .wc-block-components-totals-coupon__button:hover {
    
	border: 1px solid var(--color-primary) !important;
    background: var(--color-primary) !important;
   color: #fff !important;    
}

.checkout-header .checkout-star-icon {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translatex(-50%);
}

.vega-checkout-container {
    z-index: 10;
    position: relative;
    background: #fff;
    max-width: 78.125vw;
    margin: 0 auto;
}

.wp-block-group {
    background: #fff;
}

.checkout-title {
    padding: 30px 0 15px;
    margin: 0 auto;
    width: fit-content;
    color: var(--color-text-light-gray);
    font-family: "Vela Sans";
    font-size: 26px;
    font-style: normal;
    font-weight: 600;
    line-height: 125%;
    letter-spacing: -0.26px;
    text-transform: uppercase;
}

.checkout-header {
    border-bottom: 1px solid var(--color-primary);
    margin: 0 0 15px 0;
}

.checkout-back-button {
    position: absolute;
    top: 30px;
    left: 0%;
}

.woocommerce ul#shipping_method li {
    margin: 20px 0 !important;
}

.woocommerce-billing-fields__field-wrapper,
.form-row.form-row-first {
    margin-top: 20px;
}

.checkout-section {
    margin: 25px 0;
    padding-top: 0px;
}

.line-above {
    border-top: 1px solid rgba(165, 120, 199, 0.35);
}

.checkout-footer .checkout-star-icon {
    margin: 0 auto;
    width: 10px;
    display: block;
}

.woocommerce-checkout-review-order .woocommerce-checkout-payment {
    display: none;
}

.woocommerce-checkout-payment {
    background: none !important;
}

.payment-details-fields .form-row.place-order {
    display: flex;
}

.woocommerce-checkout-payment .checkout-section {
    width: 60%;
    margin: 0;
    padding-top: 0;
}

.woocommerce-checkout-payment #place_order {
   /* margin-left: auto !important; */
}
.woocommerce-checkout #payment div.form-row {
  display: flex !important;
  flex-flow: column !important;
}


#vega_callback_confirm_field .woocommerce-input-wrapper {
    display: flex !important;
    gap: 5px !important;
}

#vega_callback_confirm_field input:nth-child(3) {
    margin-left: 50px;
}

#billing_country_field .select2-selection.select2-selection--single,
.zen-ui-select__value {
    background-color: 0;
    border: 0;
    color: var(--color-primary-darkest) !important;
    border-bottom: 1px solid var(--color-primary);
    border-radius: 0;
    font-family: "Vela Sans", sans-serif !important;
    font-weight: 500 !important;
    font-size: 0.7812vw !important;
    line-height: 1.0417vw !important;
    color: var(--color-primary-darkest) !important;
    border-bottom: 1px solid var(--color-primary);
    padding-bottom: 0.52vw !important;
}

#coupon_code {
    padding-bottom: 20px;
}

.single_variation_wrap .price{
	display: none;
}

.woocommerce form .form-row.woocommerce-validated input.input-text,
.woocommerce form .form-row.woocommerce-validated select,
.woocommerce form .form-row .input-text:focus,
.woocommerce form .form-row select:focus {
    border-color: var(--color-accent-pink) !important;
}

.select2-container .select2-dropdown,
.select2-container .select2-selection {
    background-color: #fff !important;
    border-bottom: 1px solid var(--color-primary) !important;
    border-radius: 0px !important;
}

/* 
 * Решение проблемы №2: Стили для выпадающего списка Select2
 * Select2 создает выпадающий список в конце body, поэтому нам нужно
 * убедиться, что он будет поверх всех остальных элементов.
 */
.select2-container--open .select2-dropdown {
    z-index: 99999 !important;
    /* Очень высокий z-index, чтобы перекрыть все */
}


.woocommerce-checkout .input-text,
.woocommerce-checkout select,
.woocommerce-checkout .select2-container {
    position: relative;
    z-index: 1;
}

.select2-container.select2-container--default.select2-container--open {
    z-index: 99999 !important;
}

.order-total,
.cart-discount {
    text-align: end;
}

.checkout__total-text {
    color: var(--color-text-light-gray);
    font-size: 22px;
}

.checkout__total-price,
.checkout__total-price bdi {
    color: var(--color-primary-darkest);
    font-size: 32px;
    font-weight: 700;
}

.cart-item__price bdi {
    color: var(--color-primary);
    font-size: 22px;
    font-weight: 400;
    line-height: 125%;
    letter-spacing: -0.22px;
}

.checkout-footer {
    padding-bottom: 20px;
}

.wp-block-button.wc-block-grid__product-add-to-cart {
    display: none;
}

@media (max-width: 960px) {
	
	.coupon-button{
	width: 100% !important;
}


    .woocommerce form .form-row .input-text,
    .woocommerce form .form-row select,
    #select2-billing_country-container,
    .zen-ui-select__value-text {
        width: 100%;
        font-size: 1.5625vw;
        line-height: 2.0833vw;
        padding-bottom: 1.04vw;
    }

    .vega-checkout-right-column {
        grid-row: 1;
    }
}

@media (max-width: 767px) {
	
	.woocommerce-checkout .cart-item__name{font-size: 14px;}
	
	.cart-item__price bdi {
  font-size: 18px;
}
	
	.quantity-selector {
  padding: 3px 4px;
}
	.quantity-selector button {
  width: 18px;
  height: 18px;
  border-radius: 20px;
}
.woocommerce-checkout .cart-item {
  gap: 2.5vw;
}
	
	.checkout-title {
  font-size: 22px;
}
    .woocommerce form .form-row .input-text,
    .woocommerce form .form-row select,
    #select2-billing_country-container,
    .zen-ui-select__value-text {
        font-size: 4.6875vw;
        line-height: 6.25vw;
        padding-bottom: 3.13vw;
    }

    p button.coupon-button {
        width: 190px !important;
		padding: 0!important;
    }

    .woocommerce-checkout .vega-checkout-wrapper {
        gap: 0px;
    }

    .vega-checkout-container {
        max-width: 90.625vw;
    }

    .checkout-footer {
        padding-bottom: 15px;
    }

    .checkout-title {
        padding: 40px 15px 20px;
    }

    .checkout-back-button {
        top: 45px;
    }
}


.wc-block-components-quantity-selector{
	border-radius: 10px!important;
  border: 1px solid var(--color-primary)!important;
  background: var(--color-bg-light)!important;
  height: 38px!important;
}
.wc-block-components-quantity-selector__button{
min-width: 20px!important;
  width: 20px!important;
  height: 20px!important;  
  cursor: pointer!important;
  border-radius: 50%!important;
  border: 1px solid var(--color-primary)!important;
  background: #FFF!important;
  margin: auto 5px!important;
}

.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input{
	min-width: 20px!important;
  width: 20px!important;
}
.wc-block-components-formatted-money-amount, .wc-block-grid__product-price span{
font-family: 'Vela Sans';
font-style: normal;
font-weight: 400;
font-size: 22px;
line-height: 125%;
leading-trim: both;
text-edge: cap;
letter-spacing: -0.01em;
text-transform: uppercase;
color:var(--color-primary)!important;
flex: none;
order: 0;
flex-grow: 0;
	
}

.wc-block-grid__product-price{
	margin-top:  auto !important;
}

.editor-styles-wrapper table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name, table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name {
color: var(--color-primary-darkest);
  font-family: "Vela Sans";
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: 130%;
	text-decoration: none !important;
}

.editor-styles-wrapper table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image img, table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image img {
  border-radius: 15px;
}


.wc-block-components-form .wc-block-components-text-input input[type="email"], .wc-block-components-form .wc-block-components-text-input input[type="number"], .wc-block-components-form .wc-block-components-text-input input[type="password"], .wc-block-components-form .wc-block-components-text-input input[type="tel"], .wc-block-components-form .wc-block-components-text-input input[type="text"], .wc-block-components-form .wc-block-components-text-input input[type="url"], .wc-block-components-text-input input[type="email"], .wc-block-components-text-input input[type="number"], .wc-block-components-text-input input[type="password"], .wc-block-components-text-input input[type="tel"], .wc-block-components-text-input input[type="text"], .wc-block-components-text-input input[type="url"] {
 border: 0!important;
  border-bottom: 1px solid var(--color-primary)!important;
  border-radius: 0!important; 
  color: var(--color-primary-darkest)!important;
  font-family: "Vela Sans"!important;  
}

.wc-block-cart__submit-button, {
	text-decoration: none !important;
	background: var(--gradient-btn-default) !important;
  border: 2px solid #FCEEF9 !important;
  color: var(--color-white) !important;
  border-radius: 50% !important;
  width: 7.3958vw !important;
  height: 7.3958vw !important;
  opacity: 1 !important;
  cursor: pointer !important;
	text-transform: uppercase;
	font-family: "Vela Sans"!important;
	transition: all 0.3s ease !important;
}

.has-text-align-center a{
  font-weight: 500;
  text-transform: uppercase!important;
  color: var(--color-primary-darkest)!important;
  text-decoration: none!important;
	display: inline-block!important;
}

.has-text-align-center a::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

.has-text-align-center a:hover::after {
  width: 50%;
}

.wc-block-cart__submit-button:hover {
  background: var(--gradient-btn-hover) !important;
  transform: rotate(-25deg) scale(1.05) !important;
}

.wc-block-grid__product-title, .wc-block-grid__product-link{
	text-decoration: none !important;
}

.wc-block-grid__products .wc-block-grid__product-image img{
	border-radius: 25px;
	width:100%!important;
}

.wc-block-grid__product-image, .wc-block-grid__product-image, .wc-block-grid__product-link{
	width:100%!important;
}
.wc-block-grid__product-title, .wc-block-grid__product-price.price{
	text-align:initial  !important;
}

.wc-block-grid__product{
  background: var(--color-white);
  border-radius: 30px;
  text-decoration: none;
	border: 1px solid var(--color-primary)!important;
	padding: 10px !important;
	
}

.wc-block-grid__products{
	gap: 30px 25px !important;
}





/* ==========================================================================
   WISHLIST PAGE STYLES (YITH PLUGIN)
   ========================================================================== */

/* --- Общие стили для таблицы --- */
table.wishlist_table {
    width: 100% !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    font-family: 'Vela Sans', sans-serif !important;
    background: transparent !important;
    border: none !important;
}

/* Скрываем стандартный заголовок таблицы, но оставляем его для скринридеров */
table.wishlist_table thead {
    display: none !important;
}

/* --- Стилизация строк таблицы --- */
table.wishlist_table tbody.wishlist-items-wrapper tr {
    display: flex !important;
    align-items: center !important;
    padding: 20px 0 !important;
    margin: 0 10px !important;
    border-bottom: 1px solid var(--color-border) !important;
}

table.wishlist_table tbody.wishlist-items-wrapper tr:last-child {
    border-bottom: none !important;
}

/* Убираем стандартные стили ячеек */
table.wishlist_table td {
    border: none !important;
    padding: 0 15px !important;
    background: transparent !important;
    vertical-align: middle !important;
}

/* --- Стилизация колонок --- */

/* 1. Миниатюра товара */
td.product-thumbnail {
    flex-basis: 100px !important;
    flex-shrink: 0 !important;
}
td.product-thumbnail img {
    width: 100px !important;
    height: 100px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
}

/* 2. Название товара */
td.product-name {
    flex-grow: 1 !important;
}
td.product-name a {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: var(--color-primary-darkest) !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}
td.product-name a:hover {
    color: var(--color-accent-pink) !important;
}

/* 3. Цена */
td.product-price {
    flex-basis: 150px !important;
    text-align: center !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--color-primary) !important;
}
td.product-price .woocommerce-Price-amount {
    color: var(--color-primary) !important;
}

/* 4. Статус наличия */
td.product-stock-status {
    flex-basis: 150px !important;
    text-align: center !important;
}
td.product-stock-status .wishlist-in-stock {
    font-size: 16px !important;
    font-weight: 500 !important;
    color: var(--color-primary-darkest) !important;
}

/* 5. Колонка с действиями */
td.product-add-to-cart {
    flex-basis: 200px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 15px !important;
}

/* --- Стилизация элементов внутри колонки действий --- */

/* Кнопка "Добавить в корзину" */
.product-add-to-cart .btn--icon-round {
    width: 50px !important;
    height: 50px !important;
}
.product-add-to-cart .icone--bag {
    width: 24px !important;
    height: 24px !important;
}

/* Дата добавления (скрываем, т.к. в дизайне ее нет) */
.product-add-to-cart .dateadded {
    display: none !important;
}

/* Кнопка "Удалить" */
.product-add-to-cart .remove_from_wishlist {
    font-size: 0 !important; /* Прячем текст "Удалить" */
    color: transparent !important;
    border: 1px solid var(--color-text-light-gray) !important;
    background-color: transparent !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    position: relative !important;
    transition: all 0.2s ease !important;
    order: -1; /* Ставим крестик перед кнопкой корзины */
}

.product-add-to-cart .remove_from_wishlist:hover {
    background-color: var(--color-accent-pink) !important;
    border-color: var(--color-accent-pink) !important;
}

/* Рисуем крестик с помощью псевдоэлементов */
.product-add-to-cart .remove_from_wishlist::before,
.product-add-to-cart .remove_from_wishlist::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 14px !important;
    height: 2px !important;
    background-color: var(--color-text-light-gray) !important;
    transition: background-color 0.2s ease !important;
}
.product-add-to-cart .remove_from_wishlist:hover::before,
.product-add-to-cart .remove_from_wishlist:hover::after {
    background-color: #fff !important;
}
.product-add-to-cart .remove_from_wishlist::before {
    transform: translate(-50%, -50%) rotate(45deg) !important;
}
.product-add-to-cart .remove_from_wishlist::after {
    transform: translate(-50%, -50%) rotate(-45deg) !important;
}


/* --- Адаптация для мобильных устройств --- */
@media (max-width: 768px) {
    table.wishlist_table tbody.wishlist-items-wrapper tr {
        display: grid !important;
        grid-template-columns: 80px 1fr !important; /* Колонка для картинки и колонка для всего остального */
        grid-template-rows: auto auto auto !important;
        gap: 5px 15px !important;
        align-items: start !important;
        padding: 15px 0 !important;
        margin: 0 !important;
    }

    table.wishlist_table td {
        padding: 0 !important;
        text-align: left !important;
    }

    td.product-thumbnail {
        grid-row: 1 / 4 !important; /* Картинка занимает 3 ряда по высоте */
        grid-column: 1 / 2 !important;
        align-self: center !important;
    }
    td.product-thumbnail img {
        width: 80px !important;
        height: 80px !important;
    }

    td.product-name {
        grid-row: 1 / 2 !important;
        grid-column: 2 / 3 !important;
        align-self: start !important;
    }
    td.product-name a {
        font-size: 16px !important;
    }

    td.product-price {
        grid-row: 2 / 3 !important;
        grid-column: 2 / 3 !important;
        font-size: 16px !important;
        text-align: left !important;
    }

    td.product-stock-status {
        display: none !important; /* Скрываем на мобильных для экономии места */
    }

    td.product-add-to-cart {
        grid-row: 3 / 4 !important;
        grid-column: 2 / 3 !important;
        justify-content: flex-start !important;
        padding-top: 10px !important;
    }
    
    .product-add-to-cart .remove_from_wishlist {
        width: 35px !important;
        height: 35px !important;
    }
    .product-add-to-cart .btn--icon-round {
        width: 45px !important;
        height: 45px !important;
    }
	
	  .woocommerce-checkout .cart-item {
    gap: 3vw;
  }

.vega-order-review__items .cart-menu__items-list {
 flex-direction: row;
  gap: 10.2vw;
}
	
	.vega-checkout-right-column .order-total {
  text-align: start;
}
	
}



div.page-wrapper.product-page main.text-page form.woocommerce.yith-wcwl-form.wishlist-fragment table.shop_table.cart.wishlist_table.wishlist_view tbody.wishlist-items-wrapper tr td.product-remove a.remove.remove_from_wishlist {
  color: var(--color-text-light-gray) !important;
	border: 1px solid  var(--color-text-light-gray) !important;

  font-size: 1.5em !important ;
  height: 1.5em !important;
  width: 1.5em !important;  
  line-height: 1.5 !important;	
}

div.page-wrapper.product-page main.text-page form.woocommerce.yith-wcwl-form.wishlist-fragment table.shop_table.cart.wishlist_table.wishlist_view tbody.wishlist-items-wrapper tr td.product-remove a.remove.remove_from_wishlist:hover {
  color: #fff !important;
	border: 1px solid  var(--color-primary) !important;
  background: var(--color-primary) !important;
	
}

table.wishlist_table.shop_table .product-remove {
  width: auto !important;
}


div.page-wrapper.product-page main.text-page form.woocommerce.yith-wcwl-form.wishlist-fragment table.shop_table.cart.wishlist_table.wishlist_view tbody.wishlist-items-wrapper tr td.product-remove {
  color: var(--color-text-light-gray);
}

div.page-wrapper.product-page form.woocommerce.yith-wcwl-form.wishlist-fragment table.shop_table.cart tbody.wishlist-items-wrapper tr td.product-add-to-cart a.btn.btn--icon-round.btn--primary-fill{
	display: flex !important;
  margin: 0 5px !important;
  text-align: center;
	
}
.woocommerce-Address-title.title{
	font-family: "Vela Sans", sans-serif;
}

section.woocommerce-order-details{
	width:auto;
}

.woocommerce span.onsale {display: none !important;}


.wc-block-components-button.wc-block-cart__submit-button {
  background: var(--gradient-btn-default) !important;
  border: 2px solid #FCEEF9 !important;
  color: var(--color-white) !important;
  border-radius: 50% !important;
  width: 7.3958vw !important;
  height: 7.3958vw !important;
  opacity: 1 !important;
  cursor: pointer !important;
  white-space: normal;
transition: all 0.3s ease  !important;
}

.wc-block-components-button.wc-block-cart__submit-button:hover {
  background: var(--gradient-btn-hover) !important;
  transform: rotate(-25deg) scale(1.05) !important;
}