
.save-box .input-move-asssi {
  /* position: absolute;
  left: 20px !important;
  right: auto !important; */
  /* color: red; */
}
#loader{
  position: fixed;
}
.list-table-student .table .main-box-list {
  padding-left: 60px;
}
.bgBox .information .name-box .edit-icon{
  padding: 0;
}
.btn-drop .dropdown .dropdown-menu li{
  margin: 0 0 15px 0;
  padding: 10px 0 !important;
  white-space: normal;
}


.tabs .tad-profile .profile-photo{
  flex-shrink: 0;
}
.tabs .tab-ul-div .nav-pills li .nav-link{
  padding-bottom: 14px;
}
#searchAssignment .account-btn .icon-creat-plus-icon, .list-last-btn .Add-Assignment{
  margin-right: 4px;
}

.tabs .tab-content-text .active-comp-ul .nav-pills {
  flex-wrap: nowrap;
}

.moder_s1 .btn-close, 
.edit-data-notes.moder_s1 .btn-close{
  right: 0.3rem;
  top: 0.3rem;
  font-size: 1.5em;
  z-index: 999;
}

.pointer-none{
  pointer-events: none;
}
.cursor-move{
  cursor: move;
}
.cursor-auto{
  cursor: auto;
}
.cursor-inherit{
  cursor: inherit;
}
.cursor-pointer{
  cursor: pointer;
}

.des-cription{
  word-break: break-word !important;
}
.account-btn .icon-delete-1{
  margin-right: 3px;
}

.btnuserclose{
  top: 5px;
  right: 5px;
  display: none;
}

.box-small-img{
  width: 70px;
  flex-shrink: 0;
}
.box-small-img p{
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;  
  overflow: hidden;
}

.show-attach-list ul li .list-text{
  gap: 6px;
}
.btn-drop .dropdown .dropdown-menu{
  max-height: 74vh;
}
.btn-drop .dropdown .dropdown-menu .serarch-box{
  padding: 10px 0px 0;
  margin: 0 0 8px;
}
.btn-drop .dropdown .dropdown-menu .list-div{
  padding: 0 10px;
}
.btn-drop .dropdown .dropdown-menu .list-div figure{
  position: static;
}

.tabs .tab-content-text .main-div-active-comp .content-div-active-comp .active-boxs .text-icons{
  word-break: break-word;
}


.save-box-accordion .accordion-button.collapsed:after, .save-box-accordion .accordion-button:after{
  margin-left: 0;
}
.sort-select{
  font-size: 12px;
}
.sort-select select{
  border: 1px solid #dfdfdf;
  border-radius: 5px;
  padding: 5px 7px;
  margin-left: 8px;
  background-color: #fff;
}

.drag-drop-btn{
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  background: transparent;
  border: none;
}


.audio-record-controls{
  position: absolute;
    right: 110px !important;
    top: auto;
    bottom: 10px;
    transform: none;
}

.audio-record-controls .icon-microphone img{
  width: 26px;
  /* margin-right: .4rem; */
}
.audio-record-controls .audio-control-popup{
  background-color: #ebebeb;
    padding: 8px;
    border-radius: 30px;
    box-shadow: 0 0 10px #c1c1c1;
    border: 1px solid #dddddd;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    height: 0;
    overflow: hidden;
    transition: 1s;
    opacity: 0;
    pointer-events: none;
}
.audio-record-controls .audio-control-popup.open{
    height: 130px;
    transition: 1s;
    opacity: 1;
    pointer-events: all;
}
.audio-record-controls .audio-control-popup button{
  width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #d3cfcf;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}
.audio-record-controls .audio-control-popup button:last-child{
  margin-bottom: 0;
}
.audio-record-controls .audio-control-popup button:hover{
  background-color: #fff;
}
.audio-record-controls .audio-control-popup img{
  width: 20px;
  max-width: none;
}

.massage-full-box .massage-type-input .emojionearea-editor{
  position: relative !important;
  width:calc(100% - 10px);
}

/* ****************** */


@media(max-width: 1499px){
  .grid-view .first-box h4{
    font-size: 20px;
  }
}

@media(max-width: 1199px){
  .tabs .tab-ul-div .nav-pills li .nav-link{
    margin: 0 12px;
  }
  .cencel-modal .main-div .icon-bg{
    width: 120px;
    height: 120px;
  }
}

@media(max-width: 567px){
  .audio-record-controls{
      right: 80px !important;
  }
  .audio-record-controls .icon-microphone img {
    width: 11px !important;
  }
}
@media(max-width: 1024px){
  .dashbord.toggled aside{
    z-index: 999;
    height: 100vh;
    height: 100dvh;
    position: fixed;
    overflow-y: auto;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
    box-sizing: border-box;
  }
  .dashbord.toggled aside ul{
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 72px);
  }
  .dashbord aside .close-icon{
    top: 5px;
    right: 12px;
  }
}

/* @media(max-width: 767.98px){

} */
@media(max-width: 992px){
  .btnuserclose{
    display: block;
  }
  .UserPanel{
    top: 0;
    position: fixed;
    height: 100vh;
  }
  .list-of-student{
    height: 100vh;
    padding: 30px 15px;
  }
  .save-box-accordion .multipal-btn{
    display: flex;
    flex-wrap: wrap;
  }
}

@media(max-width: 991px){
  .folder-action{
    top: 12px;
  }
  .drag-drop-btn{
    position: absolute;
    top: 5px;
    right: 8px;
  }
  .drag-drop-btn img{
    width: 28px;
  }
}

@media(max-width: 767px){
  
  .folder-img{
    width: 0.6rem;
  }
  .show-attach-list ul li .list-text{
    flex-wrap: wrap;
  }
  .show-attach-list ul li .list-text .filenameinput .fileName{
    font-size: 12px;
  }
  .show-attach-list ul li .list-text .filenameinput small{
    font-size: 10px;
  }
  .gray-div .list_btn .two-btn{
    margin-top: 24px;
  }
  .edit-icon-tabs{
    font-size: 16px;
  }
  .tabs .tab-ul-div .nav-pills li .nav-link{
    font-size: 14px;
    padding-bottom: 7px;
  }
  .tabs .tab-content-text{
    padding: 25px 14px;
  }
  .tabs-Ui .nav-link {
    padding: 5px 3px !important;
  }
  .pratice-tabs .days-top .filter-dropdown{
    margin-top: 15px;
  }
  .pratice-tabs .days-top h2{
    font-size: 22px;
  }
  .pratice-tabs .days-top p{
    font-size: 14px;
  }
  .not-found-txt{
    font-size: 14px;
  }
  .profile-row .name-box.profile-ac .profile-image-name .name-content p{
    font-size: 18px;
  }
  .profile-row .name-box.profile-ac .profile-image-name .name-content .profile-change-input{
    font-size: 14px;
  }
  .profile-row .name-box.profile-ac .profile-image-name .profile-photo{
    width: 95px;
    height: 95px;
  }
  .profile-ac .change-pass .changePassword,
  .profile-row .profile-ac-details .note-box a{
    font-size: 14px;
    border-radius: 4px;
    padding: 6px 12px;
  }
  .btn-primary, .btn-bg-blank, .btn-secondry, .btn-light, .btn-outline-light, .btn-outline-primary{
    font-size: 14px;
  }
  .edit-data-notes.moder_s1 .btn-close{
    right: 0;
    top: 0;
  }
  .profile-row .profile-ac-details .edit-icon{
    right: 5px;
    top: 5px;
    font-size: 12px;
    width: 26px;
    height: 26px;
  }
  .edit-modal .upload-img .profile-photo{
    width: 95px;
    height: 95px;
    flex-shrink: 0;
  }
  .form-check-input ~ .form-check-label{
    font-size: 14px;
    margin-top: 7px;
  }
  .form-check-input{
    padding: 0.5rem 0.5rem;
  }
  .form-control{
    font-size: 16px;
  }
  .dashbord input, .dashbord textarea, .dashbord select,
  .bgBox input, .bgBox textarea, .bgBox select,
  .modal input, .modal textarea, .modal select{
    font-size: 16px;
  }


  /* ******* */

  .create-ac-images .uploadPHoto{
    width: 80px;
    height: 80px;
  }
  .main-input-change{
    width: 30px;
    height: 30px;
    flex-shrink: 0;
  }
  .edit-icon-tabs {
    width: 26px !important;
    height: 26px !important;
    font-size: 0.6rem;
  }
  .edit-icon-tabs.assign-txt-btn{
    width: auto !important;
  }
  .edit-icon-tabs.restart-btn img{
    width: 16px;
    height: auto;
  }
  .pagination-div .rounded-md{
    font-size: 12px;
  }
  .pagination-div nav div:nth-child(2){
    display: block;
  }
  .pagination-div nav div:nth-child(2) p{
    font-size: 12px;
  }
  .newacrodian .edit-icon-tabs {
    font-size: 0.6rem;
    margin-right: 5px !important;
  }
  .save-box-accordion .accordion-button.collapsed:after,
  .save-box-accordion .accordion-button:after{
    width: 26px;
    height: 26px;
    font-size: 24px;
    background-size: 26px;
  }
  .folder-action {
    top: 18px;
    right: 34px;
  }
  .save-box{
    padding: 10px;
  }
  .save-box .input-move-asssi{
    /* left: 10px !important; */
  }
  .list-table-student .table .main-box-list .profile-photo{
    width: 54px;
    height: 54px;
    min-width: 54px;
    min-height: 54px;
  }
  .list-table-student .table .main-box-list .number{
    top: 6px;
  }
  .tutrl-vid{
    height: 240px;
  }
  .bgBox .information .name-box .profile-image-name .profile-photo {
    width: 80px;
    height: 80px;
    min-width: 80px;
  }
  .priceSwitcher .pricemonth {
    font-size: 1rem;
  }
  .main-input-change img{
    padding: 4px;
  }
  .change-pass-right-canvas .offcanvas-header button span{
    font-size: 26px;
  }
  .change-pass-right-canvas .offcanvas-body .form-control{
    font-size: 0.8rem;
  }
  .deactivate-modal .modal-content .modal-body h3{
    padding: 10px 0;
  }
  .btn-drop .dropdown .dropdown-menu{
    margin: 0 !important;
    max-width: 260px;
  }
  .btn-drop .dropdown .dropdown-menu .serarch-box img{
    width: 16px;
  }
  .chat-box ul.chatList.small-chatlist{
    padding: 0 0 70px !important;
  }
  .chat-box ul li .chats{
    padding: 10px 28px 10px 8px !important;
  }
  .chat-box ul li .chats p{
    font-size: 12px;
  }
  .box-small-img .profile-photo.small-img{
    width: 25px !important;
    height: 25px !important;
    min-width: 25px !important;
  }
  .chat-box ul li .chats h6{
    font-size: 0.85rem;
  }
  .save-box.assignment-save-box.check-left-side{
    padding-left: 15px !important;
  }
  .select-div{
    padding: 10px;
  }
  .sv-assign-search{
    font-size: 14px;
  }
  .select-input-icon .select2-container{
    font-size: 0.8rem;
  }
  .form-error{
    font-size: 0.8rem;
  }
  .select2-container.select2-container--default {
    max-width: 90vw;
  }
}

@media(max-width: 567px){
  .drag-drop-btn img{
    width: 20px;
  }
  .grid-view.list-stu-box .first-box figure{
    width: 40px;
    min-width: 40px;
    height: 40px;
  }
  .grid-view .first-box h4 {
    font-size: 16px;
  }
  .dashbord .rightPart{
    padding: 1rem 0.6rem;
  }
  .btn-drop{
    right: 14px;
  }
  .massage-full-box .massage-type-input{
    width: calc(100% - 70px);
    /* width: 100%;
    margin-right: 5px; */
  }
  
  .massage-full-box .send-btn{
    padding: 0.4rem !important;
  }
  .massage-full-box .send-btn span{
    font-size: 12px;
  }
  .massage-full-box .massage-type-input .emojionearea-editor{
    font-size: 12px;
    line-height: 22px;
  }
  .stickericon.dropup{
    width: 14px;
    margin-right: 0 !important;
  }
  .massage-full-box .massage-type-input .gallary-span{
    margin-right: 6px !important;
    width: 16px;
    font-size: 14px;
  }
  .profile-row .name-box.profile-ac .profile-image-name .profile-photo{
    width: 65px;
    height: 65px;
    margin-right: 10px;
    flex-shrink: 0;
  }
  .profile-photo .main-input-change{
    width: 24px;
    height: 24px;
    margin-right: 10px;
  }
  .profile-row .name-box.profile-ac .profile-image-name .profile-photo .main-input-change img{
    padding: 4px;
  }
  .profile-row .profile-ac-details{
    padding: 28px 20px 20px;
  }
  .profile-row .profile-ac-details .name-content p{
    font-size: 14px;
  }
  .edit-modal .upload-img .profile-photo{
    width: 65px;
    height: 65px;
  }
  .save-box .back-border.back-change-border {
    width: 25px !important;
    height: 25px !important;
    min-width: 25px !important;
  }
  .save-box .back-border span.icon-Icon-ionic-ios-document:before{
    font-size: 13px !important;
  }
  .save-box .back-border {
    width: 24px;
    height: 24px;
    min-width: 24px;
  }
  .save-box .back-border span:before {
    font-size: 12px;
  }
  .folder-action {
    top: 11px;
  }
  .TabStyle1 li button{
    font-size: 14px;
  }
  .bgBox .information .name-box{
    padding: 20px;
  }
  .save-box.assignment-save-box.check-left-side{
    gap: 10px;
    flex-wrap: wrap;
  }


.massage-full-box .massage-type-input .form-control {
    padding-right: 108px;
}
}

@media(max-width: 350px){
  .dashbord aside{
    width: 275px;
  }
  .chat-box.only-massages.chat-start .profile-photo {
    width: 30px;
    height: 30px;
    min-width: 30px;
    margin-right: 8px;
  }
  .chat-box.only-massages.chat-start .profile-name-text h6{
    font-size: 12px;
  }
  .box-small-img {
    width: 55px;
  }
  .tabs-Ui .nav-link{
    font-size: 11px !important;
  }
  .btn-drop .dropdown .dropdown-menu .list-div .text h5{
    font-size: 13px;
  }
  .btn-drop .dropdown .dropdown-menu .list-div .text p{
    font-size: 12px;
  }
  
}

@media(max-width: 320px){
  .btn-drop .dropdown .dropdown-menu{
    min-width: auto;
    width: 220px;
  }
}

/* .move-btn-width{
    width: auto;
    border-radius: 4px;
    padding: 5px 10px;
    color: #fff;
    font-size: 16px;
}
.move-btn-width:hover{
  color: white;
}

.move-btn-width img{ margin-right: .5rem; } */

.move-btn-width{
  background-color: #F9446A;
  height: 40px;
  width: auto;
  color: #fff!important;
  font-size: 14px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 12px;
  display: inline-flex;
    justify-content: center;
    align-items: center;
    border: none;
}
.move-btn-width img{
  margin-right: 4px;
  width: 14px;
}

.ui-sortable-placeholder{
  border: 1px solid #ff1580;
  visibility: visible !important;
}
.disabledTag {
  pointer-events: none;
  cursor: default;
  opacity: 0.5; /* Optional: to visually indicate the link is disabled */
}


.sortable-chosen{
  border: 1px solid #fe2d78;
}
.txt-blck{
  color: black;
}
.star_span_css{
  position: relative;
  overflow: visible;
  border: none;
}
.star_image_css { 
  position: absolute;
  top: 50%;
  left: 50%;
  bottom: 0;
  width: 121% !important; 
  height: 121% !important;
  max-width: none;
  transform: translate(-50%, -50%);
  object-fit: contain !important;
  border-radius: 0 !important;
}

/* .star-img-combine{
  position: relative;
}
.grid-view .first-box .star-img-combine figure{
  border-radius: 0;    
  border: 1px solid #707070;
    display: inline-block;
    width: 150px;
    min-width: 150px;
    height: 150px;
    margin-bottom: 0;
    margin-right: 15px;
  }


.star-img-combine figure img{
  width: 100%;
    object-fit: cover;
    height: 100%;
    border-radius: 50%;
} */

.star-img-combine .star_image_css{
  width: 121% !important;
  height: 121% !important;
  object-fit: contain !important;
}

.hover-data{
  position: relative;
  display: inline-block;
  cursor: pointer;
}
.hover-data .hover-icon img{
  width: 16px;
}
.hover-data:hover .hover-data-txt{
  display: block;
}
.hover-data .hover-data-txt{
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  margin: 0;
    font-size: 12px;
    width: 250px;
    line-height: normal;
    background: #ebebeb;
    box-shadow: 0 0 10px #00000059;
    border-radius: 4px;
    padding: 5px;
    z-index: 1;
}

@media(max-width: 767px){
  .hover-data .hover-data-txt{
    width: 180px;
    left: -100px;
  }
}
.note_div {
  display: flex;
  gap: 1rem;
  font-style: italic;
  margin-top: 20px;
}

.note_div p {
  white-space: nowrap;
  font-weight: 900;
}
.note_div span {
  color: #646464;
}
.ellipsis-loader {
  display: flex;
  gap: 9px;
  justify-content: center;
}

.ellipsis-loader .dot{
  background-color: #f9446a;
  width: 10px;
  height: 10px;
  border-radius: 10px;
  animation: bounce-dot 1.5s linear infinite;
  animation-delay: -0.6s;
}
.ellipsis-loader .dot:nth-child(2){
  animation-delay: -0.4s;
}
.ellipsis-loader .dot:nth-child(3){
  animation-delay: -0.2s;
}

.form-check.form-switch .form-check-input{
  padding: 0.6rem 1.1rem;
  box-shadow: none;
  border-radius: 10px !important;
}
.form-check.form-switch .form-check-input:checked{
  background-color: #F9446A;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e") !important;
}


/* custom switch  */
.custom-switch input{
  display: none;
}
.custom-switch label {
	width: 60px;
	height: 26px;
	display: inline-block;
	position: relative;
	border-radius: 26px;
	-webkit-background-clip: padding-box;
	-moz-background-clip: padding-box;
	background-clip: padding-box;
	background: rgb(138,138,138);
  line-height: 26px;
	font-style: normal;
	color: #fff;
	font-weight: bold;
  font-size: 12px;
	cursor: pointer;
}


.custom-switch label i {
	position: absolute;
	top: 2px;
    right: 35px;
    width: 22px;
    height: 22px; 
	display: block;
	border-radius: 36px;
	background: rgb(255,255,255);
	-webkit-transition: all 200ms ease;
	-moz-transition: all 200ms ease;
	-o-transition: all 200ms ease;
	-ms-transition: all 200ms ease;
	transition: all 200ms ease;
}

.custom-switch label:before {
	content: "off";
	margin-left: 30px;
	text-transform: uppercase;
	-webkit-transition: all 200ms ease;
	-moz-transition: all 200ms ease;
	-o-transition: all 200ms ease;
	-ms-transition: all 200ms ease;
	transition: all 200ms ease;
}


.custom-switch input[type=checkbox]:checked ~ label:before {
	content: "on";
	text-transform: uppercase;
	margin-right: 30px;
	margin-left: 10px;
}


.custom-switch input[type=checkbox]:checked ~ label{
	background: #F9446A;
}

.custom-switch input[type=checkbox]:checked ~ label i {
	right: 3px;
}

/* #instrument_id{
  min-height: 52px;
} */

.ui_instrument_id{
  min-height: 52px;
}

#assignment_type_id + .select2{
  max-width: none;
}

@keyframes bounce-dot {
  0% {
      transform: scale(1);
      -webkit-transform: scale(1);
      -ms-transform: scale(1);
      -o-transform: scale(1);
      -moz-transform: scale(1);
  }

  50% {
    transform: scale(0.4);
    -webkit-transform: scale(0.4);
    -ms-transform: scale(0.4);
    -o-transform: scale(0.4);
    -moz-transform: scale(0.4);
    opacity: 0.5;
  }

  100% {
    transform: scale(1);
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    -moz-transform: scale(1);
    opacity: 1;
  }
}
.recording_note{
  font-size: 16px;
}

/* .fancybox-content:after {
  content: "\e91a";
  font-family: 'icomoon';
  color: red;
  font-size: 70px;
  display: block;
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  line-height: normal;
} */

@media(min-width:583px){
  /* .bottmiCon .stickericon {
    margin-right: 16px !important;
  } */

  .bottmiCon .audio-record-controls {
    right: 100px !important;
  }
}

/* Mobile: stop iOS auto-zoom on remaining text-entry controls.
   Kept last in file so it wins over earlier overrides; body-scoped
   so it wins over later plugin stylesheets. Mobile only. */
@media(max-width: 767px){
  body .sv-assign-search,
  body .conversation-search-wrapper input,
  body .massage-type-input .emojionearea.emojionearea-inline > .emojionearea-editor,
  body .select2-container--default .select2-search--dropdown .select2-search__field,
  body .select2-container--default .select2-selection--single .select2-selection__rendered{
    font-size: 16px;
  }
}

/* Mobile: offcanvas forms (create student/group) use 0.8rem controls via a
   3-class rule; override it here, last in file. Mobile only. */
@media(max-width: 767px){
  body .change-pass-right-canvas .offcanvas-body .form-control,
  body .change-pass-right-canvas .offcanvas-body input,
  body .change-pass-right-canvas .offcanvas-body textarea,
  body .change-pass-right-canvas .offcanvas-body select{
    font-size: 16px;
  }
}

/* Mobile: one compact row of uniform message controls:
   record | attachment | sticker | emoji. */
@media(max-width: 767px){
  body .massage-type-input{
    min-height: 96px;
  }
  body .massage-type-input .emojionearea.emojionearea-inline{
    min-height: 96px !important;
  }
  body .massage-type-input .audio-record-controls,
  body .massage-type-input .gallary-span,
  body .stickericon.dropup,
  body .massage-type-input .emojionearea .emojionearea-button{
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    z-index: 2;
    top: auto !important;
    bottom: 5px !important;
  }
  body .massage-type-input .audio-record-controls{
    right: 125px !important;
  }
  body .massage-type-input .gallary-span{
    right: 85px !important;
  }
  body .stickericon.dropup{
    right: 45px !important;
  }
  body .massage-type-input .emojionearea .emojionearea-button{
    right: 5px !important;
  }
  body .massage-type-input .audio-record-controls .icon-microphone,
  body .stickericon.dropup > button{
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  body .massage-type-input .gallary-span input{
    width: 36px !important;
    height: 36px !important;
  }
  body .massage-type-input .audio-record-controls .icon-microphone img,
  body .massage-type-input .gallary-span img,
  body .stickericon.dropup button img,
  body .massage-type-input .emojionearea .emojionearea-button > div{
    width: 22px !important;
    height: 22px !important;
    background-size: 22px 22px !important;
    background-position: center !important;
  }
  body .massage-type-input .emojionearea.emojionearea-inline > .emojionearea-editor{
    min-height: 96px !important;
    padding: 13px 13px 54px 13px !important;
    box-sizing: border-box;
  }
}

/* Mobile: multi-select students box (create group) inline search field.
   The single-select dropdown search was covered earlier; this is the
   inline search inside multiple-selection containers. */
@media(max-width: 767px){
  body .select2-container--default .select2-selection--multiple .select2-search__field{
    font-size: 16px;
  }
}

/* Mobile: lock the four message icons into one row — identical box
   geometry and block-level centered glyphs (kills inline baseline gaps
   that made same-size boxes look misaligned). */
@media(max-width: 767px){
  body .massage-type-input .audio-record-controls,
  body .massage-type-input .gallary-span,
  body .stickericon.dropup,
  body .massage-type-input .emojionearea .emojionearea-button{
    top: auto !important;
    bottom: 5px !important;
    height: 36px !important;
    min-height: 36px !important;
    line-height: 36px;
  }
  body .massage-type-input .gallary-span img,
  body .stickericon.dropup button img,
  body .massage-type-input .audio-record-controls .icon-microphone img,
  body .massage-type-input .emojionearea .emojionearea-button > div{
    display: block !important;
    margin: auto !important;
  }
}

/* Shared message icon bar: record | attachment | stickers | emoji.
   Desktop: 1x4 flex row bottom-right of the composer (same look as
   the old absolute layout). Mobile: 2x2 grid below the editor. */
#default-msg-box .msg-icon-bar{
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
#default-msg-box .msg-icon-bar > div{
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  margin: 0 !important;
}
/* keep the record popup anchored to its button */
#default-msg-box .msg-icon-bar .audio-record-controls{
  position: relative !important;
}
/* The bar owns the visible emoji button; the plugin's own floating
   button is hidden (visibility keeps it harmless if enable() re-shows it). */
#default-msg-box .emojionearea-button{
  visibility: hidden !important;
  pointer-events: none !important;
}
#default-msg-box .msg-icon-bar #emojiBarBtn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
}
#default-msg-box .msg-icon-bar #emojiBarBtn img{
  display: block;
  width: 26px;
  height: 26px;
}
/* attach tile stays in flow but must anchor its invisible file input */
#default-msg-box .msg-icon-bar .gallary-span{
  position: relative !important;
}
/* desktop order matches the previous layout */
#default-msg-box .msg-icon-bar .audio-record-controls{ order: 1; }
#default-msg-box .msg-icon-bar .stickericon{ order: 2; }
#default-msg-box .msg-icon-bar .gallary-span{ order: 3; }
#default-msg-box .msg-icon-bar #emojiBarBtn{ order: 4; }
@media(max-width: 767px){
  #default-msg-box .msg-icon-bar{
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 44px);
    grid-auto-rows: 44px;
    gap: 8px;
    justify-content: end;
    margin-top: 8px;
  }
  #default-msg-box .msg-icon-bar > div{
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  /* grid order: record | stickers / attach | emoji */
  #default-msg-box .msg-icon-bar .audio-record-controls{ order: 1; }
  #default-msg-box .msg-icon-bar .stickericon{ order: 2; }
  #default-msg-box .msg-icon-bar .gallary-span{ order: 3; }
  #default-msg-box .msg-icon-bar #emojiBarBtn{ order: 4; }
  #default-msg-box .msg-icon-bar > button{
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }
  #default-msg-box .msg-icon-bar #emojiBarBtn img{
    width: 22px !important;
    height: 22px !important;
  }
  /* icons no longer overlay the editor, so it gets full width back */
  body .massage-type-input .emojionearea.emojionearea-inline > .emojionearea-editor{
    padding-right: 13px !important;
  }
}

/* Mobile (option A): tuck the 2x2 grid inside the text field,
   bottom-right overlay; the editor keeps clear via padding. */
@media(max-width: 767px){
  #default-msg-box .msg-icon-bar{
    position: absolute;
    right: 8px;
    bottom: 8px;
    margin-top: 0;
  }
  body .massage-type-input .emojionearea.emojionearea-inline > .emojionearea-editor{
    padding-right: 112px !important;
  }
  /* The plugin copies form-control onto its wrapper: without this the
     108px reservation applies twice (wrapper + editor) and the text
     column collapses. The editor's own padding already clears the grid. */
  body .massage-full-box .massage-type-input .emojionearea.form-control{
    padding-right: 0 !important;
  }
}

/* Mobile: keep the composer in the chat layout instead of overlaying the
   message list. The list takes the remaining height and always ends above
   the composer, including when the composer grows for audio controls. */
@media(max-width: 767px){
  body .chat-box.only-massages.chatBox.is-open{
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
  }
  body .chat-box.only-massages.chatBox > .d-flex{
    flex: 0 0 auto;
  }
  body .chat-box.only-massages.chatBox > ul.chatList.small-chatlist{
    flex: 1 1 auto;
    min-height: 0;
    height: auto !important;
    margin: 0;
    padding: 10px !important;
    overflow-y: auto;
  }
  body .chat-box.only-massages.chatBox > #messageForm{
    flex: 0 0 auto;
    margin: 0;
  }
  body .chat-box.only-massages.chatBox .massage-full-box{
    position: static !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 10px 0 0;
    box-sizing: border-box;
  }
}

/* Mobile: slim the grid to a 92px reservation (2x40px cells, 6px gap,
   6px edge) and match the editor padding to it. */
@media(max-width: 767px){
  #default-msg-box .msg-icon-bar{
    right: 6px;
    bottom: 6px;
    grid-template-columns: repeat(2, 40px);
    grid-auto-rows: 40px;
    gap: 6px;
  }
  #default-msg-box .msg-icon-bar > div,
  #default-msg-box .msg-icon-bar > button{
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }
  body .massage-type-input .emojionearea.emojionearea-inline > .emojionearea-editor{
    padding-right: 92px !important;
  }
}
