body {
    --overlay-background: #606060;
    --modal-background: #FFFFFF;
    --modal-text-color: #606060;
}

.fade {
    transition: opacity .5s linear;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100vw;
    height: 100vh;
    background-color: var(--overlay-background);
}

.modal-backdrop.fade {
    opacity: 0;
}

.modal-backdrop.show {
    opacity: .45;
}

.modal .btn-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    bottom: 0;
    margin: 0;
    padding: 0;
    display: block;
    width: 14px;
    height: 14px;
    cursor: pointer;
    z-index: 10;
}

.modal .btn-close svg {
    width: inherit;
    height: inherit;
}

.modal .btn-close svg g {
    fill: var(--modal-text-color);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 101;
    overflow: hidden;
    display: none;
    background: transparent;
}

.modal.show {
    display: block;
}

.modal-open {
    overflow: hidden;
}

.modal-open .modal {
    overflow-x: hidden;
    overflow-y: auto;
}

.modal-dialog {
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;;
    opacity: 0;
    width: 455px;
    max-width: calc(100% - 60px);
    box-sizing: border-box;
    padding: 25px 25px 20px 25px;
    background: var(--modal-background);
    color: var(--modal-text-color);
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -20%);
    max-height: calc(100vh - 60px);
    overflow-y: scroll;
    overflow-x: hidden;
}

.bottom-right .modal-dialog {
    top: auto;
    left: auto;
    right: 30px;
    bottom: 30px;
    transform: translate(0, calc(100% + 30px));
}

.modal-dialog {
    display: none;
}

.show .modal-dialog {
    display: block;
}

.show.slide .modal-dialog {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.show.slide.bottom-right .modal-dialog {
    top: auto;
    left: auto;
    right: 30px;
    bottom: 30px;
    transform: translate(0, 0);
}

.modal-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    outline: 0;
    overflow: hidden;
}

.modal-header {
    margin-bottom: 20px;
}

.modal-header .modal-title {
    color: var(--modal-text-color);
    font-size: 2.6rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.modal-text {
    font-size: 1.4rem;
    line-height: 1.6;
}

.modal-subtext {
    font-size: 1.2rem;
    line-height: 1.6;
}

.modal .hidden {
    display: none;
}

.modal input[type="text"], .modal input[type="email"] {
    padding-top: 12px;
    padding-bottom: 14px;
    width: 100%;
    background-color: rgba(247,247,247, 0.2);
    color: var(--modal-text-color);
    font-size: 1.2rem;
}

.modal select {
    background-color: rgba(247,247,247, 0.2);
    background-position: calc(100% - 11px) 18px;
    background-image: none;
    color: var(--modal-text-color);
    font-size: 1.2rem;
    height: 42px;
    border: none;
    width: 100%;
}

.modal .field-select {
    position: relative;
}

.modal .field-select:after {
    content: "";
    position: absolute;
    top: 50%;
    right: 10px;
    width: 7px;
    height: 7px;
    border-left: 1px solid var(--modal-text-color);
    border-bottom: 1px solid var(--modal-text-color);
    transform: rotate(-45deg);
    margin-top: -5px;
}

.modal ::-webkit-input-placeholder {
    color: var(--modal-text-color);
}

.modal ::-moz-placeholder {
    color: var(--modal-text-color);
}

.modal :-ms-input-placeholder {
    color: var(--modal-text-color);
}

.modal :-moz-placeholder {
    color: var(--modal-text-color);
}

.modal .field {
    margin-bottom: 14px;
}

.modal .btn {
    font-size: 1.2rem;
}

.modal .field-checkbox label {
    display: flex;
    align-items: center;
}

.modal input[type='checkbox'] {
    margin-right: 8px;
}

.modal .field-checkbox a,
.modal-footnote a,
.modal-subtext a {
    color: var(--modal-text-color);
    text-decoration: underline;
}

.modal .field-checkbox a:hover,
.modal-footnote a:hover,
.modal-subtext a:hover {
    text-decoration: none;
}

.modal .action {
    padding-top: 23px;
}

.modal-footnote {
    font-size: 1.4rem;
    padding-top: 12px;
    line-height: 1.6;
}

.modal-footnote p {
    padding-top: 8px;
}


/* Sidebar Modal */
.sidebar-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 101;
}

.sidebar-modal.show {
    display: block;
    transition: transform 0.5s ease;
}

.sidebar-modal .sidebar-modal-dialog {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 500px;
    height: 100%;
    transition: transform 0.5s ease;
}

.sidebar-modal.right .sidebar-modal-dialog {
    right: 0;
    transform: translateX(100%);
}

.sidebar-modal.left .sidebar-modal-dialog {
    left: 0;
    transform: translate(-40vw, 0);
}

.sidebar-modal.right.slide .sidebar-modal-dialog,
.sidebar-modal.left.slide .sidebar-modal-dialog {
    transform: translate(0, 0);
}

.sidebar-modal .sidebar-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    box-sizing: border-box;
    background: #FFFFFF;
}

@media (max-width: 750px) {
    .sidebar-modal .sidebar-modal-dialog {
        max-width: 75vw;
    }
}

@media (max-width: 600px) {
    .sidebar-modal .sidebar-modal-dialog {
        max-width: none;
    }

    .modal-dialog,
    .newsletter-popup-wrap {
        max-width: calc(100% - 30px);
        bottom: 15px;
        right: 15px;
        padding: 20px 15px 20px;
    }

    .modal-dialog {
        display: none;
        transform: translateY(calc(100% + 15px));
    }
}

/* Custom Scroll */

.scrollable-content {
    display: flex;
    width: fit-content;
    /*padding-left: 18px;
    padding-right: 18px;*/
}

.scrollable-wrap {
    width: 100%;
}

.scrollable {
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow-x: scroll;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    /*margin-left: -18px;
    margin-right: -18px;*/
}

.scrollable::-webkit-scrollbar {
    display: none;
}

.scrollable-wrap .sc-scroll-indicator,
.scrollable-wrap.disabled .sc-scroll-indicator {
    height: 1px;
    background-color: var(--border);
}

.scrollable-wrap.initialized .sc-scroll-indicator {
    height: 2px;
    background-color: #dfdfdf;
}

.sc-scroll-indicator {
    width: 100%;
    transform: translateX(0);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sc-scroll-indicator .sc-scroll-indicator-bar {
    will-change: transform;
    background: #716A63;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    transform-origin: 0 0;
    display: block;
    border-radius: 4px;
    cursor: -webkit-grab;
    cursor: default;
}

.scrollable-wrap .sc-scroll-indicator-bar,
.scrollable-wrap.disabled .sc-scroll-indicator-bar {
    opacity: 0;
}

.scrollable-wrap.initialized .sc-scroll-indicator-bar {
    opacity: 1;
}

.sc-scroll-indicator .sc-scroll-indicator-bar::after {
    content: " ";
    position: absolute;
    top: -.625rem;
    bottom: -.625rem;
    left: 0;
    right: 0;
    display: block;
}