/* CART POPUP - modules/widgets/cartpopup/cartpopup.tpl */
/* Hidden with visibility instead of display, so external sliders inside can measure their width */
.w-cartpopup {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    z-index: 99998;
    visibility: hidden;
    opacity: 0;
    transition: opacity ease .2s, visibility 0s linear .2s;
}
.w-cartpopup.is-open {
    visibility: visible;
    opacity: 1;
    transition: opacity ease .2s;
}
.w-cartpopup .w-cartpopup-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, .5);
    cursor: pointer;
}
.w-cartpopup .w-cartpopup-dialog {
    position: relative;
    width: 100%;
    max-width: 1150px;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 50px 30px 30px;
    background-color: #fff;
    text-align: center;
    box-shadow: rgba(50, 50, 93, 0.05) 0px 13px 27px -5px, rgba(0, 0, 0, 0.1) 0px 8px 16px -8px;
    transform: translateY(20px);
    transition: transform ease .2s;
}
.w-cartpopup.is-open .w-cartpopup-dialog {
    transform: translateY(0);
}
.w-cartpopup .w-cartpopup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
}
.w-cartpopup .w-cartpopup-close svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5px;
}
.w-cartpopup .w-cartpopup-message {
    margin-bottom: 20px;
}
.w-cartpopup .w-cartpopup-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.w-cartpopup .w-cartpopup-actions > .button,
.w-cartpopup .w-cartpopup-actions > .button-primary {
    width: auto;
    margin: 0;
}
.w-cartpopup .w-cartpopup-recommendations {
    margin-top: 30px;
    text-align: left;
}
.w-cartpopup .w-cartpopup-recommendations:empty {
    display: none;
}

/* Locks page scroll while the popup is open */
html.cartpopup-open {
    overflow: hidden;
}

@media (max-width: 480px) {
    .w-cartpopup .w-cartpopup-dialog {
        padding: 50px 15px 15px;
    }
    .w-cartpopup .w-cartpopup-actions > .button,
    .w-cartpopup .w-cartpopup-actions > .button-primary {
        width: 100%;
    }
}
