/* Custom Offcanvas Styles */

.custom-offcanvas {
    position: fixed;
    z-index: 1045;
    visibility: hidden;
    transition: visibility 0.25s;
}

.custom-offcanvas.show {
    visibility: visible;
}

.custom-offcanvas-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0);
    z-index: 1040;
    pointer-events: none;
    will-change: background-color;
    transition: background-color 0.25s ease-out;
    transform: translateZ(0);
}

.custom-offcanvas.show .custom-offcanvas-backdrop {
    background-color: rgba(0, 0, 0, 0.6);
    pointer-events: auto;
}

.custom-offcanvas-content {
    position: fixed;
    background-color: #fff;
    z-index: 1045;
    transition: transform 0.25s ease-in-out;
    display: flex;
    flex-direction: column;
}

.custom-offcanvas-header {
    padding: 24px 56px 24px 56px;
}

.custom-offcanvas-title {
    margin-bottom: 0;
    font-size: 32px;
    letter-spacing: -4%;
    font-weight: 400;
    color: var(--color-deep-green);
}

.custom-offcanvas-body {
    padding: 0 56px 32px 56px;
    overflow-y: auto;
    flex-grow: 1;
}

.custom-offcanvas-body h1 {
    text-align: left !important;
}

.custom-offcanvas-body p {
    font-size: 16px;
    line-height: 150%;    
}

/* Mobile: slide from bottom to top, height 100vh */
@media (max-width: 991.98px) {
    .custom-offcanvas-content {
        bottom: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        transform: translateY(100%);
    }

    .custom-offcanvas-content {
        box-shadow: 0 -0.5rem 1rem rgba(0, 0, 0, 0.15);
    }

    .custom-offcanvas.show .custom-offcanvas-content {
        transform: translateY(0);
    }

    .custom-offcanvas-body {
        padding: 32px;
    }
}

/* Desktop: slide from right to left, width 75vw */
@media (min-width: 992px) {
    .custom-offcanvas-content {
        top: 0;
        right: 0;
        width: 50vw;
        height: 100vh;
        transform: translateX(100%);
    }

    .custom-offcanvas-content {
        box-shadow: -0.5rem 0 1rem rgba(0, 0, 0, 0.15);
    }

    .custom-offcanvas.show .custom-offcanvas-content {
        transform: translateX(0);
    }
}

/* Offcanvas Footer CTA */
.offcanvas-cta-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    background-color: #fff;
    border-top: 1px solid #dee2e6;
    z-index: 1050;
}