.view_advert h1 {font-size:24px; margin-bottom:16px}
.view_advert


.left {text-align: left}
.flex-column > div {flex-direction: column}
.confirm_str {padding:0 0 10px 0}

.block {
    display: none;
    padding: 15px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.block.active {
    display: block;
}

.radio-group {
    margin-bottom: 15px;
}

.radio-group label {
    margin-right: 15px;
    cursor: pointer;
}

/* Редактирование */

.photo_box {
    display: flex;
    justify-content: space-between;
    align-content: flex-start;
    flex-wrap: wrap;
    gap: 10px; /* Расстояние между картинками */
}

.img_preview {width:30%; flex-shrink: 0}

.img_preview .img_box {width:100%}
.img_buttons {text-align:center}


/*  Просмотр своего  */

.check_contact_email {max-width:300px}
.check_contact_email input {margin:0 0 10px 0}
.alert-warning .check_contact_email input[type="submit"] {
    background: #58b728; color:#fff; border-radius: 10px; font-size:14px; border:none; cursor:pointer; padding:10px 15px;
}

.view_advert {
    position: relative;
}

.view_advert .adv_status {
    margin: 0 0 1em 0;
}

.view_advert .adv_status span {
    display: inline-block;
    border-radius: 5px;
    padding: 5px 10px;
}

.adv_status .nopublic {background: #787878; color:#fff}
.adv_status .active {background: #58b728; color:#fff}
.adv_status .moderation {background: #da7003; color:#fff}
.adv_status .waiting {background: orange; color:#000}
.adv_status .blocked {background: red; color:#fff}

.view_advert .img_box {
    margin:0 0 2em 0;
    position: relative;
    width:100%;
}

.view_advert .advert_desc {
    width: 100%;
}

.edit-buttons {
    margin: 0 0 1em 0;
}

.edit-buttons a {
    margin:0 10px 0 0;
}

.view_advert .advert_price {
    margin: 0 0 1em 0;
    font-size:22px;
    font-weight: bold;
}

.advert {
    display:flex;
    margin:0 0 2em 0;
    background: #fff;
    padding: 1em;
    border-radius: 10px;
}

.img_box {
    width:30%;
    margin:0 5% 0 0;
}

.img_box_inner {
    border-radius: 10px;
    overflow: hidden;
}

.img_box.view .img_box_inner {
    position: relative;
}

.advert_desc {
    width:45%;
}

.advert_desc .advert_contact {
    width: 100%;
    text-align: left;
}

.advert_desc h4 {
    font-size: 22px;
    line-height: 1.3;
}

.advert_desc h4 a {
    text-decoration: none;
    color:#555;
}

.advert_desc h4 a:hover {
    color:#0e90d2;
}

.advert_contact {
    width: 25%;
}

.advert_cat_menu {
    background: #daeeff;
    margin:0 0 1em 0;
    padding:0.5em 0;
}

.advert_cat_menu ul {
    display: flex;
    flex-wrap: wrap;
    padding:0 10px;
}

.advert_cat_menu li {
    flex-direction: row;
    list-style:none; 
    padding:10px;
}

.advert_cat_menu li.active a {
    font-weight: bold;
}

.alert-warning {
    width:100%;
    margin:2em auto;
    padding:20px;
    background: #ffe6c1;
}

.alert-warning input[type="text"] {
    font-size:24px;
    width:300px;
}

.alert-warning input[type="submit"] {
    font-size:20px;
    display: block;
    cursor: pointer;
}

.action_buttons, .advert_contact {
    text-align: center;
}

.action_buttons .show-phone, .contact_box .show-phone {
    display: inline-block;
    background: #0e90d2;
    border-radius: 5px;
    padding:6px;
    color:#fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.action_buttons .send_mess {
    display: inline-block;
    background: #0ad837;
    border-radius: 5px;
    padding:5px;
    color:#fff;
    border: none;
    cursor: pointer;
    font-size: 12px;
    margin-top: 1em;
    text-decoration: none;
}

/*  Просмотр общей страницы объявления */

.row_advert {
    display: flex;
    flex-direction: row
}

.view_advert .img_box.view {
    margin:0 4% 2em 0;
    position: relative;
    width:48%;
}

.advert_desc.view {
    width:48%;
}

/* Icons */

.info_icons {
    margin: 2em 0 0 0;
}

.advert_contact .svg {
    width: 24px;
    height: 24px;
}

.advert_contact span {
    padding: 0 10px 0 0;
    font-size:14px
}

.fav-btn {
    border: none;
    background: none;
    padding: 0;
}

.fav-btn.is-favorited .like_icon {
    fill:red;
}

.fav-btn .like_icon {
    color: #e53e3e; /* Красный цвет */
}

.hits_icon {
    color: #000;
}

.size-6 {
    width: 24px;
    height: 24px;
}

/* Slider */

swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #444;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-wrapper {
    align-items: center;
}

.img_box .swiper-pagination {color:#fff;}


.swiper-button-prev,
.swiper-button-next {
    display: none;
}

.product-swiper.is-fullscreen .swiper-button-prev,
.product-swiper.is-fullscreen .swiper-button-next,
.product-swiper.is-fullscreen .swiper-close {
    display: block;
}

/* Кнопка всегда поверх */

.fs-close {
    position: fixed;
    top: 15px;
    right: 20px;
    font-size: 36px;
    background: none;
    border: 0;
    color: #fff;
    cursor: pointer;

    z-index: 2147483647;
    display: block;
}

.product-swiper.is-fullscreen .fs-close {
    display: block;
}




/* Slider */


@media screen and (max-width: 480px),
only screen and (max-device-width:480px) {

    .alert-warning {width:100%}

    .advert {flex-direction: column}

    .img_box, .advert_desc, .advert_contact {
        width:100%;
        margin:0 0 1em 0;
    }

    .row_advert {flex-direction: column}


}