

/* Start:/local/templates/elhard/components/bitrix/sale.basket.basket/cart/style.css?178049847023308*/
/* ============================================
   ЕДИНЫЙ СТИЛЬ ДЛЯ КОРЗИНЫ (sale.basket.basket)
   Полностью приведён к стилю catalog.element
   ============================================ */

/* ----- ПЕРЕМЕННЫЕ ----- */
:root {
    --primary: #4A6B5C;
    --primary-dark: #3A5A4B;
    --primary-light: rgba(74, 107, 92, 0.1);
    --text: #1d1d1f;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --border-light: #d2d2d7;
    --bg: #ffffff;
    --bg-secondary: #f9fafb;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --radius: 16px;
    --radius-sm: 12px;
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

/* ============================================
   ИНФОРМАЦИОННЫЙ БЛОК "ЧЕСТНЫЙ ЗНАК"
   ============================================ */

.marking-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    padding: 20px 24px;
    background: var(--bg);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.marking-info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.marking-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #e0ebe4;
    color: var(--primary);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    cursor: help;
    transition: var(--transition);
}

.marking-info-icon:hover {
    background: var(--primary);
    color: #ffffff;
    transform: scale(1.05);
}

.marking-info-body {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
}

.marking-info-body p {
    margin: 0 0 10px 0;
}

.marking-info-body ul {
    margin: 8px 0 12px 20px;
    padding: 0;
}

.marking-info-body li {
    margin-bottom: 4px;
}

.marking-info-body strong {
    color: var(--primary);
}

@media (max-width: 768px) {
    .marking-info {
        padding: 16px 20px;
        margin-bottom: 20px;
    }
    .marking-info-header {
        font-size: 14px;
    }
    .marking-info-body {
        font-size: 13px;
    }
}

/* ============================================
   БЛОК ИТОГО (basket-checkout-container)
   ============================================ */

.basket-checkout-container {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-top: 24px;
}

.basket-coupon-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.basket-coupon-block-field-description {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.basket-coupon-block-field .form-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.basket-coupon-block-field input {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--bg);
    transition: var(--transition);
}

.basket-coupon-block-field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.basket-coupon-block-coupon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: linear-gradient(180deg, rgba(74, 107, 92, 0.05) 0%, var(--primary) 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 60px;
    cursor: pointer;
    transition: var(--transition-slow);
    white-space: nowrap;
    border: none;
}

.basket-coupon-block-coupon-btn:hover {
    background: linear-gradient(180deg, rgba(58, 90, 75, 0.05) 0%, var(--primary-dark) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 107, 92, 0.2);
}

.basket-coupon-block-coupon-btn:active {
    transform: translateY(0);
}

.basket-checkout-section {
    margin-bottom: 20px;
}

.basket-checkout-section-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.basket-checkout-block-total {
    flex: 2;
}

.basket-checkout-block-total-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.basket-checkout-block-total-description {
    font-size: 13px;
    color: var(--text-muted);
}

.basket-checkout-block-total-price {
    flex: 1;
    text-align: right;
}

.basket-coupon-block-total-price-old {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: line-through;
    margin-bottom: 4px;
}

.basket-coupon-block-total-price-current {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.basket-coupon-block-total-price-difference {
    font-size: 13px;
    color: #10b981;
    margin-top: 6px;
}

/* Кнопка оформления заказа — стили как у кнопки "В корзину" из catalog.element */
.basket-btn-checkout {
		display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 10px 18px;
    background: linear-gradient(180deg, rgba(74, 107, 92, 0.05) 0%, #4A6B5C 100%);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    text-decoration: none;
    text-align: center;
    margin: 0 auto;
}

.basket-btn-checkout:hover {
    background: linear-gradient(180deg, rgba(58, 90, 75, 0.05) 0%, #3A5A4B 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
    color: #fff;
}

.basket-btn-checkout:hover,
.basket-btn-checkout:active,
.basket-btn-checkout:focus,
.basket-btn-checkout:hover span,
.basket-btn-checkout:active span,
.basket-btn-checkout:focus span {
    color: #fff !important;
}

.basket-btn-checkout:active {
    transform: translateY(0);
}

.basket-btn-checkout.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.basket-coupon-alert-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.basket-coupon-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    font-size: 13px;
}

.basket-coupon-alert.text-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.basket-coupon-alert.text-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.basket-coupon-text strong {
    font-weight: 600;
    color: inherit;
}

.close-link {
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.2s;
    font-size: 12px;
}

.close-link:hover {
    color: #ef4444;
}

@media (max-width: 768px) {
    .basket-checkout-container {
        padding: 20px;
    }
    .basket-checkout-section-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    .basket-checkout-block-total,
    .basket-checkout-block-total-price {
        text-align: left;
    }
    .basket-coupon-block-total-price-current {
        font-size: 24px;
    }
    .basket-btn-checkout {
        width: 100%;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .basket-checkout-container {
        padding: 16px;
    }
    .basket-coupon-block-field .form-group {
        flex-direction: column;
        align-items: stretch;
    }
    .basket-coupon-block-coupon-btn {
        justify-content: center;
    }
    .basket-coupon-block-total-price-current {
        font-size: 22px;
    }
}

/* ============================================
   ТАБЛИЦА ТОВАРОВ В КОРЗИНЕ
   ============================================ */

.basket-items-list-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.basket-items-list-item-container {
    border-bottom: 1px solid var(--border);
    position: relative;
}
.basket-items-list-item-container:last-child {
    border-bottom: none;
}

.basket-items-list-item-descriptions {
    padding: 20px 0 20px 20px;
}

.basket-items-list-item-descriptions-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    position: relative;
		width: 100%;
}

.basket-item-block-image {
    flex-shrink: 0;
    width: 100px;
}

.basket-item-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 8px;
    transition: transform 0.2s ease;
}

.basket-item-image-link:hover .basket-item-image {
    transform: scale(1.02);
}

.basket-item-label-text {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 20px;
    text-transform: uppercase;
}

.basket-item-label-ring {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ef4444;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.basket-item-block-info {
    flex: 1;
    min-width: 200px;
}

.basket-item-info-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 8px 0;
}

.basket-item-info-name-link {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.basket-item-info-name-link:hover {
    color: var(--primary);
}

.basket-items-list-item-warning-container .alert {
    background: #fef9e6;
    border: 1px solid #f5c542;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 13px;
    color: #a06800;
    margin: 8px 0;
}

.basket-item-property {
    margin: 6px 0;
    font-size: 13px;
    color: var(--text-muted);
}
.basket-item-property-name {
    font-weight: 500;
    display: inline;
}
.basket-item-property-value {
    display: inline;
    margin-left: 6px;
}

.basket-item-scu-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
}
.basket-item-scu-item {
    cursor: pointer;
}
.basket-item-scu-item-inner {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid var(--border-light);
    transition: all 0.2s;
}
.basket-item-scu-text .basket-item-scu-item-inner {
    width: auto;
    height: auto;
    border-radius: 30px;
    background: var(--bg-secondary);
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    text-align: center;
}
.basket-item-scu-item.selected .basket-item-scu-item-inner {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-light);
}
.basket-item-scu-item.not-available {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ============================================
   БЛОК КОЛИЧЕСТВА (как в catalog.element) — исправлено
   ============================================ */

.basket-item-block-amount {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    padding: 4px;
    width: fit-content;
    margin: 0 auto;
}

/* Общие стили для кнопок */
.basket-item-amount-btn-minus,
.basket-item-amount-btn-plus {
    width: 32px;
    min-width: 32px;
    max-width: 32px;
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #d2d2d7;
    font-size: 20px;
    font-weight: 700;
    color: #4A6B5C !important;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    padding: 0;
    margin: 0;
    position: relative;
    line-height: 1;
}

.basket-item-amount-btn-plus {
    order: 3;
}

/* Добавляем минус через псевдоэлемент */
.basket-item-amount-btn-minus::before {
    content: "-";
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #4A6B5C;
    line-height: 1;
}

/* Добавляем плюс через псевдоэлемент */
.basket-item-amount-btn-plus::before {
    content: "+";
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #4A6B5C;
    line-height: 1;
}

/* Скрываем любые внутренние span или другие элементы */
.basket-item-amount-btn-minus span,
.basket-item-amount-btn-plus span,
.basket-item-amount-btn-minus svg,
.basket-item-amount-btn-plus svg {
    display: none !important;
}

.basket-item-amount-btn-minus:hover,
.basket-item-amount-btn-plus:hover {
    background: rgba(74, 107, 92, 0.1);
    color: #3A5A4B !important;
    transform: scale(1.02);
}
.basket-item-amount-btn-minus:hover::before,
.basket-item-amount-btn-plus:hover::before {
    color: var(--primary-dark);
}
.basket-item-amount-btn-minus:active,
.basket-item-amount-btn-plus:active {
    transform: scale(0.95);
}

/* Принудительный порядок: поле, потом единица измерения, потом кнопка "+" */
.basket-item-amount-filed {
    order: 1;
}
.basket-item-amount-filed-block {
    order: 1;
}

.basket-item-amount-filed {
    width: 50px;
    height: 32px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    -moz-appearance: textfield;
    appearance: textfield;
    outline: none;
}
.basket-item-amount-filed::-webkit-outer-spin-button,
.basket-item-amount-filed::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.basket-item-amount-field-description {
    font-size: 12px;
    color: #6e6e73;
    white-space: nowrap;
    order: 2; /* гарантированно после поля */
}
/* ============================================
   ЦЕНЫ, УДАЛЕНИЕ, ВОССТАНОВЛЕНИЕ
   ============================================ */

.basket-items-list-item-price,
.basket-items-list-item-price-for-one {
    text-align: right;
    vertical-align: middle;
    padding: 0 15px;
	width: 12%;
	vertical-align: middle !important;
    position: relative;
}
.basket-item-block-price {
    text-align: right;
}
.basket-item-price-old {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: line-through;
    margin-bottom: 4px;
}
.basket-item-price-current {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}
.basket-item-price-difference {
    font-size: 12px;
    color: #10b981;
    margin-top: 4px;
}
.basket-item-price-title {
    font-size: 11px;
    color: var(--text-muted);
}

/* Крестик удаления товара */
.basket-item-actions-remove {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%239ca3af" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M3 6h18M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/></svg>') no-repeat center;
    background-size: 20px;
    cursor: pointer;
    transition: opacity 0.2s;
    opacity: 0.6;
	padding: 0 50px 0 50px;
}
.basket-item-actions-remove:hover {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(42%) sepia(67%) saturate(423%) hue-rotate(95deg) brightness(92%) contrast(86%);
}

/* Сообщение об удалении товара (восстановление) */
.basket-items-list-item-notification {
    padding: 20px;
    background: var(--bg-secondary);
}
.basket-items-list-item-removed-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.basket-items-list-item-removed-block a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    margin-right: 16px;
}
.basket-items-list-item-removed-block a:hover {
    text-decoration: underline;
}
/* Крестик закрытия сообщения — без красного цвета */
.basket-items-list-item-clear-btn {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%239ca3af" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>') no-repeat center;
    background-size: 16px;
    cursor: pointer;
    transition: opacity 0.2s;
    opacity: 0.7;
    font-size: 0;
}
.basket-items-list-item-clear-btn:hover {
    opacity: 1;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%234A6B5C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>');
}
.basket-items-list-item-clear-btn span {
    display: none;
}

/* Оверлей загрузки */
.basket-items-list-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
	-webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    z-index: 2;
}

/* ============================================
	АДАПТИВНОСТЬ
   ============================================ */

@media (max-width: 768px) {
    .basket-items-list-item-descriptions-inner {
        flex-direction: column;
        gap: 12px;
    }
    .basket-item-block-image {
        width: 80px;
    }
    .basket-item-image {
        width: 80px;
        height: 80px;
    }
    .basket-items-list-item-price,
    .basket-items-list-item-amount {
        display: block;
        width: 100%;
        text-align: left;
        padding: 8px 15px;
    }
    .basket-item-block-amount {
        margin: 0;
    }
    .basket-item-block-price {
        text-align: left;
    }
    .basket-items-list-item-remove {
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .basket-items-list-item-descriptions {
        padding-left: 12px;
        padding-right: 12px;
    }
    .basket-item-info-name {
        font-size: 14px;
    }
    .basket-item-price-current {
        font-size: 16px;
    }
}

/* ============================================
   ВЫРАВНИВАНИЕ ЦЕНЫ ЗА ШТУКУ И СУММЫ (центр по вертикали)
   ============================================ */

/* 1. Убеждаемся, что ячейки центрируются по вертикали (перебиваем возможные baseline) */
.basket-items-list-item-price,
.basket-items-list-item-price-for-one {
    vertical-align: middle !important;
    position: relative;
}

/* 2. Блок с ценой за штуку — строчно-блочный, чтобы правильно позиционировать подпись */
.basket-items-list-item-price-for-one .basket-item-block-price {
    display: inline-block;
    vertical-align: middle;
    position: relative;
}

/* 3. Блок с суммой — тоже строчно-блочный, центрируется */
.basket-items-list-item-price .basket-item-block-price {
    display: inline-block;
    vertical-align: middle;
}

/* 4. Подпись «цена за 1 шт» — абсолютно под цифрой, не влияет на центрирование */
.basket-items-list-item-price-for-one .basket-item-price-title {
    position: absolute;
    top: 100%;          /* сразу под цифрой */
    right: 0;
    margin-top: 6px;    /* отступ от цифры — регулируйте */
    white-space: nowrap;
    font-size: 11px;
    color: var(--text-muted);
    text-align: right;
}

/* 5. Нижний отступ для ячейки, чтобы подпись не перекрывала следующий товар */
.basket-items-list-item-price-for-one {
    padding-bottom: 28px !important;
}

/* 6. Убираем лишний отступ у суммы (там нет подписи) */
.basket-items-list-item-price {
    padding-bottom: 0 !important;
}

/* 7. На мобильных устройствах — упрощаем верстку */
@media (max-width: 768px) {
    .basket-items-list-item-price-for-one {
        padding-bottom: 0 !important;
    }
    .basket-items-list-item-price-for-one .basket-item-price-title {
        position: static;
        margin-top: 2px;
        text-align: left;
    }
    .basket-items-list-item-price-for-one .basket-item-block-price {
        display: block;
        text-align: left;
    }
}

/* ============================================
   ПУСТАЯ КОРЗИНА
   ============================================ */

.bx-sbb-empty-cart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 24px 0;
}

.bx-sbb-empty-cart-image {
    margin-bottom: 24px;
}

.bx-sbb-empty-cart-image img {
    width: 120px;
    height: auto;
    opacity: 0.7;
}

/* Если изображение не задано — можно добавить иконку через псевдоэлемент */
.bx-sbb-empty-cart-image:not(:has(img))::before {
    content: "🛒";
    font-size: 80px;
    opacity: 0.5;
    display: inline-block;
}

.bx-sbb-empty-cart-text {
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

.bx-sbb-empty-cart-desc {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.5;
}

.bx-sbb-empty-cart-desc a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px dashed var(--primary-light);
    transition: var(--transition);
}

.bx-sbb-empty-cart-desc a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
}

/* Адаптивность */
@media (max-width: 768px) {
    .bx-sbb-empty-cart-container {
        padding: 40px 20px;
    }
    .bx-sbb-empty-cart-text {
        font-size: 20px;
    }
    .bx-sbb-empty-cart-desc {
        font-size: 14px;
    }
    .bx-sbb-empty-cart-image img {
        width: 90px;
    }
    .bx-sbb-empty-cart-image:not(:has(img))::before {
        font-size: 60px;
    }
}

@media (max-width: 480px) {
    .bx-sbb-empty-cart-container {
        padding: 32px 16px;
    }
    .bx-sbb-empty-cart-text {
        font-size: 18px;
    }
}
/* End */
/* /local/templates/elhard/components/bitrix/sale.basket.basket/cart/style.css?178049847023308 */
