.telegram {
    --black: #000;
    --white: #fff;
    --bg-color: #fff;
    --battery-level: rgba(0, 0, 0, 0.3);
    --header-bg: #517da2;
    --ios-header-bg: #e7e8e2;
    --light-gray: #ddd;
    --online-text: #ddd;
    --bg-white: #fff;
    --gray: #a1aab1;
    --sender-bg: #e0fdc3;
    --reciver-bg: #fff;
    --green: #67b859;
    --dark-green: #36b760;
}

.telegram.dark-theme {
    --black: #fff;
    --white: #000;
    --bg-color: #121212;
    --battery-level: rgb(255 255 255 / 30%);
    --header-bg: #242c39;
    --ios-header-bg: #2d2d2f;
    --light-gray: #87878f;
    --online-text: #017aff;
    --bg-white: #202e39;
    --gray: #919191;
    --sender-bg: #4a61fe;
    --reciver-bg: #2c2f46;
    --green: #afa7fe;
    --dark-green: #fff;
}

body.body-fixed {
    overflow: hidden;
}


.form-label.d-inline-flex {
    display: inline-flex !important;
    width: auto;
}

.edit-text i {
    margin-left: 5px;
    cursor: pointer;
}

.text-color {
    position: relative;
}

.right-part #download {
    width: 380px;
}

.right-part .modal-content {
    border: 0;
    background-color: var(--header-bg);
}

.right-part .modal-body.telegram-body::-webkit-scrollbar {
    display: none;
}

.telegram .chats-android-header-bottom .back-icon {
    background-image: url(../../images/telegram-chat-icon.png);
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
    background-size: 300px;
    background-position: -46px -10px;
}

.frame .chats-android-header-bottom.add-space {
    padding-top: 25px !important;
}

.frame .chats-iphone-header-bottom.add-space {
    padding-top: 35px;
}

.telegram .chats-android-header-bottom .modal-title .modal-title-content {
    width: 200px
}

.telegram .modal-title .telegram-content-name span.online-status {
    color: #bfd5e7;
    margin-top: -2px
}

.right-part .telegram-body {
    background-image: url(../../images/telegram-light-bg.png);
    background-repeat: no-repeat;
    background-size: cover;
    padding: 5px 20px;
    min-height: 550px;
    height: 550px;
    overflow-x: hidden;
    overflow-y: auto;
    background-position: center;
    width: 100%;
}

.right-part .telegram-body .message-received .message-container {
    margin-right: auto;
    padding-left: 0px;
    padding-right: 0;
    max-width: 80%
}

.right-part .telegram-body .message-sent .message-container .message-bubble,
.right-part .telegram-body .message-received .message-container .message-bubble {
    position: relative;
    background-color: transparent;
    border-color: transparent
}

.right-part .telegram-body .telegram-received .telegram-text {
    border-radius: 20px;
    background: var(--reciver-bg);
}

.telegram-text>.input-main-div {
    display: inline;
}

.right-part .telegram-body .telegram-meassage-time-status {
    display: inline-flex;
    float: right;
    margin: 5px 0 0 10px;
    justify-content: flex-end;
    align-items: center;
    position: absolute;
    right: 5px;
    bottom: 1px;
}

.message-sent .telegram-meassage-time-status i {
    color: var(--green);
}

.message-sent .telegram-meassage-time-status span {
    color: var(--green);
    font-size: 11px;
    /* font-weight: 600; */
    white-space: nowrap
}

.right-part .telegram-body .message-text {
    position: relative;
    padding: 5px 10px;
    z-index: 2;
}

.telegram-body .telegram-received-carat img {
    position: absolute;
    bottom: -2px;
    left: -10px;
    height: auto;
    width: 20px;
    z-index: 1;
}

.telegram-body .telegram-sent {
    padding-left: 0;
    padding-right: 0px !important;
    /* margin-left: auto; */
    /* max-width: 80% !important */
}

.telegram-body .telegram-sent .telegram-text {
    background: var(--sender-bg);
    border-radius: 20px;
    color: var(--black);
}

.telegram-body .message-received .telegram-meassage-time-status i {
    color: #a5a5a5;
}

.telegram-body .message-received .telegram-meassage-time-status span {
    color: #a5a5a5;
    font-size: 11px;
    /* font-weight: 600; */
    white-space: nowrap;
}

.telegram-body .message-status {
    display: inline-block;
    margin-left: 3px;
}

.telegram-body .message-status img {
    width: 16px
}

.telegram-body .telegram-sent-carat img {
    position: absolute;
    width: 20px;
    height: auto;
    bottom: -2px;
    top: unset;
    right: -10px;
}

.all-chats .chats-ios-header {
    display: none;
}

.all-chats .chats-android-header-bottom {
    position: relative;
    width: 100%;
    padding: 10px 14px;
    background: var(--header-bg);
    display: flex;
    align-items: center;
    z-index: 5;
}

.all-chats .chats-android-header-bottom .modal-title {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 20px;
    width: 80%;
}

.all-chats .chats-android-header-bottom .modal-title .modal-title-img img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    overflow: hidden;
}

.all-chats .chats-android-header-bottom .modal-title .modal-title-content {
    position: relative;
    padding-left: 10px;
    display: inline-block;
    vertical-align: middle;
    width: 200px;
}

.all_footer_wp {
    position: relative;
    cursor: pointer;
    z-index: 10;
}

.android-footer {
    background-color: var(--bg-white);
    padding: 10px;
}

.all_footer_wp .telegram-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.all_footer_wp .telegram-footer .ft-left-icon {
    display: flex;
    align-items: center;
    gap: 10px;
}

.all_footer_wp .telegram-footer p {
    margin: 0;
    color: var(--gray);
    font-size: 16px;
}

.all_footer_wp .telegram-footer .smile-icon {
    background-image: url(../../images/telegram-chat-icon.png);
    background-repeat: no-repeat;
    width: 30px;
    height: 30px;
    background-size: 350px;
    background-position: -138px -51px;
}

.telegram.telegram.dark-theme .all_footer_wp .telegram-footer .smile-icon {
    background-position: -182px -51px;
}

.all_footer_wp .telegram-footer .ft-right-icon {
    display: flex;
    align-items: center;
    gap: 5px;
}

.all_footer_wp .telegram-footer .ft-right-icon .pin-icon {
    background-image: url(../../images/telegram-chat-icon.png);
    background-repeat: no-repeat;
    width: 30px;
    height: 30px;
    background-size: 350px;
    background-position: -230px -50px;
}

.telegram.telegram.dark-theme .all_footer_wp .telegram-footer .ft-right-icon .pin-icon {
    background-position: -272px -50px;
}

.all_footer_wp .telegram-footer .ft-right-icon .audio-icon {
    background-image: url(../../images/telegram-chat-icon.png);
    background-repeat: no-repeat;
    width: 30px;
    height: 30px;
    background-size: 300px;
    background-position: -5px -79px;
}

.telegram.telegram.dark-theme .all_footer_wp .telegram-footer .ft-right-icon .audio-icon {
    background-position: -40px -79px;
}

.all-chats .chats-android-header-bottom .modal-title .modal-title-content span.online-status {
    font-size: 13px;
    color: #fff;
    line-height: unset;
    display: block;
    height: auto;
}

.form-element.arrow:before {
    pointer-events: none;
}

.form-element.arrow .form-control {
    cursor: pointer;
}

.insta_privew_highlight {
    width: 100%;
    height: auto;
}


/* ===================== new css start (15-04-2024) ============================ */
/* ============ android css start ============ */
.all_header_wp {
    position: relative;
    z-index: 5;
}

.telegram-chat .android-header .status-bar {
    display: flex;
    justify-content: space-between;
    padding: 8px 25px 5px;
    align-items: center;
    color: #fff;
    background-color: var(--header-bg);
}

.telegram-chat .android-header .status-bar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.show-network.n5g .data-network:not(.net5g),
.show-network.n4g .data-network:not(.net4g),
.show-network.n3g .data-network:not(.net3g),
.show-network.n2g .data-network:not(.net2g),
.show-network.nwifi .data-network:not(.wifi-network),
.wa-theme.dark-theme .show-network.nwifi .data-network:not(.wifi-network) .light {
    display: none;
}

.android-header .status-bar .battery-status {
    color: #fff;
}

.android-header .battery-container.battery-horizontal .battery {
    width: 20px;
    height: 11px;
    border-radius: 3px;
    border: 1px solid #fff;
}

.android-header .battery-container.battery-horizontal .battery::before {
    left: calc(100% + 1px);
    top: 50%;
    transform: translate(0, -50%);
    margin: 0;
    border-radius: 0 1px 1px 0;
    height: 5px;
    width: 2px;
    background-color: #fff;
}

.android-header .battery-container.battery-horizontal .battery-level {
    left: 0;
    right: unset;
    background-color: #fff;
    margin: 1px;
    border-radius: 2px;
    height: calc(100% - 2px);
    max-width: calc(100% - 2px);
}

.ios-header .battery-container.hide-percentage .battery-status,
.android-header .battery-container.hide-percentage .battery-status {
    display: none;
}

.android-header .battery-container.hide-percentage.battery-horizontal .battery {
    margin: 0;
}

.clockandtime-format {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border: 1px solid #cdcdcd;
    border-radius: 5px;
}

.clockandtime-format .form-control.time-input {
    border: none;
    height: 34px;
}

.Battery-percent-wrap {
    position: relative;
    margin-top: 0 !important;
}

.Battery-percent-wrap label {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translate(0, -50%);
    background-color: var(--white);
    z-index: 2;
}

.android-header .battery-container.battery-vertical-one .battery {
    rotate: 90deg;
    width: 14px;
    height: 10px;
    border: 0;
    background-color: rgba(200, 200, 200, 0.5);
    margin: 0 0 2px 0;
    scale: 82%;
}

.android-header .battery-container.battery-vertical-one .battery::before {
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    margin: 0;
    width: 4px;
    height: 12px;
    border-radius: 0;
    background: linear-gradient(var(--header-bg) 30%, transparent 30%, transparent 70%, var(--header-bg) 70%);
    z-index: 5;
}

.android-header .battery-level {
    background-color: #fff;
}

.android-header .battery-container.battery-vertical-two {
    display: inline-flex;
    margin: 0;
    height: 15px;
    align-items: center;
}

.android-header .battery-container.battery-vertical-two .battery-status {
    order: 2;
    margin-left: 2px;
    width: 25px;
    text-align: left;
    font-weight: bold;
}

.android-header .battery-container.battery-vertical-two .battery {
    rotate: 90deg;
    width: 12px;
    height: 8px;
    order: 1;
    margin: 0;
    padding: 0;
    display: block;
    border-width: 1.5px;
    border: 1px solid #fff;
}

.android-header .battery-container.battery-vertical-two .battery::before {
    height: 4px;
    width: 1.5px;
    left: -2.5px;
    top: 50%;
    transform: translate(0, -50%);
    border-radius: 0;
    margin: 0;
    background-color: #fff;
}

.android-user-name.input-main-div p {
    margin: 0;
    color: #fff;
    font-size: 18px;
}

.telegram-content-name .seen-time p {
    color: var(--light-gray);
    margin: 0;
}

.telegram-content-name .online-text span {
    color: var(--online-text);
}

.telegram-android-img .input-img i {
    height: 42px;
    width: 42px;
}

.header-icon .telegram-header-icon-call {
    background-image: url(../../images/telegram-chat-icon.png);
    background-repeat: no-repeat;
    width: 25px;
    height: 25px;
    background-size: 350px;
    background-position: -98px -10px;
}

.header-icon {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icon .telegram-header-icon-more {
    background-image: url(../../images/telegram-chat-icon.png);
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
    background-size: 300px;
    background-position: -118px -9px;
}

.main-time-div {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 0;
}

.main-time-div p {
    margin: 0;
    padding: 3px 10px;
    background: rgb(109 109 109 / 38%);
    border-radius: 20px;
    color: #fff;
}

.main-time-div .remove-text {
    border: 0;
    background: transparent;
    color: #b30000;
    padding: 0 5px;
    display: inline-block;
}

.message-img .tg-image .post {
    max-width: 240px;
    max-height: 240px;
    width: auto;
    height: auto;
    border-radius: 20px;
}

.tg-image {
    position: relative;
    border-radius: 20px;
}

.message-sent .tg-image.telegram-gallery-image {
    background-color: var(--sender-bg);
    padding: 1px;
}

.message-received .tg-image.telegram-gallery-image {
    background-color: var(--reciver-bg);
    padding: 1px;
}

.tg-image img+.modal-title-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.tg-image img+.modal-title-img .input-img {
    display: inline;
}

.message .post-img {
    position: relative;
    width: 280px;
    max-height: 200px;
    overflow: hidden;
    display: flex;
    border-radius: 5px;
}

.message .tg-image .telegram-post img {
    width: 100%;
    height: fit-content;
    max-width: unset;
    max-height: unset;
}

.input-main-div textarea {
    width: 100%;
    resize: none;
}

.telegram-post {
    width: 280px;
    word-wrap: break-word;
}

.post-footer {
    padding: 10px 10px 0;
}

.post-header {
    padding: 0 10px 10px;
}

.message-sent .post-header p {
    color: var(--dark-green) !important;
}

.post-header p {
    margin: 0;
}

.forward_from {
    display: flex;
    align-items: center;
    gap: 5px;
}

.message-sent .forward_from i {
    color: var(--dark-green) !important;
}

.message-sent .forward_from span {
    color: var(--dark-green) !important;
    font-weight: 600;
}

.post-footer span {
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
}

.message-sent .share-image {
    display: none;
}

.telegram-chat.iphone .message-received .share-image {
    display: none;
}

.message-received .share-image .android-share {
    background-image: url(../../images/telegram-chat-icon.png);
    background-repeat: no-repeat;
    width: 30px;
    height: 30px;
    background-size: 350px;
    background-position: -269px -9px;
}

.message-received .share-image {
    display: block;
    position: absolute;
    bottom: 15px;
    right: -50px;
    background: rgb(153 168 148 / 31%);
    padding: 5px;
    border-radius: 50%;
}

.video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgb(32 32 32 / 60%);
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.video-icon .video {
    background-image: url(../../images/telegram-chat-icon.png);
    background-repeat: no-repeat;
    width: 50px;
    height: 50px;
    background-size: 450px;
    background-position: -285px -5px;
}

.telegram-gallery-image .download_opt {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 5px;
    left: 5px;
    width: 100%;
}

.option_down p {
    margin: 0;
    line-height: unset;
    color: #fff;
    font-size: 12px;
}

.option_down {
    background-color: rgb(32 32 32 / 60%);
    padding: 3px 5px;
    display: flex;
    align-items: center;
    border-radius: 5px;
}

.download_icon {
    background-image: url(../../images/telegram-chat-icon.png);
    background-repeat: no-repeat;
    width: 30px;
    height: 30px;
    background-size: 250px;
    background-position: -130px 0px;
}

.post_more {
    background-image: url(../../images/telegram-chat-icon.png);
    background-repeat: no-repeat;
    width: 30px;
    height: 30px;
    background-size: 300px;
    background-position: -120px -5px;
}

.telegram-chat.iphone .download_icon {
    background-position: -223px 0px;
}

.telegram-chat.iphone .post_more {
    display: none;
}

.view .view-icon {
    background-image: url(../../images/telegram-chat-icon.png);
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
    background-size: 250px;
    background-position: -35px -37px;
}

.message-sent .view .view-icon {
    background-position: -224px -37px;
}

.telegram.dark-theme .view .view-icon {
    background-position: -68px -37px;
}

.view {
    display: flex;
    align-items: center;
}

.telegram-meassage-time-status .view p {
    margin: 0 5px;
}

.message-sent .tg-image.telegram_post {
    background: var(--sender-bg);
    padding: 10px 5px;
}

.message-received .tg-image.telegram_post {
    background-color: var(--reciver-bg);
    padding: 10px 5px;
}

.message .telegram-text p {
    color: var(--black);
}

.message-status.telegram-meassage-status {
    background-image: url(../../images/telegram-chat-icon.png);
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
    background-position: -178px -53px;
    background-size: 200px;
}

.telegram.dark-theme .message-status.telegram-meassage-status {
    background-position: -153px -53px;
}

.right-part .modal-body .message-sent .message-footer {
    padding: unset;
    margin: unset;
}

.tel-message-footer-seen.show .message-status.telegram-meassage-status {
    background-size: 250px;
    background-position: -38px -100px;
}

.telegram.dark-theme .tel-message-footer-seen.show .message-status.telegram-meassage-status {
    background-position: -6px -100px;
}

.message-sent:has(~ .message-sent .tel-message-footer-seen.show) .tel-message-footer .message-status.telegram-meassage-status {
    background-size: 250px;
    background-position: -38px -100px;
}

.telegram.dark-theme .message-sent:has(~ .message-sent .tel-message-footer-seen.show) .tel-message-footer .message-status.telegram-meassage-status {
    background-position: -6px -100px;
}

.telegram.dark-theme .telegram-body {
    background-image: url(../../images/telegram-dark-bg.png);
    background-color: #18222c;
}

.message {
    margin-bottom: 5px;
}

.telegram-meassage-time-status input {
    width: 80px;
    color: #000;
}

.post-footer .ft-text i {
    color: var(--black);
}

.message-img .add-space {
    width: 130px;
    display: inline-block;
}

.telegram-meassage-time-status p {
    margin: 0;
    line-height: unset;
    color: var(--green);
}

.telegram-text .add-space {
    width: 85px;
    display: inline-block;
}

.message-received .pop-editer {
    position: absolute;
    right: -35px;
    top: 50%;
    transform: translateY(-50%);
}

.message-sent .pop-editer {
    position: absolute;
    left: -35px;
    top: 50%;
    transform: translateY(-50%);
}

.telegram.dark-theme .telegram-received-carat .dark,
.telegram .telegram-received-carat .light,
.telegram.dark-theme .telegram-sent-carat .dark,
.telegram .telegram-sent-carat .light {
    display: block;
}

.telegram .telegram-received-carat .dark,
.telegram.dark-theme .telegram-received-carat .light,
.telegram .telegram-sent-carat .dark,
.telegram.dark-theme .telegram-sent-carat .light {
    display: none;
}

.message-sent:has(+ .message-sent) .telegram-sent-carat,
.message-received:has(+ .message-received) .telegram-received-carat {
    display: none;
}

.message-sent:has(+ .message-sent.message-img) .telegram-sent-carat,
.message-received:has(+ .message-received.message-img) .telegram-received-carat,
.message-sent.message-img:has(+ .message-sent) .telegram-sent-carat,
.message-received.message-img:has(+ .message-received) .telegram-received-carat {
    display: block;
}

.message-sent.message-img:has(+ .message-sent.message-img) .telegram-sent-carat {
    display: block;
}

.telegram-chat .message-received:has(+ .message-received) .message-text {
    border-bottom-left-radius: 8px;
}

.telegram-chat .message-received+.message-received .message-text,
.telegram-chat .message-received+.message-received:not( :has(+ .message-received)) .message-text {
    border-top-left-radius: 8px;
}

.telegram-chat .message-sent:has(+ .message-sent) .message-text {
    border-bottom-right-radius: 8px;
}

.telegram-chat .message-sent+.message-sent .message-text,
.telegram-chat .message-sent+.message-sent:not( :has(+ .message-sent)) .message-text {
    border-top-right-radius: 8px;
}

.message-img .video-icon-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgb(32 32 32 / 60%);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.message-img .video-icon-bg .tg-video-icon {
    background-image: url(../../images/telegram-chat-icon.png);
    background-repeat: no-repeat;
    width: 50px;
    height: 50px;
    background-size: 420px;
    background-position: -268px -1px;
}

.message-img .tg-dots {
    background-image: url(../../images/telegram-chat-icon.png);
    background-repeat: no-repeat;
    width: 30px;
    height: 30px;
    background-size: 300px;
    background-position: -120px -5px;
    position: absolute;
    top: 7px;
    right: 0;
}

.tg-image.telegram-gallery-image+.telegram-meassage-time-status {
    background-color: rgb(32 32 32 / 60%);
    border-radius: 20px;
    padding: 2px 4px;
    right: 10px;
    margin: 0;
}

.tg-image.telegram-gallery-image+.telegram-meassage-time-status p span,
.tg-image.telegram-gallery-image+.telegram-meassage-time-status i {
    color: #fff;
}

.tg-image.telegram-gallery-image+.telegram-meassage-time-status .message-status.telegram-meassage-status {
    background-position: -152px -53px;
}

.tg-image.telegram-gallery-image+.telegram-meassage-time-status .tel-message-footer-seen.show .message-status.telegram-meassage-status {
    background-position: -7px -100px;
}

.message-sent:has(~ .message-sent .tel-message-footer-seen.show) .tg-image.telegram-gallery-image+.telegram-meassage-time-status .message-status.telegram-meassage-status {
    background-position: -7px -100px;
}

.flex-row {
    display: flex;
    flex-wrap: wrap;
}

.left-part.telegram-left-part {
    max-height: unset;
    box-shadow: none;
}

.telegram-left-part .radio-grp {
    border: 1px solid #ccc;
    padding: 10px;
    position: relative;
}

.telegram-left-part .radio-grp .chat-layout,
.network-label,
.label-time,
.bt_label {
    position: absolute;
    top: -12px;
    background: #f9f9f9;
    padding: 0 5px;
    font-weight: 600;
}

.phone-type {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-type .radio {
    margin-bottom: 0;
}

.chat-network,
.chat-time,
.header_bt_options {
    border: 1px solid #ccc;
    padding: 10px;
    position: relative;
    margin-top: 20px;
}

.chat-network .network {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.chat-network .network .checkbox {
    white-space: nowrap;
    margin: 0;
}

.header_bt_options .battery {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.message-text .input-main-div textarea {
    color: #000;
    margin-bottom: 10px;
}

.msg_sent_option {
    margin-right: 10px;
}

.post-footer .ft-text {
    width: 260px;
    word-wrap: break-word;
}

.right-part .telegram-body .message-received .telegram-meassage-time-status {
    right: 15px;
}

.telegram-post .input-img i {
    height: 20px;
    width: 20px;
}

.telegram-post .preview-profile {
    height: 20px !important;
    border-radius: 50%;
    width: 20px !important;
}

.post-header .reelsdes {
    font-weight: 600;
}

/* ============ android css end ============ */
/* ============ ios css start ============ */
.ios-header .status-bar {
    padding: 20px 20px 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--ios-header-bg);
    color: var(--black);
    height: 40px;
}

.ios-header .iphone-time {
    position: relative;
    margin: 0 !important;
    padding-left: 5px;
    color: var(--black);
}

.status-bar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.ios-header .phone-network {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 16px;
    position: relative;
}

.ios-header .network-point {
    display: block;
    width: 4px;
    height: 100%;
    background-color: var(--black);
    margin-right: 2px;
    border-radius: 2px;
    position: relative;
}

.ios-header .network-point:nth-child(1) {
    height: 60%;
}

.ios-header .network-point:nth-child(2) {
    height: 74%;
}

.ios-header .network-point:nth-child(3) {
    height: 86%;
}

.ios-header .network-point:not(.active) {
    opacity: 0.3;
}

.ios-header .show-network {
    margin: 0 3px;
    font-weight: 600;
    line-height: 14px;
}

.ios-header .phone-network.sim2 .network-point::before {
    position: absolute;
    content: '';
    width: 100%;
    height: 4px;
    background-color: var(--black);
    bottom: -6px;
    left: 0;
    border-radius: 2px;
}

.ios-header .phone-network.sim2 {
    padding-bottom: 6px;
}

.telegram.dark-theme .data-network .light,
.telegram .data-network .dark {
    display: none;
}

.telegram.dark-theme .data-network .dark {
    display: block;
}

.ios-header .battery-container .battery {
    height: 14px;
    border: 0;
    margin: 1px 3px;
}

.ios-header .battery-container .battery:before {
    width: 2px;
    height: 3px;
    border-radius: 0 5px 5px 0;
    background-color: var(--battery-level);
}

.ios-header .iphone-battery .battery-status {
    position: absolute;
    left: calc(50% - 1px);
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    font-size: 12px;
    line-height: 1;
    font-weight: bold;
    color: var(--white);
    text-shadow: 0 0 var(--white);
}

.battery-percentage.iphone-battery-percentage {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background-color: var(--battery-level);
}

.ios-header .battery-container .battery .battery-level {
    position: relative;
    z-index: 2;
    background-color: var(--black);
}

.ios-header .battery-container.hide-percentage .battery:before {
    background-color: var(--battery-level);
}

.ios-header .battery-container.hide-percentage .battery-percentage {
    background-color: transparent;
    padding: 1px;
    border: 1px solid var(--battery-level);
}

.ios-header .battery-container.hide-percentage .battery-percentage .battery-level {
    border-radius: 3px;
}

.ios-header .telegram-name {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    background: #017aff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ios-header .telegram-name .plan-icon {
    background-image: url(../../images/telegram-chat-icon.png);
    background-repeat: no-repeat;
    width: 16px;
    height: 16px;
    background-size: 400px;
    background-position: -18px -18px;
}

.chats-iphone-header-bottom .user-name .profile-name .edit-text {
    color: var(--black);
}

.chats-iphone-header-bottom .user-name .profile-name .profile-text {
    color: var(--black);
}

.chats-iphone-header-bottom {
    position: relative;
    background-color: var(--ios-header-bg);
    padding: 10px 5px 3px;
    z-index: 5;
}

.telegram-chat.android .chats-iphone-header-bottom {
    display: none;
}

.chats-iphone-header-bottom .iphone-msg-header-back {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(0, -50%);
    z-index: 1;
}

.chats-iphone-header-bottom .iphone-msg-header-back .back-arrow {
    background-image: url(../../images/telegram-chat-icon.png);
    background-repeat: no-repeat;
    width: 20px;
    height: 26px;
    background-size: 300px;
    background-position: -5px -43px;
}

.iphone-msg-header-back .unread_msg p {
    margin: 0;
    color: #fff;
    display: flex;
    align-items: center;
}

.iphone-msg-header-back .unread_msg {
    position: absolute;
    top: 50%;
    left: 23px;
    transform: translateY(-50%);
    background: #0084ff;
    border-radius: 20px;
    padding: 0 7px;
}

.user-name {
    position: relative;
    text-align: center;
}

.user-name p {
    margin: 0;
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
}

.unread_msg .unread-input {
    width: 50px;
    background: transparent;
    color: #fff;
    border: none;
}

.seen-time p {
    font-weight: 500;
    font-size: 14px;
    color: #949494;
}

.chats-iphone-header-bottom .modal-title {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.chats-iphone-header-bottom .modal-title .modal-title-img {
    position: relative;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.input-img {
    position: relative;
    margin: 0;
    height: 100%;
    width: 100%;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.input-img i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 34px;
    width: 34px;
    border-radius: 50%;
    background-color: rgb(32 32 32 / 60%);
    color: #fff;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chats-iphone-header-bottom .modal-title .modal-title-img img {
    height: auto;
    width: 34px;
    position: relative;
}

.modal-title-img input {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    opacity: 0;
    font-size: 23px;
    height: 100%;
    width: 100%;
    direction: ltr;
    cursor: pointer;
    z-index: 9;
}

.online-text span {
    color: #017aff;
    display: none;
}

.online-text.show-text span {
    display: block;
}

.telegram-chat.android+.all_footer_wp .ios-footer {
    display: none;
}

.ios-footer {
    background-color: var(--ios-header-bg);
    padding: 8px 10px;
}

.ios-footer .ios-pin-icon {
    background-image: url(../../images/telegram-chat-icon.png);
    background-repeat: no-repeat;
    width: 30px;
    height: 30px;
    background-size: 300px;
    background-position: -79px -79px
}

.telegram.telegram.dark-theme .ios-footer .ios-pin-icon {
    background-position: -116px -79px
}

.ios-footer .ft-middle {
    background-color: var(--white);
    padding: 5px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.ios-footer .ios-stiker-icon {
    background-image: url(../../images/telegram-chat-icon.png);
    background-repeat: no-repeat;
    width: 24px;
    height: 24px;
    background-size: 250px;
    background-position: -129px -67px;
}

.telegram.telegram.dark-theme .ios-footer .ios-stiker-icon {
    background-position: -159px -67px;
}

.footer-border {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 25px 0 0px;
    z-index: 5;
    position: relative;
}

.footer-border span {
    height: 5px;
    width: 120px;
    border-radius: 8px;
    background-color: var(--black);
}

/* ============ ios css end ============ */
/* ================= modal css start============= */
.modal-form-input .modal-body .input-img {
    max-width: 300px;
    max-height: 300px;
    border: 2px dashed #b5b5b5;
    border-radius: 8px;
    display: block;
    z-index: 1;
}

.input-img input[type="file"] {
    opacity: 0;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.modal-form-input .modal-dialog.modal-sm {
    width: 320px;
}

.close-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    height: 30px;
    background-color: #ff6363;
    border-color: #ff6363 !important;
    position: absolute;
    right: 15px;
    top: 8px;
}

.btn i {
    position: relative;
    margin-left: 8px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    font-size: 15px;
    line-height: 10px;
}

.btn-group-wp {
    display: inline-flex;
    padding: 5px;
    border: 1px solid var(--primery-color);
    border-radius: 60px;
}

.btn-group-wp .btn-toggle-wp:not(:last-child) {
    margin-right: 7px;
}

.btn-toggle-wp {
    position: relative;
}

.btn-toggle-wp input {
    position: absolute;
    opacity: 0;
    visibility: hidden;
}

.btn-toggle-wp .btn-toggle {
    height: auto;
    border: 0;
    padding: 5px 15px;
    border-radius: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 5px 5px 2px rgb(148 169 195 / 60%);
    transition: box-shadow 0.3s;
}

.btn-group-wp input[type="radio"]:not(:checked)+.btn-toggle {
    background-color: transparent;
    color: var(--primery-color) !important;
    border: 0;
    box-shadow: none;
}

.close-modal-btn i {
    margin: 0 !important;
}

.error-msg:empty {
    margin: 0;
}

.justify-content-between {
    justify-content: space-between;
}

.modal-form-input .form-control {
    padding: 6px 10px;
}

.modal-form-input .info-wrap {
    padding: 0 28px 0 8px;
}

.modal-form-input .info-wrap .form-element {
    height: auto;
}

.tooltip-info {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translate(0, -50%);
    font-size: 16px;
    color: var(--primery-color);
    width: 15px;
    z-index: 5;
}

.nav-tabs {
    margin-top: 5px;
}

.message-input-wrap {
    position: relative;
}

.message-input-wrap .time-label {
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    display: flex;
    margin-bottom: 8px;
}

.message-input-wrap .time-label .message-input {
    width: 100%;
    height: 100%;
    border: 0;
    resize: none;
    padding: 8px;
    border-radius: 8px;
}

.message-input-wrap .input-image-wr {
    position: absolute;
    bottom: 8px;
    right: 8px;
    margin: 0;
}

.message-input-wrap .input-image-wr .btn-file {
    position: relative;
    height: auto;
}

.message-input-wrap .input-image-wr .btn-file input {
    position: absolute;
    opacity: 0;
    height: 0;
    width: 0;
}

.tip-text {
    color: #5D6D7E;
}

.modal-form-input .modal-body .input-img,
.body_modal .input-img {
    max-width: 300px;
    max-height: 300px;
    margin: 0 auto 30px auto;
    border: 2px dashed #b5b5b5;
    border-radius: 8px;
    display: block;
    z-index: 1;
}

#reelimage_upload,
#reelprofile_upload,
#postprofile_upload {
    height: 100%;
}

.modal-form-input .modal-body .input-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.input-img.profile-img {
    height: 72px;
    width: 72px;
}

label.form-label {
    width: 100%;
}

.switch-text {
    font-weight: 400;
}

.input-img.profile-img .preview-profile,
.reels-profile {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

/* .pop-editer {
    position: absolute;
    bottom: calc(100% + 10px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 3px 8px 2px rgba(0, 0, 0, .2);
    z-index: 4;
    visibility: hidden;
    opacity: 0;
} */
.pop-editer button {
    border: 0;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    border-radius: 50%;
}

/* .pop-editer::before {
    content: "";
    position: absolute;
    top: 100%;
    z-index: 5;
    color: rgb(255, 255, 255);
    font-size: 20px;
    line-height: 5px;
    font-family: FontAwesome;
} */
.pop-editer .like-btn {
    color: #ff0000;
    background: #ffecfe;
}

.pop-editer .delete-btn {
    color: #e74c3c;
    background: #fadbd8;
}

/* .message-container:hover .pop-editer {
    bottom: 100%;
    opacity: 1;
    visibility: visible;
} */
.close-modal-btn:hover {
    background-color: #ff6363;
    border-color: #ff6363 !important;
}

.tab-content textarea {
    resize: none;
}

.file-preview-opt label {
    width: unset;
}

.profile-text-label {
    position: relative;
    display: block;
}

.profile-text-label .fa-paint-brush {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 100%;
    width: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    display: none;
}

.profile-text-label .fa-paint-brush.add-brush {
    display: flex;
}

.color-picker {
    display: grid;
    grid-template-columns: auto auto auto auto auto auto;
    position: absolute;
    z-index: 10;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(100% + 10px);
    border-radius: 10px;
    padding: 10px;
    display: none;
    box-shadow: 0 8px 24px #e6e9ef;
    background: #fff;
}

.color-picker .btn {
    position: absolute;
    height: 25px;
    padding: 0 6px;
    top: -10px;
    right: -10px;
    display: flex;
    align-items: center;
    background-color: #ff6363;
    border: 0 !important;
}

.color-picker .color-box {
    height: 35px;
    width: 35px;
    overflow: hidden;
    position: relative;
    padding: 2px;
}

.color-picker .color-box span {
    height: 100%;
    width: 100%;
    cursor: pointer;
    display: block;
    border-radius: 50%;
}

.tel-chat-modal {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 10000;
    -webkit-transform: translateZ(10);
    overflow-x: hidden;
}

.chat_modal_content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100%;
    width: 100%;
    padding: 30px 0 100px;
    max-width: 320px;
    margin: 0 auto;
}

.chat-body {
    background-color: #fff;
    padding: 10px;
    border-radius: 5px;
    width: 100%;
}

.close-modal-btn {
    position: unset;
}

.header_modal {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.arrow.form-element {
    height: auto;
}

.info-wrap {
    padding: 0 28px 0 8px;
}

/* ================= modal css end ============= */
.img-sec-main {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 -15px 30px -15px;
}

.img-sec-main .img-description {
    width: 45%;
    padding: 0 15px;
}

.img-sec-main .img-sec {
    width: 55%;
    padding: 0 15px;
    text-align: center;
}

.img-sec-main .img-sec img {
    max-width: 100%;
    max-height: 480px;
    height: auto;
    width: auto;
}

.img-sec-main .img-description.col-12 {
    width: 100%;
}

.img-sec-main .img-description .img-title {
    display: inline-block;
    background-color: rgba(0, 255, 255, 0.2);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.img-sec-main .img-description p {
    font-size: 16px;
    margin-bottom: 15px;
}

.ul-list {
    list-style-type: disc;
    padding-left: 30px;
}

.ol-list {
    list-style-type: decimal;
    padding-left: 30px;
}

.ol-list li:not(:last-child),
.ul-list li:not(:last-child) {
    margin-bottom: 5px;
}

.description ul:last-child,
.description ol:last-child {
    margin-bottom: 0;
}

.description p:last-child {
    margin: 0 !important;
}

.description {
    margin: 0 0 15px 0;
}

/* responsive css start */
@media only screen and (max-width: 991px) {
    .order1 {
        order: 1;
    }

    .order2 {
        order: 2;
    }

    .order3 {
        order: 3;
    }

    .order4 {
        order: 4;
    }

    .header_bt_options {
        margin-top: 0;
    }

    .img-sec-main {
        flex-direction: column;
        margin-top: 30px;
        margin-bottom: 60px !important;
    }

    .img-sec-main.remove-space {
        margin-bottom: 0 !important;
    }

    .img-sec-main .img-description {
        order: 1;
        width: 100%;
    }

    .img-sec-main .img-sec {
        order: 2;
        margin-bottom: 15px;
        width: 100%;
    }

    .img-sec-main .img-sec img {
        max-height: 320px;
    }

    .phone-type+.checkbox-grp {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
}

@media only screen and (max-width: 767px) {
    .phone-type+.checkbox-grp {
        display: block;
    }

    .chat_modal_content{
        align-items: center;
        padding: 40px 0 100px;
    }
}

@media only screen and (max-width: 576px) {
    .xxs-6 {
        width: 50%;
    }

    .xxs-7 {
        width: 58.33%;
    }

    .xxs-5 {
        width: 41.66%;
    }

    .phone-type {
        gap: 5px;
    }


}

@media only screen and (max-width: 480px) {

    .xxs-5,
    .xxs-7,
    .xxs-12 {
        width: 100%;
    }

    .header_bt_options {
        margin-top: 20px;
    }

    .phone-type {
        gap: 15px;
    }
}

/* responsive css start */
/* preview popup css start */
.preview-popup {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 10000;
    -webkit-transform: translateZ(10);
    overflow-x: hidden;
}

.popup-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100%;
    width: 100%;
    padding: 30px 0 100px;
    max-width: 420px;
    margin: 0 auto;
}

.popup-body {
    background-color: #fff;
    padding: 10px;
    border-radius: 5px;
    width: auto;
    min-width: 300px;
}

.pop-header {
    position: relative;
}

.pop-header p {
    font-size: 24px;
    padding: 20px 0;
    margin: 0;
}

.pop-header .close-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.preview-popup .right-part {
    padding: 5px;
}

body.body-fixed {
    overflow: hidden;
}

/* preview popup css end */
/* ===================== new css end (15-04-2024) ============================== */

#preview-modal-content {
    width: 380px;
}


/* ========================================== */
.frame {
    position: relative;
    width: 360px;
    max-width: 1000px;
    margin: 0 auto;
}

.frame .telegram {
    border: 10px solid #000 !important;
    border-radius: 35px;
    width: 370px !important;
}

.frame.iphone-layout .telegram {
    border-radius: 50px;
}

.frame .camera-dot {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: #000;
    border-radius: 50%;
    border-radius: 50%;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
}

.frame.iphone-layout .camera-dot {
    width: 90px;
    height: 23px;
    border-radius: 15px;
}


.frame::after {
    position: absolute;
    content: '';
    width: 5px;
    height: 100px;
    background-color: #000;
    top: 130px;
    right: -14px;
    border-radius: 0 5px 5px 0;
}

.frame.iphone-layout::after {
    right: unset;
    left: -5px;
    border-radius: 5px 0 0 5px;
    height: 40px;
}

.frame::before {
    position: absolute;
    content: '';
    width: 5px;
    height: 60px;
    background-color: #000;
    top: 270px;
    right: -14px;
    border-radius: 0 5px 5px 0;
}

.frame.iphone-layout::before {
    height: 100px;
    top: 200px;
}


.frame.iphone-layout .screen-switch-one {
    position: absolute;
    content: '';
    width: 5px;
    background-color: #000;
    top: 190px;
    left: -5px;
    border-radius: 5px 0 0 5px;
    height: 60px;
}

.frame.iphone-layout .screen-switch-two {
    position: absolute;
    content: '';
    width: 5px;
    background-color: #000;
    top: 270px;
    left: -5px;
    border-radius: 5px 0 0 5px;
    height: 60px;
}


.frame .ios-header .telegram-name {
    display: none;
}

.frame .all-chats .chats-android-header-bottom .modal-title {
    margin-left: 10px;
    width: 70%;
}

@media screen and (max-width:420px) {


    .frame .telegram {
        width: 330px !important;
        max-width: 330px !important;
    }

    .frame::after,
    .frame::before {
        right: -14px;
    }

    .frame {
        margin: auto;
        width: 320px;
    }


    .right-part {
        overflow: hidden;
    }

    .preview-popup .right-part {
        overflow: scroll;
    }

    .frame .message .post-img {
        width: 220px;
    }

    .frame .telegram-post {
        width: 220px;
    }

    .frame .all-chats .chats-android-header-bottom {
        padding: 10px;
    }

    .frame .header-icon {
        gap: 12px;
    }
}

@media  screen and (max-width: 380px) {
    .frame {
        margin: 0;
    }

}