

/* Start:/local/components/custom/chart/templates/main/style.css?177814373814878*/
.modal-block {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-add-comparison {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 900px;
    max-height: 80vh;
    display: flex;   
	gap: 10px !important;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-add-comparison .modal-title {
    color: #282319;
}

.modal-add-comparison .modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.modal-add-comparison .btn-cancel,.modal-add-comparison  .btn-apply {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-add-comparison .btn-cancel {
    background: #f5f5f5;
    color: #333;
}

.modal-add-comparison .btn-cancel:hover {
    background: #e0e0e0;
}

.modal-add-comparison .btn-apply {
    background: #D29C4E;
    color: white;
}

.modal-add-comparison .btn-apply:hover:not(:disabled) {
    background: #D29C4E;
}

.modal-add-comparison .btn-apply:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

/* Стили для элементов в состоянии ожидания */
.modal-add-comparison .comparison-coin-item .add-btn[data-pending-add="true"] {
    background: #4CAF50 !important;
    color: white !important;
}

.modal-add-comparison .comparison-coin-item .add-btn[data-pending-remove="true"] {
    background: #f44336 !important;
    color: white !important;
}

.add-to-basket-btn .title-descktop{
	display:inline;
}

.add-to-basket-btn .title-mobile{
	display:none;
}
.add-to-basket-btn{
	border: 0px solid #D29C4E !important;
}
.add-to-basket-btn svg { 
  flex-shrink: 0;
  width: 20px !important;
  height: 20px !important;
}
.modal-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #282319;
}

.close-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #75716A;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #282319;
}

.compare-add {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    padding: 0 32px;
}

.modal-add-comparison .search-block {
    padding: 24px 0;
    flex-shrink: 0;
	margin-bottom:20px;
}
.modal-block .search-block {
	padding: 15px 10px 3px 10px;
}
.comparison-coin-item-image {
    padding: 10px !important;
	background:transparent !important;
}
.search-element {
    width: 100%;
    display: flex;
    height: 56px;
    padding: 0 30px 0 20px;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px;
    background: #F7F7F7;
    position: relative;
}

.search-element-input {
    color: #282319;
    font-size: 22px;
    font-weight: 400;
    line-height: 140%;
    letter-spacing: -0.11px;
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
}

.search-element button {
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #282319;
    flex-shrink: 0;
}

.types-wrapper {
    margin-bottom: 24px;
    flex-shrink: 0;
}

.types-of-coins {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow: hidden;
    max-height: 80px;
    transition: max-height 0.3s ease;
}

.types-wrapper[data-open-block-wrapper="open"] .types-of-coins {
    max-height: 500px;
}

.more-types {
    color: #D29C4E;
    font-size: 14px;
    cursor: pointer;
    margin-top: 8px;
    display: inline-block;
}

.comparison-coins {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    max-height: 50vh;
}

.comparison-coin-item {
    border-radius: 8px;
    padding: 6px;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.comparison-coin-item:hover {background: #F9F9F9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.comparison-coin-item-image {
    width: 120px;
    height: 120px;
    margin-bottom: 0px;
}

.comparison-coin-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.comparison-coin-item-description {
    flex: 1;
	gap:0 !important;
    margin-bottom: 0px;
    font-size: 14px;
    color: #282319;
}

.comparison-coin-tags-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.add-btn {
    background: #D29C4E;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
	border:0px solid !important;
    transition: all 0.3s ease;
}
.comparison-coins {
    display: flex;
    flex-direction: row !important;
    flex-wrap: wrap;
	
}

.comparison-coin-item {
    display: flex;
	width: -webkit-fill-available !important;
    order: 0; /* Значение по умолчанию */
}

/* Опционально: Добавьте анимацию для плавного изменения порядка */
.comparison-coin-item {
    transition: order 0.3s ease;
}

/* Для визуального отображения релевантности можно добавить */
.comparison-coin-item[style*="order"] {
    position: relative;
}
.add-btn:hover:not(:disabled) {
    background: #c08c40;
}

.add-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Кнопки действий - ИСПРАВЛЕНО: остаются в одном ряду */
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 32px;
    border-top: 1px solid #eee;
    background: white;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.btn-apply {
    display: flex;
    height: 64px;
    padding: 0 20px;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    background: #D29C4E;
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 500;
    line-height: 130%;
    letter-spacing: -0.4px;
    width: 100%;
    cursor: pointer;
	
}

.btn-cancel {
    background: #f5f5f5;
    color: #333;
}

.btn-cancel:hover {
    background: #e0e0e0;
}



.comparison-coin-item-wrapper {
	align-items: center;
}
.changes-counter{margin-left:10px;}
.types-of-coins input[type="radio"]:checked + label.types-of-item {
	background-color: #D29C4E;
	color:white;
}
/* Адаптивность */
@media (max-width: 1024px) {
    .modal-add-comparison {
        max-width: 95%;
		padding:0 !important;
		gap:2px !important;
    }
	div[data-modal-comparison]{
		align-items: flex-start;
	}
    
	.comparison-coin-item{flex-direction: column;}
    .comparison-coins {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
	
	.price-dynamics-bottom{display:flex !important;gap: 10px !important;}
	.add-comparison{margin-left:15px!important;}
	.modal-add-comparison .close-btn {
        position: absolute;
        right: 30px;
    }
	.comparison-coin-item{
		gap: 5px !important;
	}
	.modal-add-comparison .modal-actions{margin-top:0px;}
	.add-to-basket-btn,
	.del-icon,
	.eye-icon{
		min-width: 44px !important;
		min-height: 44px !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
	}
	.del-icon{order: -1;}
	.add-to-basket-btn .title-mobile{
		display:inline !important;
	}
	.add-to-basket-btn .title-descktop{
		display:none !important;
	}
}

@media (max-width: 768px) {
    .modal-top {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .compare-add {
        padding: 0 20px;
    }
    
    .search-element {
        height: 48px;
        padding: 0 16px;
    }
    
    .search-element-input {
        font-size: 16px;
    }
    
    .search-element button {
        width: 24px;
        height: 24px;
    }
    
    .comparison-coins {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .comparison-coin-item {
        padding: 12px;
    }
    
    .comparison-coin-item-image {
        width: 100px;
        height: 100px;
    }
    
    .modal-actions {
        justify-content: space-between;
    }
    .types-of-coins{
		gap:12px;
	}
	.types-wrapper {
		overflow: auto !important;
		max-height: 129px !important;
		margin-bottom: 0px !important;
	}
	.comparison-coins{
		overflow-x:auto;
		margin-top:-30px;
	}
	.modal-block .search-block {
		
	}
	.modal-add-comparison {
		max-height:80vh !important;
    }
}

@media (max-width: 480px) {
    .modal-block {
        padding: 10px;
    }
    .price-dynamics-info{gap:3px!important;}
	.price-dynamics-info-col.right {gap:0px!important;}
	.price-dynamics-info-col{gap:5px!important;}
    .modal-add-comparison {
        max-height: 95vh;
    }
    
    .modal-top {
        padding: 16px;
    }
    
    .modal-title {
        font-size: 18px;
    }
    
    .close-btn {
        width: 24px;
        height: 24px;
    }
    
    .search-element {
        height: 44px;
    }
    
    .search-element-input {
        font-size: 14px;
    }
    
    .comparison-coins {
        grid-template-columns: repeat(2, 1fr);
        max-height: 60vh;
    }
    
    .comparison-coin-item-image {
        width: 80px;
        height: 80px;
    }
    
    .modal-actions {
        flex-direction: row; /* ИСПРАВЛЕНО: остаются в одной строке */
        gap: 8px;
        padding: 16px;
    }
    
}

@media (min-height: 800px) {
    .modal-add-comparison {
        max-height: 80vh;
    }
    
    .comparison-coins {
        max-height: 60vh;
    }
}

@media (prefers-color-scheme: dark) {
    .modal-add-comparison {
        background: #1a1a1a;
        color: #ffffff;
    }
    
    .modal-title {
        color: #ffffff;
    }
    
    .close-btn {
        color: #aaaaaa;
    }
    
    .search-element {
        background: #2a2a2a;
    }
    
    .search-element-input {
        color: #ffffff;
    }
    
    .comparison-coin-item {
        /* background: #2a2a2a; */
        color: #ffffff;
    }
    
    .btn-cancel {
        background: #333;
        color: #ffffff;
    }
}

.comparison-coins::-webkit-scrollbar {
    width: 10px;
}

.comparison-coins::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.comparison-coins::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.comparison-coins::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.comparison-coins {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

/* Для очень маленьких экранов */
@media (max-width: 360px) {
    .modal-actions {
        gap: 6px;
    }
}
/* Стили для кнопки добавления в корзину на мобильных */
@media (max-width: 768px) {
    .price-dynamics-info-col.right .add-to-basket-btn {
        padding: 8px;
        width: 40px;
        height: 40px;
        font-size: 0;
        position: relative;
        border-radius: 4px;
        color: #D29C4E;
        border: none;
        cursor: pointer;
    }
    
    

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .price-dynamics-info-col.right .add-to-basket-btn {
        width: 36px;
        height: 36px;
        padding: 6px;
    }
    .price-dynamics-info-col.right {
        display: flex;
        align-items: center;
        gap: 4px;
    }
    
    .del-icon, .eye-icon {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .del-icon svg {
        width: 10px;
        height: 10px;
    }
}

/* Стили для мобильных устройств */
@media (max-width: 768px) {
	button, 
	[data-open-modal],
	[data-close-modal],
	[data-compare-add],
	[data-finance-chart],
	.add-comparison,
	.del-icon,
	input[type="radio"] + label {
		min-height: 44px !important;
		min-width: 44px !important;
		padding: 12px 16px !important;
		cursor: pointer !important;
		-webkit-tap-highlight-color: transparent !important;
		touch-action: manipulation !important;
	}
	
	.del-icon {
		min-width: 44px !important;
		min-height: 44px !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
	}
	
	/* Увеличиваем зону клика для маленьких элементов */
	.del-icon:before {
		padding: 20px !important;
		position: relative !important;
		z-index: 1 !important;
	}
	
	/* Визуальная обратная связь при касании */
	.touch-active {
		opacity: 0.7 !important;
		transform: scale(0.98) !important;
		transition: all 0.1s ease !important;
	}
	
	/* Улучшаем отображение модальных окон на мобильных */
	[data-modal-comparison] {
		align-items: flex-start !important;
		padding-top: 20px !important;
		overflow-y: auto !important;
		-webkit-overflow-scrolling: touch !important;
	}
	
	/* Улучшаем скролл на мобильных */
	.comparison-coins {
		overflow-y: auto !important;
		-webkit-overflow-scrolling: touch !important;
		max-height: 60vh !important;
	}
	
	/* Улучшаем отображение графика на мобильных */
	#chart {
		height: 300px !important;
	}
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
	#chart {
		height: 250px !important;
	}
	
	.comparison-coins {
		max-height: 50vh !important;
	}
}
/* End */
/* /local/components/custom/chart/templates/main/style.css?177814373814878 */
