/* Helpers */
.tmw-text-color-grey {
    color: #9c9c9c;
}

.tmw-direction-rtl {
    direction: rtl;
}

.w-100 {
    width: 100% !important;
}

.tmw-d-none {
    display: none;
}

.tmw-d-flex {
    display: flex;
}

.tmw-d-inline-flex {
    display: inline-flex;
}

.tmw-d-block {
    display: block;
}

.tmw-mb-0px {
    margin-bottom: 0px;
}

.tmw-mb-5px {
    margin-bottom: 5px;
}

.tmw-mt-20px {
    margin-top: 20px;
}

.tmw-mb-20px {
    margin-bottom: 20px;
}

.tmw-my-7px {
    margin-top: 7px;
    margin-bottom: 7px;
}

.tmw-my-20px {
    margin-top: 20px;
    margin-bottom: 20px;
}

.tmw-mx-5px {
    margin-left: 5px;
    margin-right: 5px;
}

.tmw-ml-5px {
    margin-left: 5px;
}

.tmw-mr-5px {
    margin-right: 5px;
}

.tmw-float-left {
    float: left;
}

.tmw-float-right {
    float: right;
}

/* Popup */
.tmw-setup-availability-popup-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    transition: ease opacity 300ms;
    z-index: 999999;
}

.tmw-setup-availability-popup-wrapper .tmw-setup-availability-popup-content {
    width: 100%;
    max-width: 600px;
    padding: 25px;
    background: #FFF;
}

.tmw-setup-availability-popup-wrapper.tmw-hide {
    opacity: 0;
    visibility: hidden;
}

/* TM Whatsapp Admin Settings */
.tmw-whatsapp-admin-settings {
    opacity: 0;
    visibility: hidden;
    transition: ease opacity 300ms;
    /* Helpers */
    /* Tabs */
    /* Form Control */
    /* Form Control Tooltip */
    /* Media Uploader */
    /* Buttons */
    /* Attendants */
    /* Switch */
    /* Radio Switch */
    /* Conditional Field */
}

.tmw-whatsapp-admin-settings.tmw-whatsapp-admin-settings-show {
    opacity: 1;
    visibility: visible;
}

.tmw-whatsapp-admin-settings * {
    box-sizing: border-box;
}

.tmw-whatsapp-admin-settings .tmw-bg-light {
    background-color: #FFF;
}

.tmw-whatsapp-admin-settings .tmw-tab-wrapper .tmw-tab-navigation {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.tmw-whatsapp-admin-settings .tmw-tab-wrapper .tmw-tab-navigation > li {
    display: inline-flex;
    margin-bottom: 0;
}

.tmw-whatsapp-admin-settings .tmw-tab-wrapper .tmw-tab-navigation > li + li {
    margin-left: 3px;
}

.tmw-whatsapp-admin-settings .tmw-tab-wrapper .tmw-tab-navigation > li > a {
    background: #f9f9f9;
    padding: 20px 40px;
    text-align: center;
    color: #212121;
    font-weight: 500;
    text-decoration: none;
}

.tmw-whatsapp-admin-settings .tmw-tab-wrapper .tmw-tab-navigation > li.ui-tabs-active > a {
    background: #FFF;
}

.tmw-whatsapp-admin-settings .tmw-tab-wrapper .tmw-tab-content {
    position: relative;
}

.tmw-whatsapp-admin-settings .tmw-form-group {
    display: flex;
    align-items: flex-start;
}

.tmw-whatsapp-admin-settings .tmw-form-control-label {
    display: inline-block;
    margin-top: 1px;
    width: 50%;
}

.tmw-whatsapp-admin-settings .tmw-form-control-label .tmw-form-control-description {
    margin-top: 0;
    margin-bottom: 0;
    color: #9c9c9c;
}

.tmw-whatsapp-admin-settings .tmw-form-control {
    width: 50%;
    max-width: none;
    border-color: #e2e2e2;
    border-radius: 0;
    padding: 7px 16px;
    max-height: 44px;
}

.tmw-whatsapp-admin-settings .tmw-form-control.tmw-form-control-100 {
    width: 100%;
}

.tmw-whatsapp-admin-settings .tmw-form-control-tooltip {
    position: relative;
    color: #08c;
}

.tmw-whatsapp-admin-settings .tmw-form-control-tooltip .tmw-form-control-tooltip-popup {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    left: 0;
    bottom: 100%;
    background: #ececec;
    color: #8c8c8c;
    padding: 20px;
    width: 100vw;
    max-width: 380px;
    box-shadow: 0px 0px 60px -25px rgba(0, 0, 0, 0.3);
    transition: ease opacity 300ms;
}

.tmw-whatsapp-admin-settings .tmw-form-control-tooltip .tmw-form-control-tooltip-popup p {
    margin-top: 10px;
    color: #8c8c8c;
    margin-bottom: 0;
    font-size: 12px;
}

.tmw-whatsapp-admin-settings .tmw-form-control-tooltip .tmw-form-control-tooltip-popup p img {
    display: block;
    margin-top: 7px;
}

.tmw-whatsapp-admin-settings .tmw-form-control-tooltip .tmw-form-control-tooltip-popup strong {
    color: #212121;
}

.tmw-whatsapp-admin-settings .tmw-form-control-tooltip:hover .tmw-form-control-tooltip-popup {
    opacity: 1;
    visibility: visible;
    transition: ease opacity 300ms;
}

.tmw-whatsapp-admin-settings .tmw-media-uploader {
    position: relative;
    display: inline-flex;
    border: 1px solid #ddd;
    min-width: 100px;
    min-height: 100px;
    cursor: pointer;
}

.tmw-whatsapp-admin-settings .tmw-media-uploader .tmw-metabox-image-field-preview {
    -o-object-fit: cover;
       object-fit: cover;
}

.tmw-whatsapp-admin-settings .tmw-media-uploader .tmw-media-uploader-remove-btn {
    display: none;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: #fd1919;
    cursor: pointer;
    transform: translate3d(-50%, -30%, 0);
    transition: ease transform 300ms, ease opacity 300ms;
}

.tmw-whatsapp-admin-settings .tmw-media-uploader:hover .tmw-media-uploader-remove-btn {
    transform: translate3d(-50%, -50%, 0);
}

.tmw-whatsapp-admin-settings .tmw-media-uploader.remove-state .tmw-media-uploader-remove-btn {
    display: block;
}

.tmw-whatsapp-admin-settings .tmw-media-uploader.remove-state:hover .tmw-media-uploader-remove-btn {
    opacity: 1;
}

.tmw-whatsapp-admin-settings .tmw-button-primary {
    background: #0073aa;
    padding: 20px 40px;
    color: #FFF;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
}

.tmw-whatsapp-admin-settings .attendant {
    position: relative;
    margin-bottom: 20px;
    padding: 30px;
    background: #fdfdfd;
}

.tmw-whatsapp-admin-settings .attendant:nth-child(2n+3) {
    background: #f9f9f9;
}

.tmw-whatsapp-admin-settings .attendant .attendant-id {
    position: absolute;
    top: 0px;
    left: 0px;
    color: #9c9c9c;
    font-weight: 500;
    letter-spacing: -0.5px;
    background: #f7f7f7;
    padding: 5px 13px;
}

.tmw-whatsapp-admin-settings .attendant .attendant-remove {
    color: #da0000;
    transition: ease color 300ms;
}

.tmw-whatsapp-admin-settings .attendant .attendant-remove:hover {
    color: red;
}

.tmw-whatsapp-admin-settings .attendant-add-new {
    display: inline-flex;
}

.tmw-whatsapp-admin-settings .custom-checkbox-switch {
    position: relative;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    width: 50px;
    height: 26px;
    background-color: #CCC;
    border: 1px solid #D9DADC;
    border-radius: 50px;
    cursor: pointer;
    transition: ease all 300ms;
}

.tmw-whatsapp-admin-settings .custom-checkbox-switch:before {
    content: none !important;
}

.tmw-whatsapp-admin-settings .custom-checkbox-switch:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 6px;
    width: 15px;
    height: 15px;
    background-color: #FFF;
    border-radius: 50%;
    transform: translate3d(0, -50%, 0);
    transition: ease left 300ms;
}

.tmw-whatsapp-admin-settings .custom-checkbox-switch:checked {
    background-color: #08c;
    border-color: #08c;
}

.tmw-whatsapp-admin-settings .custom-checkbox-switch:checked:after {
    left: 27px;
}

.tmw-whatsapp-admin-settings .custom-radio-switch {
    display: flex;
}

.tmw-whatsapp-admin-settings .custom-radio-switch input {
    position: absolute !important;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    width: 1px;
    border: 0;
    overflow: hidden;
}

.tmw-whatsapp-admin-settings .custom-radio-switch input:checked + label {
    background-color: #08c;
    box-shadow: none;
    color: #FFF;
}

.tmw-whatsapp-admin-settings .custom-radio-switch label {
    background-color: #FFF;
    color: rgba(0, 0, 0, 0.6);
    font-size: 14px;
    line-height: 1;
    text-align: center;
    padding: 13px 20px;
    margin-right: -1px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0;
    box-shadow: none;
    transition: all 0.1s ease-in-out;
}

.tmw-whatsapp-admin-settings .custom-radio-switch label:hover {
    cursor: pointer;
}

.tmw-whatsapp-admin-settings .tmw-conditional-field.tmw-conditional-field-hide {
    display: none;
    opacity: 0;
    visibility: hidden;
}

/* TM Whatsapp Admin Wrapper */
.tmw-whatsapp-admin-wrapper {
    position: fixed;
    top: 80px;
    z-index: 9999;
}

/* TM Settings Changed Warning */
.tmw-settings-changed-warning {
    background: #ffec63;
    padding: 15px 25px;
    font-weight: 600;
    transition: ease opacity 300ms;
}

.tmw-settings-changed-warning.tmw-hide {
    opacity: 0;
    visibility: hidden;
    display: none;
}

.tmw-settings-changed-warning p {
    margin: 0;
}

/* Clear All Fields Button */
.tmw-skin-clear-all-fields {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #da0000;
    transition: ease color 300ms;
}

.tmw-skin-clear-all-fields:hover {
    color: red;
}

/* Padding Margin Control */
.tmw-control-padding-margin {
    display: flex;
}

.tmw-control-padding-margin .tmw-control-padding-margin-input-wrapper {
    display: flex;
}

.tmw-control-padding-margin .tmw-control-padding-margin-input-wrapper .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    padding: 0 5px;
}

/* Timepicker Control */
.tmw-timepicker {
    background: #FFF !important;
}

.flatpickr-calendar {
    max-width: 160px !important;
    z-index: 999999 !important;
}

.flatpickr-time input:hover,
.flatpickr-time .flatpickr-am-pm:hover,
.flatpickr-time input:focus,
.flatpickr-time .flatpickr-am-pm:focus {
    background: #FFF !important;
}

/* Setup Availabitlity */
.tmw-setup-availability-days-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.tmw-setup-availability-days-wrapper .tmw-setup-availability-day {
    font-size: 10px;
    font-weight: bold;
    color: #FFF;
    text-transform: uppercase;
    padding: 6px 12px;
    background: #ccc;
    border-radius: 4px;
    margin-top: 5px;
    text-decoration: none;
}

.tmw-setup-availability-days-wrapper .tmw-setup-availability-day + .tmw-setup-availability-day {
    margin-left: 4px;
}

.tmw-setup-availability-days-wrapper .tmw-setup-availability-day.active {
    background-color: green;
}

.tmw-setup-availability-trigger-all-days {
    text-decoration: none;
    margin-top: 5px;
    display: inline-block;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 991px) {
    .tmw-form-group.tmw-form-group-mobile-md {
        flex-direction: column;
        align-items: flex-start !important;
    }
    .tmw-form-group.tmw-form-group-mobile-md .tmw-form-control-label,
    .tmw-form-group.tmw-form-group-mobile-md .tmw-form-control {
        width: 100%;
    }
    .tmw-form-group.tmw-form-group-mobile-md .tmw-form-control,
    .tmw-form-group.tmw-form-group-mobile-md .custom-radio-switch,
    .tmw-form-group.tmw-form-group-mobile-md .tmw-control-padding-margin,
    .tmw-form-group.tmw-form-group-mobile-md .tmw-form-control-checkbox,
    .tmw-form-group.tmw-form-group-mobile-md .tmw-media-uploader,
    .tmw-form-group.tmw-form-group-mobile-md .wp-picker-container {
        margin-top: 10px;
    }
    .row .tmw-form-group.tmw-form-group-mobile-md + .tmw-form-group {
        margin-top: 10px;
    }
}

/* WooCommerec Metabox */
.tmw-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.tmw-input {
    width: 100%;
    padding: 5px 7px;
}

/* RTL - TM Whatsapp Admin Settings */
.tmw-whatsapp-admin-settings.tmw-direction-rtl {
    /* Tabs */
    /* Attendants */
    /* Clear All Fields Button */
}

.tmw-whatsapp-admin-settings.tmw-direction-rtl .tmw-tab-wrapper .tmw-tab-navigation > li + li {
    margin-right: 3px;
    margin-left: 0;
}

.tmw-whatsapp-admin-settings.tmw-direction-rtl .tmw-form-control.tmw-form-control-select {
    background: #fff url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E") no-repeat left 5px top 55%;
}

.tmw-whatsapp-admin-settings.tmw-direction-rtl .attendant .attendant-id {
    right: 0px;
    left: auto;
}

.tmw-whatsapp-admin-settings.tmw-direction-rtl .tmw-skin-clear-all-fields {
    left: 25px;
    right: auto;
}

.tmw-whatsapp-admin-settings.tmw-direction-rtl .tmw-setup-availability-days-wrapper .tmw-setup-availability-day + .tmw-setup-availability-day {
    margin-right: 4px;
    margin-left: 0;
}
