.p-image {
    border-radius: 0 25px 0 25px;
}

#product {
    margin: 0 !important;
}

#product article .details .shopping-details ul li {
    margin-top: 20px;
    font-size: 14px;
}

#product article .description .product-option ul li {
    font-size: 14px;
}


.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
    border-color: #aeb0b1 #484848 #fff !important;
}

#product article .gallery .gallery-top .swiper-wrapper {
    height: auto !important;
}

.call-li {
    display: none;
    width: 50%;
    margin: 25px auto;
}

.float-button nav a .item-title {
    font-size: 54%;
}

.colorlabel {
    border: none !important;
}

.colors ul {
    margin-top: 10px;
}

.colorname {
    display: none;
}

.buy-btn {
    display: none !important;
}

.colors li {
    margin: 5px !important;
}

.tab-content table {
    width: 90% !important;
}

.tab-content thead {
    background: #ffe5e5;
    text-align: center;
}

.tab-content thead tr th {
    padding: 5px !important;
}

.tab-content tbody tr td {
    padding: 5px !important;
}

.text-info {
    margin-bottom: 8px !important;
    color: darkred !important;
}

#opinion_text {
    font-size: 15px;
    border-top: none;
    border-left: none;
    border-right: none;
    padding-right: 1px;
}

.opinion-over::-webkit-scrollbar {
    display: none;
}

.modal1 {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, .8) 50% 50% no-repeat;
}

.load-icon {
    background: rgba(255, 255, 255, .8) url('https://moodykala.ir/assets/gift/loading.gif') 50% 50% no-repeat;
    height: 31px;
    width: 100%;
}

.loadback {
    background: white;
    width: 15%;
    height: fit-content;
    margin: auto;
    top: 45%;
    position: relative;
    padding: 1%;
    border-radius: 10px;
}

.opinion-over {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#opinion-detail {
    width: 79%;
}

#opinion-photo {
    width: 20%;
}

#shop_detail {
    display: none;
}

.colors input[type="radio"]:checked + .swatch {
    box-shadow: inset 0 0 0 3px white !important;
    border: 3px solid #731e1e !important;
}

.swatch {
    box-shadow: none;
}

.color_label {
    font-size: 17px !important;
    margin-left: 10px;
}

#product-main .description .activities {

    justify-content: flex-end;
    width: 50%;
}

#product-main .description .activities i:nth-child(1) {
    margin-left: 15px;
}


@media (max-width: 990px) {
    .chat-box{
        height: 100vh !important;
    }
    .modal-dialog{
        margin: 0 !important;
    }
    #product-main .description .mobile-post-activity {
        width: 100% !important;
    }

    #product-main .description .activities {
        justify-content: center !important;
    }

    #product-main .description .activities {

        justify-content: center;
        width: 50%;
    }

    #product-main .description .activities i:nth-child(1) {
        margin-left: 20px;
    }

    #product-main .description .activities i:nth-child(2) {
        margin-left: 20px;
    }

    .color_label {
        font-size: 14px !important;
        margin-left: 2px;

    }

    .swatch {
        box-shadow: 0 2px 4px 0 rgb(0 0 0 / 25%);
    }

    .colors li {
        margin: 0 !important;
    }

    #product article .description .product-color {
        margin-top: 10px !important;
        padding-bottom: 12px !important;

    }

    #product article .product-size {
        margin-top: 12px !important;
        padding-bottom: 12px !important;

    }

    #shop_detail {
        display: block;
    }

    #opinion-detail {
        width: 64%;
    }

    #opinion-photo {
        width: 35%;
    }

    .loadback {
        width: 80%;
    }

    .colors li {
        margin: 0 7px 0 0 !important;
    }

    .colorlabel {
        display: flex;
        border: 1px solid #e4d0d0 !important;
    }

    .colorname {
        display: flex !important;
        margin-right: 3px;
    }

    .overflow-phone {
        display: flex !important;
        overflow-x: auto !important;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .overflow-phone::-webkit-scrollbar {
        display: none;
    }

    #product-main .description .activities {
        justify-content: space-evenly;
    }

    #product-main .description .mobile-post-activity {
        width: 40%;
    }

    #product article .gallery .gallery-top .swiper-wrapper {
        height: auto !important;
    }

    .call-li {
        display: flex;
        justify-content: space-between;
        width: 50%
    }

    .call-btn {
        width: 42px;
        height: 42px;
        border-radius: 10px;
        display: flex;
        justify-content: center;
        cursor: pointer
    }

    .call-btn i {
        font-size: 1.714rem;
        color: #fff;
        line-height: 24px;
        margin: auto;
    }

    .buy-btn {
        display: flex !important;
    }

    #add-opinion-page #opinion_text {
        font-size: 11px;
    }

    #add-opinion-page .form {
        font-size: 14px !important;
    }

    #add-opinion-page #photo {
        font-size: 12px !important;
        padding: 0 !important;
    }
}

@media (max-width: 300px) {
    .buy-btn {
        bottom: 37px !important;
    }

    .float-button nav a .item-title {
        display: none;
    }

}




/*chat rom*/





/* Chat Area CSS Start */
.chat-area header {
    display: flex;
    align-items: center;
    padding: 18px 30px;
    position: sticky;
    top: 0;
}

.chat-area header .back-icon {
    color: #333;
    font-size: 18px;
}

.chat-area header img {
    height: 45px;
    width: 45px;
    margin: 0 15px;
}

.chat-area header .details span {
    font-size: 17px;
    font-weight: 500;
}

.chat-box {
    position: relative;
    /*min-height: 500px;*/
    /*max-height: 500px;*/
    height: 70vh;
    overflow-y: auto;
    padding: 10px 30px 20px 30px;
    background: #f7f7f7;
    box-shadow: inset 0 32px 32px -32px rgb(0 0 0 / 5%),
    inset 0 -32px 32px -32px rgb(0 0 0 / 5%);
}

.chat-box .text {
    position: absolute;
    top: 45%;
    left: 50%;
    width: calc(100% - 50px);
    text-align: center;
    transform: translate(-50%, -50%);
}

.chat-box .chat {
    margin: 15px 0;
}

.chat-box .chat p {
    word-wrap: break-word;
    padding: 8px 16px;
    box-shadow: 0 0 32px rgb(0 0 0 / 8%),
    0rem 16px 16px -16px rgb(0 0 0 / 10%);
}

.chat-box .outgoing {
    display: flex;
}

.chat-box .outgoing .details {
    margin-left: auto;
    max-width: calc(100% - 130px);
}

.outgoing .details p {
    background: #333;
    color: #fff;
    border-radius: 18px 18px 0 18px;
}
.chat-box  .details{
    text-align: right;
}

.chat-box .incoming {
    display: flex;
    align-items: flex-end;
    direction: ltr;
}

.chat-box .incoming img {
    height: 35px;
    width: 35px;
}

.chat-box .incoming .details {
    margin-right: auto;
    margin-left: 10px;
    max-width: calc(100% - 130px);
}

.incoming .details p {
    background: #fff;
    color: #333;
    border-radius: 18px 18px 18px 0;
}

.typing-area {
    padding: 18px 30px;
    display: flex;
    justify-content: space-between;

    background: white;
}
.area {
    position: sticky;
    bottom: 0;
    width: 100%;
}

.chat-area ::-webkit-scrollbar {
    width: 0.1em; /* عرض نوار اسکرول */
}

.chat-area ::-webkit-scrollbar-thumb {
    background-color: #eaeaea; /* رنگ قسمت قلمه نوار اسکرول */
}

.chat-area ::-webkit-scrollbar-track {
    background-color: #f7f7f7; /* رنگ پس‌زمینه نوار اسکرول */
}

.product-area {

    padding: 0.57rem 1.7rem;
    display: flex;
    justify-content: space-between;
    position: sticky;
    bottom: 0;
    background: #fff3f3;
}

.typing-area input {
    height: 45px;
    width: 100%;
    font-size: 16px;
    padding: 0 30px 5px 4px;
    border: 1px solid #e6e6e6;
    outline: none;
    border-radius: 5px 0 0 5px;

}

.typing-area button {
    color: #fff;
    width: 55px;
    border: none;
    outline: none;
    background: #333;
    font-size: 19px;
    cursor: pointer;
    opacity: 0.7;
    pointer-events: none;
    border-radius: 0 5px 5px 0;
    transition: all 0.3s ease;
}

.typing-area button.active {
    opacity: 1;
    pointer-events: auto;
}


/*2*/


#file {
    display: none;
}


.change_photo {
    position: absolute;
    top: 48%;
    right: 55px;
    transform: translateY(-50%);
    cursor: pointer;
    display: inline-block;
    font-size: 15px;
}
.modal1 {
    display: none;
    position:   fixed;
    z-index:    9999;
    top:        0;
    left:       0;
    height:     100%;
    width:      100%;
    background: rgba( 0, 0, 0, .8 )
    50% 50%
    no-repeat;
}
.load-icon{
    background: rgba( 255, 255, 255, .8 )
    url('https://moodykala.ir/assets/gift/loading.gif')
    50% 50%
    no-repeat;
    height: 31px;
    width: 100%;
}

.loadback{
    background: white;
    width: 15%;
    height: fit-content;
    margin: auto;
    top: 45%;
    position: relative;
    padding: 1%;
    border-radius: 10px;
}
#upload-progress{
    display:flex; margin: 0 auto; direction: ltr;
}
#upload-progress-text{
    margin: 5px auto auto; color: #cd0000; font-size: 15px; font-family: fantasy; width: 100%; text-align: center;
}



.perv-close-i{
    padding: 10px 16px;
    text-align: right;
    color: #ca0202;
    font-size: 22px;
    cursor: pointer;
}

.imageuploadify .imageuploadify-images-list .imageuploadify-container {

    border-radius: 50% !important;
    box-shadow: 2px 7px 8px -2px #888 !important;
}

.imageuploadify .imageuploadify-images-list .imageuploadify-container {
    margin-top: 1rem ;
}

.imageuploadify{
    min-width: unset !important;
    min-height: unset !important;
    max-width: none !important;
    margin-bottom: 20px !important;
}
.imageuploadify .imageuploadify-images-list i {
    display: block;
    font-size: 4rem;
    text-align: center;
    margin-top: 10px;
    padding-bottom: 0;
}
.imageuploadify .imageuploadify-images-list button.btn-default {
    margin: 15px auto;
}




#fullscreen-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* پس زمینه با اندازه blur */
    justify-content: center;
    align-items: center;
    z-index: 9999;

    display: none;
}

#fullscreen {
    position: relative;
    overflow: hidden;
    justify-content: center;
}

#fullscreen-image {
    max-width: 75vh;
    max-height: 75%;
    border-radius: 0 !important;

}


.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.3); /* رنگ خارجی دایره */
    border-top: 4px solid #c40000; /* رنگ دایره */
    border-radius: 50%; /* شکل گرد دایره */
    width: 30px; /* اندازه دایره */
    height: 30px; /* اندازه دایره */
    animation: spin 1s linear infinite; /* انیمیشن چرخش */
    position: fixed;
    top: 50%;
    left: 50%;
    margin-top: -10px; /* نیمی از ارتفاع دایره برای توسط CSS در وسط تنظیم شده است */
    margin-left: -10px; /* نیمی از عرض دایره برای توسط CSS در وسط تنظیم شده است */
    z-index: 1000; /* اعمال لایه بالا برای نمایش در جلوی محتوا */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 990px) {
    .loadback{width: 80%;}
    label {right: 15%;}
    #fullscreen-image { max-width: 100%; max-height: 100%; }
}