/**
 * Theme Name: tea 2.0
 * Description: pizdec
 * Author: purushin
 * Template: blocksy
 * Text Domain: blocksy
 */


.grecaptcha-badge {
  visibility: hidden;
}

.wc_points_rewards_apply_discount_custom {
        min-width: 10px !important;
        padding: 10px !important;
}


.gift-certificate-show-form {
        font-size: 14px !important;
}

/* серое изображение товаров не в наличии */

.outofstock .ct-media-container img {
    filter: grayscale(100%);
    opacity: 0.9;
}

.woo-variation-swatches .wvs-style-squared.variable-items-wrapper .variable-item:not(.radio-variable-item) {
        border-radius:0px !important;
}

.cha-price-unit {
    font-size: 0.8em;
    opacity: 0.7;
    margin-left: 4px;
    font-weight: 400;
    color: #555555;
}

/* Бэкграунды форм в корзине и оформлении заказов */
.ct-woocommerce-cart-form .cart_totals {
    background: var(--theme-palette-color-6) ;
}

.ct-order-review { 
    background: var(--theme-palette-color-6);
}

ul.wc_payment_methods.payment_methods.methods  {
    background: #ffffff;
}

.tea-footer-title a {
   color: #333333 !important;
   text-transform: uppercase !important;
   /* font-size: 13px !important; */
   font-weight: 600 !important;
}

/* === МЕГА-МЕНЮ: БАННЕР === */
/* === обязательно добавить класс ct-catalog-menu для кнопки КАТАЛОГ в меню Wordpress */

/* === МЕГА-МЕНЮ: БАННЕР В 4-й КОЛОНКЕ === */

/* Растягиваем li баннера на всю высоту и ширину колонки */
.ct-catalog-menu > .sub-menu > li:last-child {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}
/* Прокидываем размеры через обёртки WordPress и Elementor */
.ct-catalog-menu > .sub-menu > li:last-child .entry-content,
.ct-catalog-menu > .sub-menu > li:last-child .elementor {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  padding: 0 !important;
  max-width: 100% !important;
}
/* Сам контейнер баннера */
.tea-menu-banner {
  flex: 1 1 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: unset !important;
  padding: 0 !important;
  box-sizing: border-box;
}

/* === Blur для элементов Elementor'а==== */

.ct-backdrop,
.ct-backdrop-button a {
	backdrop-filter: blur(15px);
}


/* === Кнопки вариаций в каталоге === */

[data-swatches-type=button] .ct-swatch {
 	font-weight: 400 !important;
}

.ct-variation-swatches {
	gap: var(--swatches-gap, 2px) !important;
}


/* Уменьшение звездочек в карточке товара */
.ct-woo-card-rating .star-rating {
    font-size: 0.7em !important;
}

.ct-no-rating {
    visibility: hidden;
    display: block;
    width: 100%;
    text-align: center;
    font-size: 0.7em;
    line-height: 1;
    color: #868686;
}

/*
ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
}

ul.products li.product .ct-woo-card-actions {
    margin-top: auto !important;
}
*/


ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
}

/* Вариации прилипают к блоку цены снизу */
ul.products li.product .ct-card-variation-swatches {
    margin-top: auto !important;
}

/* Убираем margin-top: auto с actions, если ставили раньше */
ul.products li.product .ct-woo-card-actions {
    margin-top: 0 !important;
}

/* Превращаем кнопку бонусов в плоскую текстовую ссылку */
input[type="submit"].wc_points_rewards_apply_discount {
    /* Базовый сброс стилей кнопки */
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 0 5px !important;
    color: var(--theme-link-initial-color, #222) !important;
    text-decoration: underline !important;
    text-transform: none !important;
    font-weight: inherit !important;
    font-size: inherit !important;
    letter-spacing: normal !important;
    cursor: pointer;
    display: inline-block !important;
    vertical-align: baseline !important;
    width: auto !important;
    min-height: 0 !important;

    /* Убираем анимацию "поднятия" и любые сдвиги */
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Состояние при наведении */
input[type="submit"].wc_points_rewards_apply_discount:hover {
    text-decoration: none !important;
    background: none !important;
    color: var(--theme-link-hover-color, #111) !important;
    transform: none !important; /* На всякий случай дублируем сброс здесь */
}

/* Состояние при клике (убираем "подпрыгивание") */
input[type="submit"].wc_points_rewards_apply_discount:active,
input[type="submit"].wc_points_rewards_apply_discount:focus {
    background: none !important;
    transform: none !important; 
    box-shadow: none !important;
    outline: none !important;
    top: 0 !important; /* Если тема использует относительное позиционирование */
}
