@media (max-width: 991px) {
    .one_click_buy_frame {
        margin: auto!important;
        left: 10px !important;
        right: 10px !important;
    }
}

#sp-inline-rating-container {
    padding-left: 15px;
    margin-bottom: 8px;
}

#yandex-split {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
}

.sp-reviews-hidden {
    display: none;
}

@media(max-width: 767px) {
    .catalog_detail .tab-pane #sp-reviews-container {
        display:none !important;
    }

    .catalog_detail .tab-pane.active #sp-reviews-container {
        display:block !important;
    }
}

/* Контейнер иконок акций на детальной */
.catalog_detail .actions_props_detail {
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 8px;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    max-width: 300px;
}

/* Элемент акции */
.catalog_detail .actions_props_detail .action-item {
    display: inline-flex;
    align-items: center;
    padding: 3px 5px;
    background: hsl(0, 100%, 70%);
    border-radius: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    height: 28px;
}

/* Иконка акции */
.catalog_detail .actions_props_detail .action-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-right: 4px;
}

.catalog_detail .actions_props_detail .action-icon img{
    width: 20px;
    height: 20px;
    vertical-align: top;
    filter: brightness(0) invert(1);
}

/* Текст акции */
.catalog_detail .actions_props_detail .action-text {
    font-size: 13px;
    color: white;
    font-weight: bold;
    white-space: nowrap; /* Текст в одну строку */
    overflow: visible;
    text-overflow: ellipsis; /* Многоточие при переполнении */
    max-width: calc(100% - 30px); /* 22px иконка + 8px отступ */
}

.catalog_detail .actions_props_detail .action-text .action-text-link {
    cursor: pointer;
    color: white;
    font-weight: bold;
}

/* Для многострочного текста при необходимости */
.catalog_detail .actions_props_detail .action-item.multiline .action-text {
    white-space: normal;
    word-break: break-word;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .catalog_detail .actions_props_detail {
        margin: 20px 10px;
        max-width: 100%;
    }
    
    .catalog_detail .actions_props_detail .action-text {
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
        font-size: 11px;
        line-height: 10px;
    }
    
    .catalog_detail .actions_props_detail .action-item {
        height: 22px;
        max-width: 100%;
        padding: 2px 5px;
    }

    .catalog_detail .actions_props_detail .action-icon {
        flex-shrink: 0;
        width: 12px;
        height: 12px;
        margin-right: 4px;
    }

    .catalog_detail .actions_props_detail .action-icon img{
        vertical-align: top;
        width: 16px;
        height: 16px;
    }

    .catalog_detail .actions_props_detail .action-text .action-text-link {
        text-decoration: underline;
    }
}

.catalog_detail .actions_props_detail .action-text .action-text-link:hover {
    text-decoration: underline;
}

.info_item .top_info .rows_block .wish_block{
    padding-left: 6px;
}

.info_item .top_info .rows_block .wish_item.text{
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    height: 34px;
}

.info_item .top_info .rows_block .wish_item.text > div {
    border-radius: 100%;
    overflow: hidden;
    margin: 0px 0px 5px;
}

.info_item .top_info .rows_block .wish_item.text .value.added i {
    border-radius: 100%;
}
.info_item .top_info .rows_block .wish_item.text.added i {
    background-position: 5px -44px;
}
.info_item .top_info .rows_block .wish_item.text span i {
    width: auto;
    height: 34px;
    background-image: none;
    position: relative;
}
.info_item .top_info .rows_block .wish_item.text i {
    background-position: 5px -16px;
}
.info_item .top_info .rows_block .wish_item.text span i {
    width: 34px;
    height: 34px;
    display: block;
    /*background: url(/local/templates/aspro_tires2/css/../images/svg/icons_wish.svg) 0px 0px no-repeat;*/
    background-image: none;
}

.info_item .top_info .rows_block .wish_item.text.added i:before, .info_item .top_info .rows_block .wish_item.text.added:hover i:before {
    background-position: 5px -44px;
}
.info_item .top_info .rows_block .wish_item.text i:before {
    background-position: 5px -16px;
}
.info_item .top_info .rows_block .wish_item.text span i:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -15px 0px 0px -15px;
    width: 30px;
    height: 30px;
    background: url(/local/templates/aspro_tires2/css/../images/svg/icons_wish.svg) 5px -16px no-repeat;
}

.info_item .top_info .rows_block .wish_item {
    opacity: 1;
    visibility: visible;
    font-size: 13px;
    color: #b6b5b5;
}

.info_item .top_info .rows_block .wish_item:hover {
    cursor: pointer;
    color: #BD1C3C;
    border-radius: 100%;
    filter: 
        brightness(0) 
        saturate(100%) 
        invert(16%) 
        sepia(89%) 
        saturate(4213%) 
        hue-rotate(349deg) 
        brightness(89%) 
        contrast(101%);
}

.info_item .top_info .rows_block .wish_item.added {
    opacity: 1;
    visibility: visible;
    color: #BD1C3C;
    filter: 
        brightness(0) 
        saturate(100%) 
        invert(16%) 
        sepia(89%) 
        saturate(4213%) 
        hue-rotate(349deg) 
        brightness(89%) 
        contrast(101%);
}

.info_item .top_info .rows_block .wish_item .value.text {
    display: block;
    color: #666;
    font-size: 13px;
    line-height: 18px;
}

/* Ограничение размеров контейнера видео */
@media (max-width: 600px) {
    .catalog_detail .video {
        position: relative;
        overflow: hidden;
        width: 100%;
        aspect-ratio: 16/9; /* Сохраняем пропорции видео */
    }
    
    /* Стили для iframe */
    .catalog_detail .video iframe {
        width: 100%;
        height: 100%;
        display: block;
        border: none;
    }
    
    /* Скрытие скроллов внутри iframe */
    .catalog_detail .video iframe body {
        overflow: hidden !important;
    }
}