/* prevent IE11 scrollbar from overlapping content */
/*
@-ms-viewport{
    width:auto!important;
}
*/

/* desktop */
@media (min-width: 769px) {
    #flyout-section {
        display: none;
    }

    #flyout-section .flyout {
        position: fixed;
        top: 67vh; /* default, can be changed via attribute data-flyout-top */
        background: #fff;
        height: 200px; /* default, can be changed via attribute data-flyout-height */
				max-height: 50vh;
        overflow: hidden;
    }

    #flyout-section .flyout.rightedge {
        right: 0;
        margin-right: 0;
        transition: transform 200ms, margin-right 200ms;
    }

    #flyout-section .flyout.rightedge.collapsed {
        margin-right: 6rem;
        transform: translateX(100%);
    }

    #flyout-section .flyout .flyout-title {
        height: 100%;
        margin: 0;
        white-space: nowrap;
    }

    #flyout-section .flyout .flyout-title > button {
        width: 6rem;
        height: 100%;
        padding: 14px;
    }

    #flyout-section .flyout .flyout-title > button > span {
        writing-mode: vertical-rl;
        -ms-writing-mode: tb-rl;
        transform: rotate(180deg);
        position: relative;
        padding-bottom: 40px;
        width: 100%;
        height: 100%;
        vertical-align: top;
    }

    #flyout-section .flyout .flyout-title > button > span:before {
        content: "";
        background: url(/dvl/v1.0/assets/images/icons/icon-help-inverse.svg) center/contain no-repeat; /* default icon, can be changed via attribute data-flyout-icon */
        display: inline-block;
        width: 30px;
        height: 30px;
        margin-bottom: 10px;
        transform: rotate(90deg);
    }


    #flyout-section .flyout .flyout-title > button > span:after {
        content: "";
        display: block;
        width: 20px;
        height: 20px;
        position: absolute;
        right: 8px;
        bottom: 0;
        transform: rotate(90deg);
        background-repeat: no-repeat;
        background-size: contain;
    }

    #flyout-section .flyout.rightedge .flyout-title > button > span:after,
    #flyout-section .flyout.leftedge.collapsed .flyout-title > button > span:after {
        background-image: url(/dvl/v1.0/assets/images/ui/ui-chevron-down-white.svg);
    }

    #flyout-section .flyout.leftedge .flyout-title > button > span:after,
    #flyout-section .flyout.rightedge.collapsed .flyout-title > button > span:after {
        background-image: url(/dvl/v1.0/assets/images/ui/ui-chevron-up-white.svg);
    }

    #flyout-section .flyout .flyout-content {
        display: block;
        margin: 15px 30px 15px 15px;
        overflow: hidden;
    }
}

/* mobile */
/* styles for iPhone 14 Pro Max landscape */
@media (max-height:430px) and (orientation: landscape) {
    #flyout-section .flyout {
        top:auto !important;
    }
}

@media (max-width: 768px) {
    #flyout-section {
        width: 100%;
        display: none;
        position: absolute;
        overflow: hidden;
        padding-top: 58px; /* prevent .flyout-title from being clipped via overflow when flyout is expanded */
        pointer-events: none; /* allow interaction with any underlying content (that's not covered by .flyout-title or .flyout-content) */
    }

    #flyout-section .flyout {
        background: #fff;
        border: 2px solid #006ac3;
        width: 100%;
        position: fixed;
        bottom: 0;
        transition: transform 200ms;
        z-index: 10;
        pointer-events: auto;
    }

    #flyout-section .flyout.collapsed {
        transform: translateY(100%);
        z-index: 10;
    }

    #flyout-section .flyout + .flyout:after {
        content: "";
        display: block;
        height: 1px;
        background: #fff;
    }

    #flyout-section .flyout .flyout-title {
        margin: 0;
        background-color: #006ac3;
        color: #fff;
        white-space: nowrap;
        position: absolute;
        bottom: 100%;
    }

    #flyout-section .flyout.leftedge .flyout-title {
        left: -2px;
    }

    #flyout-section .flyout.rightedge .flyout-title {
        right: -2px;
    }

    #flyout-section .flyout .flyout-title > button {
        min-width: 58px; /* needed for Firefox */
        padding: 14px;
    }

    #flyout-section .flyout .flyout-title > button > span {
        display: inline-block;
        width: 100%;
        position: relative;
        text-indent: -99999px;
    }

    #flyout-section .flyout.collapsed .flyout-title > button > span:before {
        content: "";
        background: url(/dvl/v1.0/assets/images/icons/icon-help-inverse.svg) center/contain no-repeat; /* default icon, can be changed via attribute data-flyout-icon */
        display: inline-block;
        width: 30px;
        height: 30px;
        vertical-align: -8px;
        text-indent: 99999px;
        float: left;
    }

    #flyout-section .flyout .flyout-title > button > span:after {
        content: "";
        background: url(/dvl/v1.0/assets/images/ui/ui-close-white.svg) center/20px 20px no-repeat;
        display: inline-block;
        width: 30px;
        height: 30px;
        vertical-align: middle;
        text-indent: 99999px;
        float: left;
    }

    #flyout-section .flyout.collapsed .flyout-title > button > span:after {
        display: none;
    }

    #flyout-section .flyout .flyout-content {
        display: block;
        margin: 15px;
    }
}
