.hidden {
    display: none;
}

header {
    z-index: 10 !important;
}

.notif-preview_button {
    .text {
        display: flex;
        gap: 5px;
        justify-content: center;
        align-items: center;
        opacity: 1;
        transition: opacity 150ms ease-in-out;
    }

    .loader {
        opacity: 0;
        transition: opacity 250ms ease-in-out;

    }

    &.active {
        .text {
            opacity: 0;
        }

        .loader {
            opacity: 1;
        }
    }
}

.loader {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: block;
    margin: 15px auto;
    position: absolute;
    background: #FFF;
    box-shadow: -24px 0 #FFF, 24px 0 #FFF;
    box-sizing: border-box;
    animation: shadowPulse 2s linear infinite;
}

@keyframes shadowPulse {
    33% {
        background: #FFF;
        box-shadow: -24px 0 #d60407, 24px 0 #FFF;
    }

    66% {
        background: #d60407;
        box-shadow: -24px 0 #FFF, 24px 0 #FFF;
    }

    100% {
        background: #FFF;
        box-shadow: -24px 0 #FFF, 24px 0 #d60407;
    }
}



.swal-notif-preview-container {
    max-width: 80vw !important;
    max-height: 80vh;
    background: transparent;
    width: fit-content;

    .swal2-html-container {
        margin: 1em 0 !important;
        height: 100%;
        overflow: auto;
    }

    .swal2-close {
        position: absolute;
        translate: 40% -40%;
        text-shadow: 1px 1px 3px black;
    }
}

.notif-form-container {
    .notif-form-wrapper {
        display: flex;
        justify-content: space-evenly;
        align-items: center;

        &>* {
            width: min(500px, 48%);
        }

        form {
            display: grid;
            row-gap: 15px;

            .notif-field {
                display: flex;
                flex-direction: column;

                label {
                    font-size: 12px;
                    translate: 10px 5px;
                    font-weight: 600;
                    background: #fff;
                    width: fit-content;
                    padding: 0 5px;
                    line-height: 1;
                }

                :where(input, select) {
                    width: 100%;
                    padding: 15px 10px;
                    border-radius: 7px;
                }
            }

            input[type=submit] {
                border: 0;
                background: #d60407;
                padding: 15px 25px;
                color: #FFF;
                width: 100%;
                margin-top: 25px;
                font-weight: bold;
                text-transform: uppercase;
                cursor: pointer;
                transition: 250ms ease-in-out;

                &:hover {
                    background: #9b0305;

                }
            }
        }

        .notif-preview-container {
            a {
                background: #f5f5f5;
                padding: 25px;
                border: 3px solid #a0a0a0;
                border-radius: 25px;
                display: flex;
                justify-content: center;
                align-items: center;
                cursor: pointer;
                font-weight: 800;
                text-decoration: none;
                gap: 5px;
                transition: 250ms ease-in-out;

                &:hover {
                    background: #c5c5c5;
                }
            }
        }
    }

    @media (max-width: 980px) {
        .notif-form-wrapper {
            flex-direction: column;
            gap: 40px;

            &>* {
                width: min(500px, 100%);
            }
        }
    }
}


.history-container {
    padding: 25px;

    .history-wrapper {
        border-top: 1px dotted rgba(0, 0, 0, 0.2);
        padding: 25px 0px;

        #history-notifs-table {
            width: 100% !important;
            max-width: 100%;
        }

        .dt-search {
            display: flex;
            flex-direction: column;

            label {
                font-size: 12px;
                translate: 10px 5px;
                font-weight: 600;
                background: #fff;
                width: fit-content;
                padding: 0 5px;
                line-height: 1;
            }

            :where(input, select) {
                width: 100%;
                padding: 15px 10px !important;
                border-radius: 7px !important;
            }
        }

        .dt-button,
        #history-notifs-table_wrapper .dt-paging .dt-paging-button.current {
            border: 0;
            background: #d60407 !important;
            border: none !important;
            border-radius: 4px !important;
            color: #FFF !important;
            font-weight: bold;
            text-transform: uppercase;
            cursor: pointer;
            transition: 250ms ease-in-out;

            &:hover {
                background: #9b0305 !important;

            }
        }
    }

    .history-show-button {
        cursor: pointer;
        margin: auto;
        width: fit-content;
        display: block;
        padding: 25px;
    }
}

/* Texte desktop par défaut */
.gform_custom_btn .mobile-text { display: none; }

/* Casse en 3 lignes sur mobile */
@media (max-width: 768px) {
    .gform_custom_btn .desktop-text { display: none; }
    .gform_custom_btn .mobile-text {
        display: inline-block;
        line-height: 1.3;
        text-align: center;
    }
}