:root {
    --Accent-Default: #00B1BA;
    --Text-Dark: #292A2A;
    --Text-Dark-Gray: #878D91;
    --BG-Gray: #F3F4F5;
    --Gray: #DEE2E3;
    --White: white;
    --Red: #D92A22;
}

.bx-basket {
    font-family: 'Inter', sans-serif !important;
}

/* Блок авторизации */
.auth-no-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--BG-Gray);
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 24px;
}
.auth-no-content { display: flex; flex-direction: column; gap: 4px; }
.auth-no-title { font-size: 16px; font-weight: 600; color: var(--Text-Dark); }
.auth-no-sub { font-size: 14px; color: var(--Text-Dark-Gray); }
.btn-auth-banner {
    background: var(--Accent-Default);
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.2s;
}
.btn-auth-banner:hover { background: #00969d; color: #fff !important; }

/* Поиск */
.basket-search-group {
    display: flex;
    margin-bottom: 24px;
    height: 48px;
}
.basket-search-input {
    flex: 1;
    border: 1px solid var(--Gray);
    border-right: none;
    border-radius: 8px 0 0 8px;
    padding: 0 16px;
    font-size: 16px;
    outline: none;
    box-shadow: none;
    transition: border-color 0.2s;
}
/* Убираем синюю рамку Bootstrap при клике (фокусе) */
.basket-search-input:focus {
    border-color: var(--Accent-Default) !important;
    box-shadow: none !important;
    outline: none !important;
}
.basket-search-btn {
    width: 48px;
    background: var(--White);
    border: 1px solid var(--Gray);
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    outline: none;
}
.basket-search-btn:focus, .basket-search-btn:active {
    box-shadow: none !important;
    outline: none !important;
}

/* Список товаров */
.basket-items-list-wrapper {
    border: 1px solid var(--Gray) !important;
    border-radius: 12px !important;
    background: #fff !important;
    padding: 8px 16px !important;
}
.basket-items-list-header {
    border-bottom: 1px solid var(--Gray) !important;
    padding: 16px 0 !important;
    margin-bottom: 0 !important;
}
.basket-items-list-header-filter-item {
    color: var(--Text-Dark) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
}
.basket-items-list-header-filter-item.active {
    background: var(--BG-Gray) !important;
    color: var(--Accent-Default) !important;
}

/* Карточка товара в таблице */
.basket-items-list-table > li {
    border-bottom: 1px solid var(--BG-Gray) !important;
    padding: 20px 0 !important;
    align-items: center !important;
}
.basket-items-list-table > li:last-child { border-bottom: none !important; }

.basket-item-info-name a {
    color: var(--Text-Dark) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}
.basket-item-info-name a:hover { color: var(--Accent-Default) !important; }
.basket-item-property-name { color: var(--Text-Dark-Gray) !important; font-size: 14px !important; }
.basket-item-property-value { color: var(--Text-Dark) !important; font-size: 14px !important; font-weight: 500 !important; }

/* Цена */
.basket-item-price {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important; /* Прижимаем к правому краю */
    gap: 4px !important;
}

.basket-item-price-current-text {
    color: var(--Text-Dark) !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
}

/* Сбрасываем абсолютное позиционирование Битрикса */
.basket-item-price-old {
    position: static !important; 
    top: auto !important;
    right: auto !important;
    display: block !important;
    line-height: 1.2 !important;
}

.basket-item-price-old-text {
    color: var(--Text-Dark-Gray) !important;
    font-size: 14px !important;
    text-decoration: line-through !important;
    display: block !important;
}

/* Управление количеством */
.basket-item-amount {
    border: 1px solid var(--Gray) !important;
    border-radius: 8px !important;
    overflow: hidden;
    height: 40px !important;
}
.basket-item-amount-btn-minus, .basket-item-amount-btn-plus {
    background: var(--White) !important;
    color: var(--Text-Dark) !important;
    width: 36px !important;
    height: 38px !important;
    font-size: 18px !important;
}
.basket-item-amount-btn-minus:hover, .basket-item-amount-btn-plus:hover {
    background: var(--BG-Gray) !important;
}
.basket-item-amount-input {
    border: none !important;
    border-left: 1px solid var(--Gray) !important;
    border-right: 1px solid var(--Gray) !important;
    color: var(--Text-Dark) !important;
    font-weight: 600 !important;
    height: 38px !important;
}

/* Иконки действий (удалить, отложить) */
.basket-item-actions-remove, .basket-item-actions-delay {
    color: var(--Text-Dark-Gray) !important;
}
.basket-item-actions-remove:hover { color: var(--Red) !important; }

/* Блок Итого */
.basket-checkout-section {
    background: #fff;
    border: 1px solid var(--Gray);
    border-radius: 12px;
    padding: 24px;
}
.basket-checkout-section .basket-checkout-title {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: var(--Text-Dark) !important;
    margin-bottom: 20px !important;
}
.basket-checkout-section .basket-coupon-section {
    margin-bottom: 20px !important;
}
.basket-checkout-section .basket-coupon-input {
    border: 1px solid var(--Gray) !important;
    border-radius: 8px !important;
    height: 40px !important;
}
.basket-checkout-section .basket-coupon-btn {
    background: var(--BG-Gray) !important;
    color: var(--Text-Dark) !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
}
.basket-checkout-section .basket-coupon-btn:hover { background: var(--Gray) !important; }

.basket-checkout-result {
    border-top: 1px solid var(--Gray);
    padding-top: 20px;
    margin-top: 20px;
}
.basket-checkout-result-row { margin-bottom: 12px !important; }
.basket-checkout-result-row-name { color: var(--Text-Dark-Gray) !important; font-size: 14px !important; }
.basket-checkout-result-row-value { color: var(--Text-Dark) !important; font-size: 16px !important; font-weight: 500 !important; }

.basket-checkout-result-total-name { color: var(--Text-Dark) !important; font-size: 16px !important; font-weight: 600 !important; }
.basket-checkout-result-total-value { color: var(--Text-Dark) !important; font-size: 24px !important; font-weight: 600 !important; }

/* Кнопка оформить */
.basket-btn-checkout {
    background: var(--Accent-Default) !important;
    border: none !important;
    color: #fff !important;
    width: 100% !important;
    height: 48px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    margin-top: 20px !important;
    transition: background 0.2s !important;
}
.basket-btn-checkout:hover { background: #00969d !important; }

/* === АДАПТИВ === */
@media (max-width: 991px) {
    .auth-no-banner { flex-direction: column; gap: 16px; text-align: center; }
}
@media (max-width: 767px) {
    /* На мобильных заставляем карточки товаров становиться колонками */
    .basket-items-list-table-item {
        flex-wrap: wrap !important;
    }
    .basket-item-block-info {
        width: 100% !important;
        margin-bottom: 16px !important;
    }
    .basket-item-block-price, .basket-item-block-amount {
        width: 50% !important;
        justify-content: center !important;
    }
    .basket-item-block-actions {
        width: 100% !important;
        justify-content: flex-end !important;
        margin-top: 16px !important;
    }
    .basket-item-image {
        width: 80px !important;
        height: 80px !important;
    }
}

.favorites_card.favorites_active {
  font-size: 18px;
  color: #00969d !important;
  cursor: pointer;
}
