/**
 * 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-weight: 600 !important;
}


/* === МЕГА-МЕНЮ: БАННЕР В 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-card-variation-swatches {
    margin-top: auto !important;
}

/* Для простых товаров без вариаций — actions прилипают к низу */

ul.products li.product:not(.product-type-variable) .ct-woo-card-actions {
    margin-top: auto !important;
}

/* Убираем margin-top: auto с actions, если ставили раньше */

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

/* === WC POINTS AND REWARDS === */

/* Превращаем кнопку бонусов в плоскую текстовую ссылку */

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; /* Если тема использует относительное позиционирование */
}

/* === Фон кнопки выбора ТК на странцие оформления заказа  ===*/

.woocommerce-shipping-methods input[type="radio"]:not(:checked) {
    background: #ffffff !important;
}

/* === Уведомление Woocommerce  === */

.woocommerce-store-notice {
    text-align: center !important;
    background: linear-gradient(90deg, rgba(2, 0, 36, 0.85) 0%, rgba(9, 9, 121, 0.85) 22%, rgba(0, 212, 255, 0.85) 100%) !important;
    backdrop-filter: blur(30px);
}

.woocommerce-vacation {
    background: linear-gradient(136deg, rgba(2, 0, 36, 0.85) 0%, rgba(9, 9, 121, 0.85) 22%, rgba(0, 212, 255, 0.85) 100%) !important;
}
