/* #region modal-sheet */


/* #region modal */

.modal-sheet {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(2px);
    transition: all 0.5s step-end;
}

.modal-sheet.active {
    opacity: 1;
    pointer-events: all;
    transition: all 0.5s step-start;
}

.modal-sheet-back {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.40);
}

/* #endregion modal */

/* #region modal-content */

.modal-sheet-content {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--color-neutral-000);
    overflow-y: hidden;
    z-index: 1;
    transition: all 0.5s ease-in-out;
}

.modal-sheet-content .main-btn-fill {
    padding: 12px 16px;
}


/* #region modal-header */

.modal-sheet-header {
    width: calc(100% - 48px);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 0;
    border-bottom: 1px solid var(--color-neutral-200);
}

.modal-sheet-title {
    font-size: 1rem;
    color: var(--color-neutral-900);
    margin: 0;
    font-weight: 500;
}

.modal-sheet-dis {
    font-size: 0.9rem;
    color: var(--color-neutral-400);
    margin-top: 4px;
}

/* #endregion modal-header */

/* #region modal-body */

.modal-sheet-body {
    width: 100%;
    height: 100%;
    padding: 24px;
    overflow-y: auto;
}

/* #endregion modal-body */

/* #region modal-footer */

.modal-sheet-footer {
    width: calc(100% - 48px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-top: 1px solid var(--color-neutral-200);
}

/* #endregion modal-footer */


/* #endregion modal-content */

/* #region modal-bottomSheet */

.bottomSheet-content {
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 100vh;
    border-radius: var(--radius-global) var(--radius-global) 0 0;
    transform: translateY(100%);
}

.bottomSheet-content.show {
    animation: showModalBottom 0.5s ease-in-out;
    transform: translateY(0);
}

.bottomSheet-content.hide {
    animation: hideModalBottom 2.5s ease-in-out;
    transform: translateY(100%);
}



@keyframes showModalBottom {
    0% {
        opacity: 0;
        pointer-events: none;
        transform: translateY(100%);
    }

    10% {
        opacity: 1;
        pointer-events: all;
    }

    100% {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0);
    }
}

@keyframes hideModalBottom {
    0% {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0);
    }

    10% {
        transform: translateY(100%);
    }

    100% {
        opacity: 0;
        pointer-events: none;
    }
}

/* #endregion modal-bottomSheet */


/* #region modal-rightSheet */

.rightSheet-content {
    right: 0;
    top: 0;
    max-width: 100%;
    height: 100%;
    border-radius: var(--radius-global) 0 0 var(--radius-global);
    transform: translateX(100%);
}

.rightSheet-content.show {
    animation: showModalRight 0.5s ease-in-out;
    transform: translateX(0);
}

.rightSheet-content.hide {
    animation: hideModalRight 2.5s ease-in-out;
    transform: translateX(100%);
}

@keyframes showModalRight {
    0% {
        opacity: 0;
        pointer-events: none;
        transform: translateX(100%);
    }

    10% {
        opacity: 1;
        pointer-events: all;
    }

    100% {
        opacity: 1;
        pointer-events: all;
        transform: translateX(0);
    }
}

@keyframes hideModalRight {
    0% {
        opacity: 1;
        pointer-events: all;
        transform: translateX(0);
    }

    10% {
        transform: translateX(100%);
    }

    100% {
        opacity: 0;
        pointer-events: none;
    }
}


/* #endregion modal-rightSheet */


@media screen and (min-width: 992px) {

    .modal-sheet,
    .modal-sheet.active {
        transition: all 0.3s ease-in-out;
    }

    .modal-sheet-content {
        inset: auto;
        width: 500px;
        max-width: 80%;
        max-height: 80%;
        border-radius: var(--radius-global) !important;
        transform: none !important;
        opacity: 0;
    }

    .modal-sheet-content.show {
        opacity: 1;
        animation: none;
    }

    .modal-sheet-content.hide {
        opacity: 0;
        animation: none;
    }

    .modal-sheet-body::-webkit-scrollbar {
        width: 8px;
        background-color: var(--color-neutral-100);
        border-radius: 0 0 var(--radius-global) var(--radius-global);
    }

    .modal-sheet-body::-webkit-scrollbar-thumb {
        background-color: var(--color-neutral-300);
        border-radius: var(--radius-global);
    }
}


@media screen and (min-width : 1200px) {
    .modal-sheet-content {
        max-width: 992px;
    }
}

/* #endregion modal-sheet */