/* ========== УДАЛЕНИЕ КРЕСТИКОВ В КОРЗИНЕ (IMG версия) ========== */
.t706__product-del-wrapper img {
    display: none !important;
}

.t706__product-del-wrapper {
    display: none !important;
}

/* ========== ВАШИ ТЕКУЩИЕ СТИЛИ КОРЗИНЫ ========== */
.t706 .t-popup__bg,
.t706__cartwin-bg {
    background-color: rgba(0, 0, 0, 0.7) !important;
}

.t706 .t-popup__container,
.t706__cartwin-content {
    background-color: #0392FE !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    max-width: 480px;
}

@media screen and (max-width: 640px) {
    .t706 .t-popup__container,
    .t706__cartwin-content {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 16px !important;
    }
}

.t706__cartwin,
.t706__cartwin *:not(.t-submit):not(.t-submit span):not(.t-input):not(select):not(option):not(.t-input-phonemask__wrap):not(.t-input-phonemask__select):not(.t-input-phonemask__select-code){
    color: #ffffff !important;
}

.t706__cartwin .t-input-label,
.t706__cartwin .t-input-title {
    color: #ffffff !important;
}

.t706__cartwin select.t-input {
    color: #666666 !important;
    background-color: #ffffff !important;
}

.t706__cartwin select.t-input option {
    color: #333333 !important;
    background-color: #ffffff !important;
}

.t706__cartwin input::placeholder,
.t706__cartwin textarea::placeholder {
    color: #000 !important;
}

.t706__cartwin-prodamount,
.t706__cartwin-totalamount,
.t706__cartwin-prodamount-label,
.t706__cartwin-totalamount-label,
.t706__cartwin-prodamount-wrap,
.t706__cartwin-totalamount-wrap {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

/* ========== ФОН САЙТА ========== */
body, .t-body {
    margin: 0;
    min-height: 100vh;
    background-image: url('https://static.tildacdn.com/tild3766-6639-4664-a635-333463376165/photo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.page-fixed-bg {
    display: none;
}

/* ========== СТИЛИ ДЛЯ ПОЛЯ С ГАЛОЧКОЙ И ССЫЛКОЙ ========== */
#form1633635291 > div.t-form__inputsbox.t-form__inputsbox_inrow > div.t-input-group.t-input-group_cb > div.t-input-block > label > span {
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    opacity: 0.9 !important;
    display: inline-block !important;
    width: 100% !important;
}

#form1633635291 > div.t-form__inputsbox.t-form__inputsbox_inrow > div.t-input-group.t-input-group_cb > div.t-input-block > label > span > a {
    text-decoration: underline !important;
    text-decoration-color: #ffffff !important;
    text-underline-offset: 3px !important;
    text-decoration-thickness: 1.5px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    padding: 1px 2px !important;
}

#form1633635291 > div.t-form__inputsbox.t-form__inputsbox_inrow > div.t-input-group.t-input-group_cb > div.t-input-block > label > span > a:hover {
    text-decoration-color: #FFD700 !important;
    opacity: 1 !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 3px !important;
}

@media screen and (max-width: 640px) {
    #form1633635291 > div.t-form__inputsbox.t-form__inputsbox_inrow > div.t-input-group.t-input-group_cb > div.t-input-block > label > span {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }
    
    #form1633635291 > div.t-form__inputsbox.t-form__inputsbox_inrow > div.t-input-group.t-input-group_cb > div.t-input-block > label > span > a {
        text-underline-offset: 2px !important;
        text-decoration-thickness: 1px !important;
    }
}

.t-input-group_cb label span {
    font-weight: 400 !important;
    font-size: 14px !important;
}

.t-input-group_cb label span a {
    text-decoration: underline !important;
    text-decoration-color: #ffffff !important;
    font-weight: 600 !important;
}

.t-input-group_cb label span a:hover {
    text-decoration-color: #FFD700 !important;
}

/* ========== УБИРАЕМ ССЫЛКУ У НАЗВАНИЯ ТОВАРА В КОРЗИНЕ ========== */
#rec1633635291 > div > div.t706__cartwin.t706__cartwin_showed > div.t706__cartwin-content > div.t706__cartwin-products > div > div.t706__product-title.t-descr.t-descr_sm > a {
    pointer-events: none !important;
    cursor: default !important;
    text-decoration: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    opacity: 1 !important;
}

#rec1633635291 > div > div.t706__cartwin.t706__cartwin_showed > div.t706__cartwin-content > div.t706__cartwin-products > div > div.t706__product-title.t-descr.t-descr_sm > a:hover,
#rec1633635291 > div > div.t706__cartwin.t706__cartwin_showed > div.t706__cartwin-content > div.t706__cartwin-products > div > div.t706__product-title.t-descr.t-descr_sm > a:focus,
#rec1633635291 > div > div.t706__cartwin.t706__cartwin_showed > div.t706__cartwin-content > div.t706__cartwin-products > div > div.t706__product-title.t-descr.t-descr_sm > a:active {
    color: #ffffff !important;
    text-decoration: none !important;
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
}

.t706__product-title a,
.t706__product-title.t-descr.t-descr_sm a,
.t706__cartwin-products > div > div.t706__product-title a {
    pointer-events: none !important;
    cursor: default !important;
    text-decoration: none !important;
    color: #ffffff !important;
}

.t706__product-title a:hover,
.t706__product-title.t-descr.t-descr_sm a:hover {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* ========== СТИЛИ ДЛЯ ОШИБОК В ФОРМЕ КОРЗИНЫ ========== */
/* Основные стили ошибок в корзине */
.t706__cartwin .t-form__errorbox-wrapper,
.t706__cartwin .t-form__errorbox-text {
    background-color: #DC169A !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    border: none !important;
    padding: 12px 16px !important;
    font-weight: 500 !important;
    box-shadow: 0 4px 12px rgba(220, 22, 154, 0.2) !important;
    margin: 10px 0 !important;
}

.t706__cartwin .t-input-error,
.t706__cartwin .t-checkbox__error,
.t706__cartwin .t-radio__error {
    color: #DC169A !important;
    font-weight: 500 !important;
    margin-top: 4px !important;
    font-size: 13px !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transition: opacity 0.5s ease !important;
}

.t706__cartwin .t-input.t-input_error {
    border-color: #DC169A !important;
    border-radius: 8px !important;
    box-shadow: 0 0 0 1px rgba(220, 22, 154, 0.2) !important;
    transition: border-color 0.5s ease !important;
}

.t706__cartwin .t-input__erroricon {
    background-color: #DC169A !important;
    border-radius: 50% !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transition: opacity 0.5s ease !important;
}

.t706__cartwin .t-input__erroricon:before {
    color: #ffffff !important;
}

/* Ошибки в чекбоксах и радиокнопках внутри корзины */
.t706__cartwin .t-checkbox__wrapper.t-checkbox_error .t-checkbox__indicator,
.t706__cartwin .t-radio__wrapper.t-radio_error .t-radio__indicator {
    border-color: #DC169A !important;
    border-radius: 4px !important;
}

/* Анимация появления ошибок в корзине */
.t706__cartwin .t-form__errorbox-wrapper {
    animation: errorFadeIn 0.3s ease-out !important;
}

@keyframes errorFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптация для мобильных */
@media screen and (max-width: 640px) {
    .t706__cartwin .t-form__errorbox-wrapper,
    .t706__cartwin .t-form__errorbox-text {
        border-radius: 8px !important;
        padding: 10px 14px !important;
        font-size: 14px !important;
    }
    
    .t706__cartwin .t-input-error {
        font-size: 12px !important;
    }
}

/* Убираем красную рамку при валидном вводе */
.t706__cartwin .t-input.t-input_error:valid {
    border-color: #0392FE !important;
    box-shadow: none !important;
    transition: border-color 0.3s ease !important;
}

/* Быстрое скрытие иконки и текста ошибки */
.t706__cartwin .t-input_error:valid ~ .t-input__erroricon,
.t706__cartwin .t-input_error:valid ~ .t-input-error {
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

/* Для радиокнопок в корзине */
.t706__cartwin .t-radio__wrapper.t-radio_error:has(input[type="radio"]:checked) {
    border-color: transparent !important;
}

.t706__cartwin .t-radio__wrapper.t-radio_error:has(input[type="radio"]:checked) .t-radio__error {
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

/* Для чекбоксов в корзине */
.t706__cartwin .t-checkbox__wrapper.t-checkbox_error:has(input[type="checkbox"]:checked) {
    border-color: transparent !important;
}

.t706__cartwin .t-checkbox__wrapper.t-checkbox_error:has(input[type="checkbox"]:checked) .t-checkbox__error {
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

/* ========== СТИЛИ ДЛЯ ОШИБОК ФОРМЫ BF502N (ОТЗЫВЫ) ========== */
/* Основной блок с ошибкой в форме отзывов */
.t-form__errorbox-wrapper:not(.t706__cartwin .t-form__errorbox-wrapper),
.t-form__errorbox-text:not(.t706__cartwin .t-form__errorbox-text) {
    background-color: #DC169A !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    border: none !important;
    padding: 12px 16px !important;
    font-weight: 500 !important;
    box-shadow: 0 4px 12px rgba(220, 22, 154, 0.2) !important;
    margin: 10px 0 !important;
}

/* Текст ошибки под полями в форме отзывов */
.t-input-error:not(.t706__cartwin .t-input-error),
.t-checkbox__error:not(.t706__cartwin .t-checkbox__error),
.t-radio__error:not(.t706__cartwin .t-radio__error) {
    color: #DC169A !important;
    font-weight: 500 !important;
    margin-top: 4px !important;
    font-size: 13px !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transition: opacity 0.5s ease !important;
}

/* Ошибка в полях ввода в форме отзывов */
.t-input.t-input_error:not(.t706__cartwin .t-input.t-input_error) {
    border-color: #DC169A !important;
    border-radius: 8px !important;
    box-shadow: 0 0 0 1px rgba(220, 22, 154, 0.2) !important;
    transition: border-color 0.5s ease !important;
}

/* Иконка ошибки в форме отзывов */
.t-input__erroricon:not(.t706__cartwin .t-input__erroricon) {
    background-color: #DC169A !important;
    border-radius: 50% !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transition: opacity 0.5s ease !important;
}

.t-input__erroricon:not(.t706__cartwin .t-input__erroricon):before {
    color: #ffffff !important;
}

/* Ошибки в чекбоксах и радиокнопках в форме отзывов */
.t-checkbox__wrapper.t-checkbox_error:not(.t706__cartwin .t-checkbox__wrapper) .t-checkbox__indicator,
.t-radio__wrapper.t-radio_error:not(.t706__cartwin .t-radio__wrapper) .t-radio__indicator {
    border-color: #DC169A !important;
    border-radius: 4px !important;
}

/* Анимация появления ошибок в форме отзывов */
.t-form__errorbox-wrapper:not(.t706__cartwin .t-form__errorbox-wrapper) {
    animation: errorFadeIn 0.3s ease-out !important;
}

/* Адаптация для мобильных в форме отзывов */
@media screen and (max-width: 640px) {
    .t-form__errorbox-wrapper:not(.t706__cartwin .t-form__errorbox-wrapper),
    .t-form__errorbox-text:not(.t706__cartwin .t-form__errorbox-text) {
        border-radius: 8px !important;
        padding: 10px 14px !important;
        font-size: 14px !important;
    }
    
    .t-input-error:not(.t706__cartwin .t-input-error) {
        font-size: 12px !important;
    }
}

/* Для специфичной формы отзывов (блок BF502N) */
/* Можно добавить более конкретные селекторы для формы отзывов */
.t-rec[data-record-type="502"] .t-form__errorbox-wrapper,
.t-rec[data-record-type="502"] .t-form__errorbox-text,
.t-rec[data-record-type="502"] .t-input-error,
.t-rec[data-record-type="502"] .t-input.t-input_error,
.t-rec[data-record-type="502"] .t-input__erroricon,
.t-rec[data-record-type="502"] .t-checkbox__wrapper.t-checkbox_error .t-checkbox__indicator,
.t-rec[data-record-type="502"] .t-radio__wrapper.t-radio_error .t-radio__indicator {
    background-color: #DC169A !important;
    border-color: #DC169A !important;
    color: #DC169A !important;
}

.t-rec[data-record-type="502"] .t-form__errorbox-wrapper,
.t-rec[data-record-type="502"] .t-form__errorbox-text {
    background-color: #DC169A !important;
    color: #ffffff !important;
}

.t-rec[data-record-type="502"] .t-input__erroricon {
    background-color: #DC169A !important;
}

.t-rec[data-record-type="502"] .t-input__erroricon:before {
    color: #ffffff !important;
}