.marketplace-container
{
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 8vw;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}
.marketplace-container::before
{
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.95);
    transition: opacity 0.8s ease 0.1s;
    cursor: pointer;
}
.marketplace-container::after
{
    content: "";
    position: absolute;
    top: 8vw;
    right: 8vw;
    bottom: 8vw;
    left: 8vw;
    background-color: white;
    box-shadow: 0 5px 25px rgb(0 0 0 / 10%);
    transition: transform 1.2s cubic-bezier(.69, .003, .298, .991) 0s;
}
.marketplace-popup
{
    position: relative;
    display: grid;
    grid-template-areas: "swiper title"
                        "swiper links";
    grid-template-rows: auto 1fr;
    grid-template-columns: 4fr 6fr;
    column-gap: 60px;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 1;
    transition: opacity 0.5s ease 1.3s;
}
.marketplace-popup__btn-close
{
    --cross-color: black;
    width: 9.6mm;
    height: 9.6mm;
    position: absolute;
    top: 25px;
    right: 30px;
}
.marketplace-popup__btn-close > svg
{
    width: 18px;
    height: 18px;
}
.marketplace-popup > .title
{
    grid-area: title;
    font-size: 40px;
    line-height: 30px;
    margin: 60px 0 30px;
}

/* status & transitions on 'closed' */
.marketplace-container[data-state="closed"]
{
    pointer-events: none;
    visibility: none;
}
.marketplace-container[data-state="closed"]::before
{
    transition: opacity 0.8s ease 1s;
    opacity: 0;
}
.marketplace-container[data-state="closed"]::after
{
    transition: transform 1.5s cubic-bezier(.69, .003, .298, .991) 0.3s;
    transform: translateY(150%);
}
.marketplace-container[data-state="closed"] .marketplace-popup
{
    transition: opacity 0.5s ease 0s;
    opacity: 0;
}

/*******************************************************************
 * Swiper
 */
.marketplace-popup > .swiper-container
{
    grid-area: swiper;
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}
.marketplace-popup .swiper-slide
{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: grab;
}
.marketplace-popup .swiper-slide:only-child {
    cursor: default;
}
.marketplace__buttons-area
{
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px 30px 15px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.marketplace-popup .swiper-button-next,
.marketplace-popup .swiper-button-prev
{
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 9.6mm;
    min-height: 9.6mm;
}
.marketplace-popup .swiper-button-next svg,
.marketplace-popup .swiper-button-prev svg
{
    width: 40px;
    height: 40px;
}
.marketplace-popup .swiper-button-next
{
    transform: rotateZ(90deg);
}
.marketplace-popup .swiper-button-prev
{
    transform: rotateZ(-90deg);
}
.marketplace-popup .perfume-bg
{
    position: absolute;
    left: -500%;
    right: -500%;
    height: 100%;
    z-index: -1;
}
/* swiper transitions */
.marketplace-popup .perfume-bg,
.marketplace-popup .catchphrase
{
    opacity: 0;
    transition: opacity 1s ease 0s;
}
.marketplace-popup .swiper-slide-active .perfume-bg,
.marketplace-popup .swiper-slide-active .catchphrase
{
    opacity: 1;
}
.marketplace-popup .perfume-pic
{
    transform: scale(0.6);
    transition: transform 1s ease 0s;
}
.marketplace-popup .swiper-slide-active .perfume-pic
{
    transform: scale(1);
}
.marketplace-popup .swiper-slide:not(.swiper-slide-active) .perfume-pic
{
    transform: scale(0.6) !important;
}


/************************************************************
 * Retailer links
 */
.marketplace-popup > .retailers
{
    grid-area: links;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    grid-template-rows: repeat(auto-fill, minmax(170px, 1fr));
    /*grid-template-rows: max-content;*/
    overflow-y: auto;
    column-gap: 30px;
    row-gap: 20px;
    
    
    padding-right: 30px;
    margin-right: 30px;
    margin-bottom: 40px;
}
.marketplace-popup .retailer-link {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #F7F7F7;
    padding: 9px;
    display: none;
}
.marketplace-popup .retailer-link > img
{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.marketplace-popup .retailer-link[href="#"]
{
    display: none;
}


@media screen and (max-width: 767px)
{
    .marketplace-container
    {
        padding: 0;
    }
    .marketplace-popup
    {
        display: flex;
        flex-direction: column;
    }
    .marketplace-popup__btn-close
    {
        top: 22px;
        right: 50%;
        transform: translate(50%);
    }
    .marketplace-popup .title
    {
        font-size: 25px;
        text-align: center;
        margin: 20px 0 15px;
    }
    .marketplace-popup .swiper-container
    {
        order: -1;
        max-height: 33vh;
    }
    .marketplace-popup .perfume-pic
    {
        max-height: 22vh;
        margin-top: 57px;
    }
    .marketplace__buttons-area
    {
        padding: 5px 20px 5px;
    }
    .marketplace-popup .swiper-button-next > svg,
    .marketplace-popup .swiper-button-prev > svg
    {
        width: 30px;
        height: 30px;
    }
    .marketplace-popup .retailers
    {
        padding-right: 15px;
        margin-right: 15px;
        margin-left: 30px;
        flex: 1;
    }
    .marketplace-container::after
    {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
    }
}