/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/

.wp-block-buttons-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.wp-block-buttons-flex >div{
	width:100%;
}
.wc-block-cart__submit {
	margin:0;
}


.wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained {
  display: none;
}
.wp-block-buttons-flex .wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained {
  display: flex;
}

.wp-block-buttons-flex .wp-block-button__link {
  background-color: #fff;
  border-radius: 200px;
  border: 1px solid #000;
  color: #000;
}


#mrkv_ua_shipping_nova-poshta_city_label_field {
  display: none;
}
#mrkv_ua_shipping_nova-poshta_city_ref_field,#mrkv_ua_shipping_nova-poshta_address_city_label_field, #mrkv_ua_shipping_nova-poshta_address_city_ref_field, #mrkv_ua_shipping_nova-poshta_address_area_name_field, #ship-to-different-address {
  display: none;
}

/* ============================================
   НАШІ ПАРТНЕРИ
   ============================================ */

.sulugunko-partners {
    background: #fff;
    padding: 56px 20px;
    text-align: center;
    border-top: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
}

.sp-inner {
    max-width: 900px;
    margin: 0 auto;
}

.sp-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #aaa;
    margin: 0 0 36px;
}

.sp-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 52px;
    flex-wrap: wrap;
}

.sp-item {
    display: flex;
    align-items: center;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: opacity 0.25s ease, filter 0.25s ease;
    text-decoration: none;
}

.sp-item:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.sp-item svg {
    height: 38px;
    width: auto;
    display: block;
}

@media (max-width: 600px) {
    .sulugunko-partners { padding: 40px 20px; }
    .sp-grid { gap: 32px; }
    .sp-item svg { height: 28px; }
}

/* ============================================
   NOVA POSHTA CHECKOUT — ВИПРАВЛЕННЯ ВЕРСТКИ
   ============================================ */

/* Плагін встановлює height: 28px, тема Salient очікує 48px.
   Перевизначаємо для полів Nova Poshta. */
.mrkv_ua_shipping_checkout_fields .select2-container,
.mrkv_ua_shipping_checkout_fields .select2-container--default {
    display: block !important;
    width: 100% !important;
}

.mrkv_ua_shipping_checkout_fields .select2-container .select2-selection--single,
.mrkv_ua_shipping_checkout_fields .select2-container--default .select2-selection--single {
    height: 48px !important;
    line-height: 48px !important;
    border: 1px solid #ccc !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
}

.mrkv_ua_shipping_checkout_fields .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 48px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.mrkv_ua_shipping_checkout_fields .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    top: 1px !important;
}

/* Резервуємо місце під поле відділення щоб не стрибала сторінка під час завантаження */
#mrkv_ua_shipping_nova-poshta_warehouse_field .select2-container,
#mrkv_ua_shipping_nova-poshta_poshtamat_name_field .select2-container {
    min-height: 48px;
}

/* Стан завантаження — плавне затемнення замість стрибка */
.mrkv-ua-shipping-loading + .select2 .select2-selection--single {
    opacity: 0.5;
    pointer-events: none;
    background-color: #f9f9f9 !important;
    background-image: none !important;
    transition: opacity 0.15s ease;
}

/* Прибираємо анімований gif і робимо CSS-спінер */
.mrkv-ua-shipping-loading + .select2 .select2-selection--single::after {
    content: '';
    display: block;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-top-color: #555;
    border-radius: 50%;
    animation: np-spin 0.7s linear infinite;
}

@keyframes np-spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* Поле відділення — запобігаємо стрибку коли з'являється */
.mrkv_ua_shipping_checkout_fields {
    contain: layout;
}

/* ============================================
   MOBILE PERFORMANCE
   ============================================ */

/* content-visibility: auto — браузер пропускає рендеринг
   off-screen секцій. Найбільший ефект на довгих сторінках. */
@media (max-width: 768px) {
    .wpb_row:not(:first-child),
    .vc_row:not(:first-child),
    .sulugunko-partners,
    footer#footer-outer {
        content-visibility: auto;
        contain-intrinsic-size: auto 300px;
    }

    /* Прибираємо важкі box-shadow на мобілці де вони непомітні */
    .nectar-button,
    .woocommerce .button,
    .wc-block-components-button {
        box-shadow: none !important;
    }

    /* Відключаємо плавні hover-переходи (на мобілці hover не потрібен) */
    .sp-item,
    a,
    button {
        transition: none !important;
    }

    /* Зменшуємо розмір зображень у каталозі на мобілці */
    .woocommerce ul.products li.product .woocommerce-loop-product__link img {
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }
}

/* Touch-friendly розміри кнопок */
@media (max-width: 768px) {
    .woocommerce a.button,
    .woocommerce button.button,
    .woocommerce input.button,
    .wc-block-components-button,
    .nectar-button {
        min-height: 48px;
        min-width: 48px;
    }

  h1 {
    font-size: 27px;
    line-height: 40px;
    margin-bottom: 7px;
  }

    /* Збільшуємо tap targets для посилань в меню */
    .sf-menu a,
    .mobile-menu a {
        padding-top: 12px;
        padding-bottom: 12px;
    }
}
.wc-block-components-totals-shipping {display:none!important}

@media (min-width: 768px) {
	.slide-out-widget-area-toggle{display:none!important}
	
	#top #logo  img{max-width: 64%;}
}










