/**
** Author: Antoine Monnin
*/

.sem-block {
    display: block;
}

.sem-none {
    display: none;
}

.sem-flex {
    display: flex;
}

.sem-maintenance-notice-settings input,
textarea {
    width: 100%;
}

.toggle-switch {
    display: none !important;
}

.toggle-switch+label {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    background-color: deepskyblue;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.toggle-switch.toggle-classic+label {
    background-color: #ccc;
}

.toggle-switch+label:before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.2s;
}

.toggle-switch:checked+label {
    background-color: deepskyblue;
}

.toggle-switch:checked+label:before {
    transform: translateX(20px);
}

.sem-maintenance-notice-settings {
    position: relative;
}

.sem-maintenance-notice-settings .sem-maintenance-notice-active {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2000;
}

.sem-maintenance-notice-settings select.with-preview {
    height: 34px !important;
    width: 100%;
    max-width: calc(100% - 34px) !important;
    border-radius: 3px 0 0 3px;
    border-color: #ced4da;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sem-maintenance-notice-settings #sem-maintenance-notice-color-preview,
#sem-maintenance-notice-icon-preview {
    max-height: 34px;
    width: 34px;
    border-radius: 0 3px 3px 0;
    border-right: 1px solid #ced4da;
    border-top: 1px solid #ced4da;
    border-bottom: 1px solid #ced4da;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sem-darkblue {
    background-color: #4580bf !important;
    * {color: white !important;}
}

.sem-lightblue {
    background-color: lightblue !important;
    * {color: black !important;}
}

.sem-gray {
    background-color: #ebebeb !important;
    * {color: black !important;}
}

.sem-red {
    background-color: #b54432 !important;
    * {color: white !important;}
}

#sem-maintenance-notice-icon-preview span {
    font-size: 24px;
    margin-left: -5px;
    margin-top: -5px;
}

#preview {
    margin-top: 20px;
    background-color: lightblue;
    padding: 10px;
    border-radius: 5px;
}

#sem-maintenance-notice {
    all: initial !important;
    position: fixed !important;
    bottom: 75px !important;
    left: 20px !important;
    z-index: 10000 !important;
    margin: 0 20px 0 0 !important;
    height: auto !important;
    width: calc(100vw - 40px) !important;
    max-width: 600px !important;
    border-radius: 5px !important;
    opacity: 0.95 !important;
    border: solid 1px #ced4da !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

#sem-maintenance-notice .sem-maintenance-notice-header {
    padding: 10px 10px 5px 10px !important;
    font-size: 25px !important;
    .dashicons {
        font-size: 25px !important;
        width: 25px !important;
        height: 25px !important;
    }
}

#sem-maintenance-notice .sem-maintenance-notice-content {
    padding: 10px 5px 10px 10px !important;
    background-color: white !important;
    p {
        margin: 0px !important;
    }
}

#sem-maintenance-notice .sem-maintenance-notice-message {
    margin-bottom: 5px !important;
    white-space: pre-line !important;
}

#sem-maintenance-notice .sem-maintenance-notice-title {
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
}

#sem-maintenance-notice .notice-buttons {
    display: flex !important;
    justify-content: end !important;
}

#sem-maintenance-notice .sem-btn {
    border-radius: 5px !important;
    border: solid 1px #ced4da !important;
    padding: 5px !important;
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    overflow: hidden !important;
}

#sem-maintenance-notice .sem-success {
    background-color: #497D74 !important;
    color: #fff !important;
    transition: all 0.5s ease !important;
}

#sem-maintenance-notice .sem-success:hover {
    background-color: #fff !important;
    color: #497D74 !important;
    border-color: #497D74 !important;
}

#sem-maintenance-notice .sem-info {
    background-color: #4580bf !important;
    color: #fff !important;
    transition: all 0.5s ease !important;
}

#sem-maintenance-notice .sem-info:hover {
    background-color: #fff !important;
    color: #4580bf !important;
    border-color: #4580bf !important;
}

#sem-maintenance-notice .dashicons.dashicons-infos {
    font-size: 24px !important;
}

#sem-maintenance-notice .col-11 p {
    white-space: normal !important;
    overflow: visible !important;
    height: auto !important;
    min-height: 20px !important;
    word-break: break-word !important;
}

.preview-notice {
    height: 150px !important;
    max-height: 150px !important;
    overflow-y: scroll !important;
}

@media screen and (max-width: 782px) {
    .sem-maintenance-notice-settings #sem-maintenance-notice-color-preview,
    #sem-maintenance-notice-icon-preview {
        height: 40px;
    }
}