html, body {
    /*background-color: #f7f9f9 !important;*/
}

/*::-webkit-scrollbar-track {
    border: 5px solid white;
    background-color: #b2bec3;
}

::-webkit-scrollbar {
    width: 15px;
    background-color: #dfe6e9;
}

::-webkit-scrollbar-thumb {
    background-color: #5A8DEE;
    !*border-radius: 10px;*!
}*/
/*

    White Menu

*/
.main-menu .navbar-header {
    border-bottom: 1px solid #deeaff;
    margin-bottom: 5px;
}

.main-menu.menu-light .navigation {
    background-color: #ffffff !important;
}

.main-menu.menu-light {
    background-color: #ffffff !important;
}

.main-menu.menu-light .navigation li a {
    color: #677788 !important;
}

.navigation-main > li:hover {
    background-color: rgba(38, 60, 85, 0.04);
}

.main-menu.menu-light .navigation > li.nav-item.open.has-sub.open, .main-menu.menu-light .navigation > li.nav-item.open.has-sub.sidebar-group-active, .main-menu.menu-light .navigation > li.nav-item.sidebar-group-active.has-sub.open, .main-menu.menu-light .navigation > li.nav-item.sidebar-group-active.has-sub.sidebar-group-active {
    /*background-color: #eceded !important;*/
}

.vertical-middle {
    vertical-align: middle;
}

.dropzone .dz-preview.old-image .dz-details, .dropzone-previews .dz-preview.old-image .dz-details {
    margin-bottom: 0 !important;
}

.dz-preview.old-image a.dz-remove, .dz-preview.old-image a.dz-remove {
    margin-top: 0 !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "title-font", "primary-font", sans-serif;
}

.font-title {
    font-family: "title-font", "primary-font", sans-serif;
}

/*#profile form img {
    width: 100%;
    border-radius: 50%;
    max-width: 100px;
}*/

.profile-image {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    /*position: absolute;*/
    /*top: -28px;*/
}

.profile-image-sm {
    width: 50px;
    height: 50px;
}

.profile-image-md {
    width: 75px;
    height: 75px;
}

.profile-image-lg {
    width: 150px;
    height: 150px;
}

.img-circle {
    border-radius: 50%
}

.bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: table-cell;
}

.bg-image.small {
    width: 40px;
    height: 40px;
}

.bg-image.medium {
    width: 60px;
    height: 60px;
}

.popover {
    overflow-y: auto;
    max-height: 500px;
}

.old-price {
    text-decoration: line-through !important;
}

.lesson-description h3 {
    font-size: 1.4rem;
}

.lesson-description h2 {
    font-size: 1.7rem;
}

.lesson-description h1 {
    font-size: 2rem;
}

#selectDiscountModal tr > td {
    cursor: pointer;
}

/*Session Page*/
.sessions-container {
    max-height: 1100px;
    overflow-y: auto;
}

.test-container .test-question {
    border-bottom: 1px solid #DFE3E7;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.test-container .test-answer {
    padding-top: 7px;
    padding-bottom: 7px;
}

.test-container .test-answer label {
    cursor: pointer;
}

.mg-modal-md .modal-content {
    width: 100vw;
    max-width: 500px;
    height: 100vh;
}

.mg-modal-100vw .modal-content {
    width: 100vw;
    height: 100vh;
}

.lesson-social {
    font-size: 16px;
}

.lesson-social .views span {
    top: -3px;
    position: relative;
}

.popover {
    overflow-y: visible;
}

.max-height-500 {
    max-height: 500px;
    overflow-y: auto;
}

.mg-overlay-dark {
    background: #394C62;
    background: rgba(57, 76, 98, 0.8);
}

.card-has-image-bg .card-img {
    height: 220px;
}

.border-right-width-5 {
    border-left-width: 5px;
}

.table.th-border-top-0 th {
    border-top: 0;
}

.ql-container {
    font-family: "secondary-font", "primary-font", "segoe ui", "tahoma", sans-serif !important;
    font-size: 16px !important;
}

@media screen and (max-width: 768px) {
    .card-has-image-bg .card-img {
        height: 250px;
    }
}

@media screen and (max-width: 768px) {
    .card-has-image-bg .card-img {
        height: 220px;
    }
}

@media screen and (max-width: 577px) {
    html body .content .content-wrapper {
        padding: calc(2.2rem - 0.4rem) calc(2.2rem - 1rem) 0 !important;
    }

    html body .content .content-wrapper .content-header-title {
        border-left: 0;
    }

    .card-has-image-bg .card-img {
        height: 180px;
    }
}

.table.table-compress td,
.table.table-compress th {
    white-space: nowrap;
    width: 1%;
}

.post-content ol {
    list-style: decimal inside;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    padding-right: 0;
    margin-bottom: 0;
}

.post-content ol li {
    position: relative;
    display: list-item;
    padding: 1rem 2rem;
    margin-bottom: -1px;
    color: #596F88;
    background-color: #FFF;
    border: 1px solid #DFE3E7;
}

.text-white-lighter {
    color: #f5f5f5 !important;
}

.text-white-lighter:hover {
    color: #ffffff;
    text-decoration: underline;
}

.text-dark-light {
    color: #444444 !important;
}

.text-dark-lighter {
    color: #777777 !important;
}

.text-white-lighter2 {
    color: #e5e5e5 !important;
}

.text-container p {
    margin-bottom: 0;
}

.card.bg-primary .text-container a {
    color: white !important;
    text-decoration: underline;
}

.card.bg-rgba-light .text-container a {
    color: #5A8DEE !important;
    text-decoration: underline;
}

.direction-ltr {
    direction: ltr;
}

.latin-font {
    /*font-family: cursive;*/
    font-family: "segoe ui", sans-serif;
}

.logout-btn {
    color: #475F7B !important;
    outline: none !important;
}

.logout-btn:hover {
    color: #5A8DEE !important;
}

.header-navbar .navbar-container ul.nav li .logout-btn:hover i.ficon {
    color: #5A8DEE !important;
}

label {
    font-size: 0.9rem;
}

#toast-container {
    width: 100%;
}

#toast-container.toast-bottom-left > div.toast {
    margin-right: auto;
}

#toast-container > div {
    width: fit-content;
    max-width: 50% !important;
}

@media screen and (max-width: 768px) {
    #toast-container > div {
        max-width: 90% !important;
    }
}

/**
hide header
 */
.breadcrumbs-top .content-header-title {
    display: none;
}

.toast-message {
    padding-left: 20px;
}

.image-modal {
    display: none; /* Hide the modal by default */
    position: fixed; /* Stay in place */
    z-index: 9999; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0, 0, 0); /* Fallback color */
    background-color: rgba(0, 0, 0, 0.9); /* Black w/ opacity */
}

.image-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: auto;
    max-width: 90%;
}

.image-modal .close {
    color: white;
    font-size: 40px;
    font-weight: bold;
    position: absolute;
    top: 30px;
    right: 40px;
    cursor: pointer;
}

.image-modal .close:hover,
.image-modal .close:focus {
    color: #999;
    text-decoration: none;
    cursor: pointer;
}

.payment-key-value {
    padding-right: 20px;
    padding-left: 20px;
    border-left: 1px solid #ddd;
}

.my-table-compressed {
    border-collapse: collapse;
    width: 100%;
}

.my-table-compressed th,
.my-table-compressed td {
    padding: 15px 7px; /* Adjust padding as needed */
    /*border: 1px solid #ddd; !* Add borders for better separation *!*/
    text-align: center;
}

.my-table-compressed th {
    background-color: #f2f2f2; /* Add background color to header row */
}

.ticket-file .avatar {
    width: 50px;
    height: 50px;
}

.ticket-file .file-extension {
    width: 100%;
    padding-top: 16px;
    font-size: 14px;
    text-decoration: none;
}

.check-group {
    border-bottom: 1px solid #ddd;
    padding: 17px 5px;
}

.auth-container {
    max-width: 405px;
    margin-right: auto;
    margin-left: auto;
}

/* Koala Styles */
.radio-group {
    /*background: #f5f5f5;*/
    border-radius: 5px;
    padding-right: 10px;
    padding-left: 10px;
    border: 1px solid #DFE3E7;
}


.radio-group .custom-radio {
    border-bottom: 1px solid #ddd;
    padding-top: 10px;
    padding-bottom: 10px;
}

.radio-group .custom-radio label {
    cursor: pointer;
    font-size: 0.88rem;
}

.radio-group .custom-radio label div {
    font-size: 0.84rem;
    margin-top: 2px;
    font-family: "primary-font", "segoe ui", "tahoma";
    font-weight: 400;
    line-height: 1.4;
    color: #727E8C;
}

.tooltip-help {
    /* background-color: #5A8DEE; */
    /* border: 1px solid #000000; */
    /* padding: 0px 6px; */
    /* border-radius: 50%; */
    color: #5A8DEE;
}

.tooltip-help i {
    position: relative;
    top: 5px;
    font-size: 20px;

}

.tooltip-inner {
    max-width: 100%;
    /* If max-width does not work, try using width instead */
    width: 450px;
    font-size: 14px;
}

label.btn {
    cursor: pointer;
}

textarea.form-control {
    max-height: 200px;
    /*overflow: auto !important;*/
}

textarea::-webkit-scrollbar {
    width: 5px;
}

.old-price {
    text-decoration: line-through !important;
}

.pricing-price-container {
    padding-bottom: 10px;
    /*border-bottom: 1px solid rgba(0, 0, 0, .125);*/
}

.pricing-price-container .pricing-price {
    color: #5A8DEE;
    font-size: 3rem;
}

.pricing-price-container .pricing-price small {
    color: #333;
    font-size: 1rem;
}

.pricing-price-container .last-price-container {
    display: block;
    font-size: 1.7rem;
}

.pricing-price-container .last-price-container .last-price {
    color: #444;
    text-decoration: line-through;
}

.pricing-card {
    height: 100%;
}

.pricing-card .card-body {
    padding-bottom: 0 !important;
}

.pricing-card ul {
    margin-bottom: 0;
}

.pricing-body {
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: right;
}

.pricing-body ul {
    list-style-type: none;
}

.pricing-body ul li {
    padding-top: 5px;
    padding-bottom: 5px;
}

.pricing-body ul li i {
    position: relative;
    top: 2px;
}

.pricing-buy {
    padding-top: 5px;
    text-align: center;
}

.pricing-buy a {
    padding-right: 20px;
    padding-left: 20px;
}

.pricing-nav-pills.nav-pills .nav-link, .nav-tabs .nav-link {
    border: 1px solid #5A8DEE;
    background-color: #f5f5f5;
}

.pricing-nav-pills.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #FFF;
    background-color: #5A8DEE;
}

.chat-message-box {
    height: 60px;
    padding-left: 30px !important;
    resize: none;
    /*padding-top: 13px;*/
}

.chat-show-page .footer {
    display: none;
}

/* Main container styling */
#messageBoxContainer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    padding-top: 10px;
    padding-bottom: 10px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    z-index: 1000;
}

/* Chat container styling */
#chatContainer, #chatListContainer {
    display: flex;
    flex-direction: column;
    /*max-height: calc(100vh - 200px);*/
    border-radius: 8px;
}

#chatContainer {
    margin-bottom: 180px;
}

#chatListContainer {
    overflow-y: auto;
    background-color: #fafafa !important;
}

.chat-card-container {
    width: 75%;
}

@media (min-width: 768px) {
    .chat-card-container {
        width: calc(100% - 260px);
    }

    #chatListContainer {
        position: fixed;
        top: 67px;
        bottom: 0;
        left: 0;
        width: 260px;
        max-height: 100%;
        /*background: #ddd;*/
    }

    #messageBoxContainer {
        width: calc(100% - 300px);
        left: 280px;
        transform: unset;
    }

}

@media (min-width: 992px) {
    .chat-card-container {
        width: calc(100% - 260px);
    }

    #chatListContainer {
        width: 260px;
    }

    #chatContainer {
        margin-bottom: 120px;
    }

    #messageBoxContainer {
        width: calc(100% - 300px);
    }
}

@media (min-width: 1200px) {
    .chat-card-container {
        width: calc(100% - 260px);
    }

    #chatListContainer {
        width: 260px;
    }

    #messageBoxContainer {
        width: calc(100% - 540px);
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (min-width: 1500px) {
    .chat-card-container {
        width: calc(100% - 320px);
    }

    #chatListContainer {
        width: 320px;
    }

    #messageBoxContainer {
        width: calc(100% - 600px);
        left: calc(50% + 30px);
        transform: translateX(-50%);
    }
}

@media (max-width: 767.98px) {
    #chatListContainer {
        max-height: unset;
        margin-bottom: 290px;
    }

    .chat-card-container {
        width: 100%;
    }

    #chatContainer {
        margin-bottom: 0;
    }

    #startChat h2.chat-title, .ql-text .article-title {
        font-size: 1.7rem !important;
    }
}

#chatContainer {
    padding-right: 15px;
    padding-left: 15px;
}


/* Chat card styling */
.chat-card {
    display: flex;
    flex-direction: column;
    /*background: #f9f9f9;*/
    /*border: 1px solid #ddd;*/
    /*height: calc(100vh - 200px);*/
}

/* Chat body styling */
.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 15px 15px 15px;
}

.image-card .chat-body {
    overflow-y: unset !important;
}


/* Message box styling */
/*.chat-message-box {
    resize: none;
    border-radius: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    width: 100%;
}*/

/* Chat messages styling */
.chat-message {
    margin: 10px 0;
    padding: 10px 20px;
    border-radius: 20px;
    /*max-width: 80%;*/
    word-wrap: break-word;
    display: inline-block;
}

.user-message {
    /*background-color: #e1ffc7;*/
    align-self: flex-end;
    text-align: right;
    margin-left: auto;
}

.ai-message {
    /*background-color: #fff;*/
    /*border: 1px solid #e1e1e1;*/
    /*align-self: flex-start;*/
    position: relative;
    padding-left: 10px;
}


.copy-icon {
    position: absolute;
    top: 15px;
    left: 10px;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    display: none;
    background-color: #dddd;
    padding: 9px 7px 5px 7px;
    border-radius: 10px;
}

.ai-message:hover .copy-icon {
    display: inline;
}

/* Additional styling for better appearance */
/*.input-group-append {
    margin-left: 10px;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}*/

/* Responsive design */
@media screen and (max-width: 600px) {
    #chatContainer {
        padding: 10px;
    }

    .chat-message {
        padding: 8px 16px;
    }

    #messageBoxContainer {
        padding: 5px;
    }

    .chat-card {
        /*height: calc(100vh - 120px);*/
    }
}

.chat-message-box.is-invalid {
    margin-bottom: 15px;
}

#chatListContainer a {
    padding-right: 0.7rem;
    padding-left: 0.7rem;
    font-size: 13px;
    background-color: #fafafa !important;
    /*overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;*/
}

#chatListContainer a:first-child {
    border-top: 0 !important;
}

#chatListContainer a:hover {
    background: rgba(90, 141, 238, 0.2) !important;
}


.article-output h1 {
    font-size: 2.2rem;
    line-height: 1.5;
}

.article-output h2 {
    font-size: 2rem;
    line-height: 1.5;
}

.article-output p {
    margin-bottom: 0.3rem;
}

.article-output img {
    max-width: 100%; /* Ensure images do not overflow the container */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove extra space below images */
    margin: 0 auto; /* Center images horizontally */
    border: 1px solid #ddd; /* Optional: Add a light border */
    border-radius: 8px; /* Optional: Add rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow */
}

#ticketForm .ql-editor {
    min-height: 150px;
}


/* Style for modal overlay (backdrop) */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
    z-index: 1050;
}

/* Modal container (hidden off-screen initially) */
.custom-left-modal {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background-color: white;
    z-index: 1051;
    transition: transform 0.3s ease-in-out;
}

/* Modal header styles */
.custom-left-modal .modal-header {
    border-radius: 0;
    padding: 20px;
    background-color: #5A8DEE;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Modal body styles */
.custom-left-modal .modal-body {
    padding: 20px 20px 60px 20px;
    overflow: auto;
    height: 100%;
}

/* Active state for showing modal */
.custom-left-modal.show {
    transform: translateX(0);
}

/* Active state for showing the overlay */
.custom-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.border-bottom-1 {
    border-bottom: 1px solid #ddd;
}

.font-small-4 {
    font-size: 1rem !important;
}


div.phpdebugbar {
    /*display: none;*/
}

.article-output h3 {
    font-size: 1.35rem !important;
}

.article-output table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    /*font-family: Arial, sans-serif;*/
    color: #333;
}

.article-output th, .article-output td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: right;
}

.article-output th {
    background-color: #f4f4f4;
    color: #555;
    font-weight: bold;
}

.article-output tr:nth-child(even) {
    background-color: #f9f9f9;
}

.article-output tr:hover {
    background-color: #f1f1f1;
}

.article-output th, .article-output td {
    transition: background-color 0.3s ease;
}

.article-output table caption {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
    font-weight: bold;
    text-align: right;
}

.ql-text p {
    margin-bottom: 0 !important;
}

.ql-text h6 {
    font-size: 1rem;
}

.ql-text h5 {
    font-size: 1.1rem;
}

.ql-text h4 {
    font-size: 1.2rem;
}

.ql-text h3 {
    font-size: 1.4rem;
}

.ql-text h2 {
    font-size: 1.7rem;
}

.ql-text h1 {
    font-size: 2rem;
}

.ql-align-center {
    text-align: center;
}

.btn-chevron {
    background: transparent !important;
    color: #555;
    border: 0 !important;
    outline: none !important;
    box-shadow: unset !important;
    position: absolute;
    left: 5px;
    top: 2px;
    height: 100%;
    z-index: 9;
}

.btn-chevron i {
    font-size: 24px;
}

.select2-container--classic .select2-selection--single .select2-selection__arrow b, .select2-container--default .select2-selection--single .select2-selection__arrow b {
    webkit-transform: unset !important;
    -ms-transform: unset !important;
    transform: unset !important;
    margin-left: 4px !important;
}

.select2-container--default .select2-selection--single {
    border: 1px solid #DFE3E7 !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #475F7B !important;
}

.create-preset-container {
    margin-top: -10px;
}

.create-preset {
    margin-right: auto;
    display: block;
    position: relative;
    top: 20px;
    z-index: 99;
}

.select-buttons {
    position: absolute;
    bottom: 6px;
    left: 35px;
}

.btn-xs {
    padding: 0.1rem 0.4rem !important;
    margin-right: 2px;
}

.project-container {
    border-radius: 5px;
    padding-top: 5px;
    padding-bottom: 5px;
    margin-top: 7px;
}

.tooltip-inner {
    text-align: right !important;
    line-height: 1.6 !important;
    /* word-spacing: 0; */
    font-weight: 400 !important;
    font-size: 14px !important;
}

@media (max-width: 400px) {
    .create-preset {
        z-index: 99;
        top: 0;
        margin: 15px 0 5px auto;
    }

    .create-preset-container {
        margin-top: 0;
    }
}

@media (max-width: 450px) {
    .btn-group-grid-mobile {
        display: grid;
    }
}

/**icons**/

/* Main container styling */
.icon-picker {
    position: relative;
    display: inline-block;

}

#icon-picker-btn {
    min-width: 320px;
}

/* Hidden dropdown initially */
#icon-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    width: 100%;
    max-height: 300px; /* Adjust max height */
    overflow-y: auto;
    border: 1px solid #ddd;
    background-color: #fff;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px;
}

/* Icon item styling */
.icon-item {
    width: 60px;
    text-align: center;
    margin: 5px;
    cursor: pointer;
    display: inline-block;
}

.icon-item:hover {
    background-color: #f5f5f5;
    border-radius: 5px;
}

/* Icon styling */
.icon-item i {
    font-size: 24px;
    color: #333;
}

/* Search bar styling */
#icon-search {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Show dropdown when active */
.icon-picker.open #icon-list {
    display: block;
}

.polish-dropdown .dropdown-menu {
    top: 100% !important; /* Right below the button */
    left: 50% !important; /* Start from center */
    transform: translateX(-50%) !important; /* Center horizontally */
    margin-top: 8px !important; /* Optional spacing */
    right: auto !important; /* Prevent Bootstrap override */
    z-index: 1050;
}

/* Center the dropdown arrow */
.polish-dropdown .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -6px; /* Adjust based on arrow size */
    left: 50%;
    right: unset;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: white; /* Match your dropdown background */
    border-top: 1px solid #DFE3E7;
    border-left: 1px solid #DFE3E7;
    z-index: 10;
}

@media screen and (max-width: 768px) {
    .polish-dropdown .dropdown-menu {
        position: fixed !important;
        top: unset !important;
        bottom: 10px !important; /* adjust this if needed */
        left: 20px !important;
        right: 20px !important;
        width: calc(100% - 40px) !important;
        z-index: 1050; /* same as Bootstrap dropdown */
        transform: none !important;
        border-radius: 0 !important;
    }

    .polish-dropdown .dropdown-menu::before {
        display: none;
    }
}

/*
.dropdown-notification .read-notification .avatar{
    background-color: #FFF !important;
}
.dropdown-notification .unseen .avatar{
    background-color: #efefef !important;
}
*/

.dashboard-notification h6 {
    font-size: 13px;
}

.dashboard-notification {
    font-size: 14px;
}

.quality-square {
    width: 10px;
    height: 6px;
    margin-left: 2px;
    border-radius: 0.1rem;
}

.html-select .dropdown-item {
    display: block;
    border-bottom: 1px solid #eee;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.html-select .dropdown {
    z-index: 9999999;

}

.html-select .mh-200 {
    max-height: 305px;
    overflow: auto;
}

.image-model-select-container .html-select .dropdown-item {
    padding-top: 7px !important;
    padding-bottom: 7px !important;
    min-width: 315px;
}

.html-select .dropdown-item h5 {
    font-size: 14px;
    margin-bottom: 3px;
}

.html-select .dropdown-item .badge {
    max-height: fit-content;
    margin-top: auto;
    margin-bottom: auto;
    font-size: 11px;
    padding: 5px 12px;
}

.html-select-label {
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    padding-top: 5px;
    padding-bottom: 5px;
    /*border-bottom: 1px solid #eee;*/
}

.size-ratio-square-container {
    width: 32px;
    height: 32px;
    margin-left: 5px;
}

.size-ratio-square {
    background-color: rgba(59, 130, 246, 0.6);
    border-width: 1px;
    border-color: rgba(59, 130, 246, 1);
    border-radius: 2px;
    padding-top: 9px;
    padding-bottom: 9px;
}

.letter-spacing-5 {
    letter-spacing: 0.4px;
}

.image-size-select-container .dropdown-toggle {
    letter-spacing: 0.4px;
}

.custom-switch .custom-control-label {
    margin-top: 6px;
}

.html-select .show > .dropdown-toggle {
    color: #FFF !important;
}

.image-thumb {
    position: relative;
    width: 75px;
    height: 75px;
    margin-left: 0.5rem;
}
.image-thumb-sm {
    position: relative;
    width: 48px;
    height: 48px;
    margin-left: 0.5rem;
}


.thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.25rem;
    border: 1px solid #dee2e6;
}

.thumb-remove {
    position: absolute;
    top: 1px;
    right: 1px;
    background: #dc2626;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    padding: 1px;
}

.upload-slot {
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ref-image-container.mg-disabled #upload-btn-init {
    cursor: not-allowed !important;
}

.ref-image-container.mg-disabled {
    opacity: 0.5;
}
.ref-image-container.mg-disabled button,.ref-image-container.mg-disabled .thumb-remove{
    pointer-events: none;
}

.ref-image-container.mg-disabled #upload-btn {
    display: none !important;
}

.ref-image-container.mg-disabled + .disabled-message {
    display: block !important;
}

.chat-message-box {
    min-height: 74px !important;
}

.image-form-outer {
    position: fixed;
    bottom: 10px;
    width: 100%;
    right: 0;
}
.image-form-inner{
    padding: 5px 20px;
    background-color: white;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 1200px) {
    .image-form-outer {
        right: 260px;
        width: calc(100% - 260px);
    }
}
@media (max-width: 767px) {
    .image-form-outer .dropdown-toggle{
        padding-right: 7px;
        padding-left: 7px;
    }
    .image-form-outer .dropdown-toggle::after {
        left: 0;
        padding: 0;
        right: unset;
        margin: 0;
        vertical-align: 0;
    }
    .chat-message-box {
        min-height: unset !important;
        max-height: 47px !important;
    }
}


.img-buttons {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -5px;
    /* padding: 5px; */
    background: rgb(31, 41, 55);
    border-radius: 5px;
    display: none;
}
button.img-button {
    border: 0;
    outline: 0;
    background: none;
    color: #f5f5f5;
    padding: 8px 12px;
}
button.img-button:hover {
    color: #FFF;
}
.img-url-container:hover .img-buttons{
    display: block;
}
.tooltip.custom-tooltip .tooltip-inner {
    width: unset !important;
}
.image-buttons .img-button:hover {
    color: #000;
    background-color: #fafafa;
    border-radius: 5px;
}

.image-buttons .img-button {
    color: #333;
}

.bordered-with-title{
    position: relative;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 20px;
    margin-bottom: 10px;
    padding: 15px 15px 0 15px;
}
.border-title{
    position: absolute;
    top: -12px;
    right: 15px;
    /*transform: translateX(-50%);*/
    background: white;
    padding: 0 10px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #475F7B;
    line-height: 1.85;
}
#subcategoriesList .list-group-item {
    padding: 12px;
    font-size: 14px;
}
@media (max-width: 400px) {
    .image-thumb{
        width: 50px;
        height: 50px;
    }
    .upload-slot {
        width: 50px;
        height: 50px;
    }
    button.img-button {
        padding: 5px 7px;
    }
}
