h2, h3 {
    font-size: 1.3em !important;
    margin: 1em 0 !important;
    font-weight: 600 !important;
}

/* Appointments list */
.appointment-table .column-id {
    width: 8ch;
}

.appointment-table th, .appointment-table td, .customer-table th, .customer-table td {
    padding: 10px 8px !important;
    vertical-align: middle !important;
}

.appointment-status {
    display: inline-flex;
    line-height: 2.5em;
    border-radius: 4px;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
    margin: -.25em 0;
    cursor: inherit !important;
    white-space: nowrap;
    max-width: 100%;
    padding: 0 1em;
}

.appointment-table .edit-appointment {
    font-weight: 600;
    vertical-align: middle;
}

.appointment-table .edit-appointment-icon {
    float: right;
    width: 16px;
    padding: 20px 4px 4px 4px;
    height: 0;
    overflow: hidden;
    position: relative;
    border: 2px solid transparent;
    border-radius: 4px;
}

.appointment-table .edit-appointment-icon::before {
    font-family: dashicons;
    content: "\f464";
    font-weight: 400;
    font-variant: normal;
    text-transform: none;
    margin: 0;
    text-indent: 0;
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    line-height: 16px;
    font-size: 14px;
    vertical-align: middle;
    top: 4px;
}

.appointment-table .appointment-datetime {
    vertical-align: -webkit-baseline-middle;
}

.appointment-table .pending {
    background: #f8dda7;
    color: #573b00;
}

.appointment-table .confirmed {
    background: #c6e1c6;
    color: #2c4700;
}

.appointment-table .completed {
    background: #c8d7e1;
    color: #003d66;
}

.appointment-table .cancelled {
    color: #454545;
    background: #e5e5e5;
}

.appointment-table .missed {
    background: #eba3a3;
    color: #570000;
}

.appointment-table .actions {
    padding: 0 7px;
    margin-right: 5px;
}

.appointment-table .action-confirmed::before {
    font-family: dashicons;
    font-size: 14px;
    content: "\f159";
}
.appointment-table .action-completed::before {
    font-family: dashicons;
    font-size: 14px;
    content: "\f147";
}
.appointment-table .action-cancelled::before {
    font-family: dashicons;
    font-size: 14px;
    content: "\f158";
}
.appointment-table .action-missed::before {
    font-family: dashicons;
    font-size: 14px;
    content: "\f534";
}

#add-appointment-modal button {
    float: right;
}

/* Add new appointment modal */
.yo-booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.yo-booking-modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    width: 500px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
}

.yo-booking-modal-content .form-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 12px;
}

.yo-booking-modal-content .col-1-3 {
    width: 32%;
    display: grid;
}

.yo-booking-modal-content .col-2-3 {
    width: 65%;
    display: flex;
    justify-content: space-between;
}

.yo-booking-modal-content .col-1-2 {
    width: 48%;
    display: grid;
}

#appointment_date, #appointment_time, #appointment_duration, #customer_name, #customer_phone, #customer_email {
	width: 158px;
}

#customer_note, #staff_note {
    width: 100%;
}

/* Edit appointment */
#edit-appointment-form #edit_appointment_duration {
    width: 80px;
}
#edit-appointment-form #edit_customer_name, #edit-appointment-form #edit_customer_phone, #edit-appointment-form #edit_customer_email {
    width: 180px;
}

#edit-appointment-form p, #edit-customer-modal p {
    display: flex;
}

#edit-appointment-form textarea {
    width: 300px;
}

#edit-appointment-form .updated-at {
    font-size: 0.9em;
}

#edit-appointment-form #delete-link {
    margin-right: 8px;
}

.customer_name {
    display: relative;
}

#edit_customer_name_text {
    display: flex;
    align-items: center;
    justify-content: end;
    font-size: 90%;
}

#edit_customer_name_text .dashicons {
    font-size: 16px;
    margin-top: 5px;
}

#edit_customer_name_text a, .connected-user a {
    text-decoration: none;
}

/* Services */
#service_duration {
    width: 70px;
}

.id-column {
    width: 3em;
}

.actions-column {
    width: 6em;
}

.inline-edit-legend {
    margin: 0;
    padding: .2em 0;
    line-height: 2.5;
    font-weight: 600;
}

/* Staff */
#staff_custom_schedule th {
    width: 100px;
}

.select-all-services {
    float: right;
    margin-right: 30px;
}

/* Customers */
#add-customer-modal #customer_name, #add-customer-modal #customer_phone, #add-customer-modal #customer_email, #edit-customer-modal #edit_customer_name, #edit-customer-modal #edit_customer_phone, #edit-customer-modal #edit_customer_email {
    width: 180px;
}

#add-customer-modal textarea, #edit-customer-modal textarea {
    width: 300px;
}

.yo-booking-modal-content .message {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.message .customer-email-message, .message .customer-phone-message {
    font-size: 0.9em;
    color: #d63638;
}

#add-customer-modal .button, #edit-customer-modal .button {
    float: right;
}

.customer-table .actions {
    padding: 0 7px;
}

.customer-table .column-id {
    width: 3em;
}

.customer-table .column-appointments {
    width: 6.5em;
}

.customer-table .column-actions {
    width: 4em;
}

.customer-table .edit-customer::before {
    font-family: dashicons;
    font-size: 14px;
    content: "\f464";
}

#edit-customer-modal #delete-link {
    margin-left: 0;
}

/* Notifications */
.notifications-description {
    margin-bottom: 20px;
}

.notifications-table th {
    font-weight: 700;
}

.notifications-table th, .notifications-table td {
    display: table-cell !important;
    padding: 1em !important;
    vertical-align: middle !important;
    line-height: 1.75em;
}

.notifications-table .column-status {
    width: 1em;
}

.notifications-table .status-enabled, .notifications-table .status-disabled {
    font-size: 1.6em;
    display: block;
    height: 1em;
    width: 1em;
}

.notifications-table .status-disabled:before {
    font-family: 'dashicons';
    line-height: 1;
    margin: 0;
    text-indent: 0;
    content: "\f153";
    color: #ccc;
}

#edit-email-modal input[type=text] {
    width: 350px;
}

#edit-email-modal textarea {
    width: 350px;
    height: 200px;
}

.email-guide {
    font-size: .9em;
}
.email-guide .dashicons {
    font-size: 16px;
    vertical-align: middle;
    width: auto;
    height: auto;
}
.email-guide a {
    text-decoration: none;
    vertical-align: middle;
}

/* Settings > Section2 */
li.select2-search.select2-search--inline {
    margin-bottom: 0;
}

.select2-selection__choice {
    margin: 5px 5px 0 0 !important;
    padding: 4px 6px !important;
}

.select2-container--open .select2-dropdown {
    border-color: var(--wp-admin-theme-color, #007cba);
}

.select2-container--open .select2-dropdown--above, .select2-container--open .select2-dropdown--below {
    box-shadow: 0 0 0 1px var(--wp-admin-theme-color,#007cba),0 2px 1px rgba(0,0,0,.1);
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border: solid 1px !important;
    border-color: var(--wp-admin-theme-color, #007cba);
    box-shadow: 0 0 0 1px var(--wp-admin-theme-color, #007cba);
}

.select2-results__option {
    padding: 8px !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--wp-admin-theme-color,#007cba) !important;
}

/* Settings > Appearance */
.yo-booking-settings-appearance td {
    display: flex;
}