

.image-gift-animation {
    width: 200px;
    height: 200px;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
}
.image-gift-animation img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-43%, -50%);
}

.button-finish-gift {
    position: relative;
    margin: 12px 0;
    text-align: center;
}
.button-finish-gift .link-to-gift {
    border-radius: 6px;
    padding: 14px 20px;
    font-weight: 500;
    font-size: 18px;
    text-decoration: none;
    color: #fff;
    line-height: 1;
    background-color: var(--pr-color-information-600);
    min-width: 180px;
    text-align: center;
    transition: var(--pr-trans-standard);
    display: inline-block;
    cursor: pointer;
}
.button-finish-gift .link-to-gift:hover {
    background-color: var(--pr-color-information-500);
}
.title-ecard-gift {
    font-size: 24px;
    font-weight: 500;
    color: var(--pr-color-primary);
    text-align: center;
    margin-bottom: 6px;
}

/*Popup ecard*/
.content-ecard-gift-popup {
    position: relative;
}

.card {
    width: 640px;
    height: 480px;
    position: relative;
    margin: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    -webkit-perspective: 1200px;
    perspective: 1200px;
    transition: 1s;
}
.card.show-inside .outside,
.card:hover .outside {
    transform: rotateY(-130deg);
}

.outside,
.inside {
    height: 100%;
    width: 50%;
    position: absolute;
    left: 50.1%;
}
.inside {
    background: linear-gradient(to right, #e7e7e7, #ffffff 30%);
    padding: 0 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    grid-gap: 16px;
    left: 50%;
}
.outside {
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    z-index: 1;
    transform-origin: left;
    transition: 1s;
    cursor: pointer;
}
.front,
.back {
    height: 100%;
    width: 100%;
    position: absolute;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: rotateX(0deg);
}
.front {
    background-color: #fff;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    grid-gap: 18px;
    padding: 16px;
}
.front:before {
    content: '';
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: url(/modules/cart/images/pattern.jpg);
    background-size: 100%;
    position: absolute;
    z-index: 1;
    opacity: 0.2;
}
.back {
    transform: rotateY(180deg);
    background: linear-gradient(to left, #e7e7e7, #ffffff 30%);
}
.outside p {
    font-size: 24px;
    margin: 0;
    text-align: center;
    position: relative;
    z-index: 2;
    color: var(--pr-color-primary, #19124f);
}
.inside p {
    margin: 0;
}
.speech-bubble {
    position: relative;
    margin: .5em auto;
    padding: 12px 32px;
    width: auto;
    height: 60px;
    border-radius: .25em;
    transform: rotate(-4deg) rotateY(15deg);
    background: var(--pr-color-primary, #19124f);
    text-align: center;
    color: #fff;
    letter-spacing: 3px;
    font-size: 20px;
}
.speech-bubble:before, .speech-bubble:after {
    position: absolute;
    z-index: -1;
    content: '';
}
.speech-bubble:after {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: inherit;
    transform: rotate(2deg) translate(.35em, -.15em) scale(1.02);
    background: var(--pr-color-secondary, #ff7300);
}
.speech-bubble:before {
    border: solid 0 transparent;
    border-right: solid 24px var(--pr-color-secondary, #ff7300);
    border-bottom: solid 5px var(--pr-color-primary, #19124f);
    bottom: 15px;
    left: 30px;
    width: 0;
    height: 17px;
    transform: rotate(45deg) skewX(75deg);
}
/*E-Card send now popup*/
.ecard-gift-popup {
    --widthPopup: 600px;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1111;
    transition: var(--trans);
    opacity: 0;
    pointer-events: none;
}

.open-ecard-gift-pop {
    overflow: hidden;
}

.open-ecard-gift-pop .ecard-gift-popup {
    opacity: 1;
    pointer-events: all;
}
.ecard-gift-background {
    width: 100%;
    height: 100%;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    background-color: rgba(11 11 11 / 44%);
}

.open-ecard-gift-pop .ecard-gift-background {
    display: block;
}

.ecard-gift-content-wrapper {
    margin: 40px auto;
    min-height: 300px;
    max-width: 90%;
    display: block;
    position: relative;
    z-index: 2;
    border-radius: 15px;
    padding: 24px;
}

.close-ecard-gift-pop {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9;
    cursor: pointer;
}

.ecard-gift-content-wrapper .title-popup {
    font-size: 24px;
    font-weight: 500;
    color: var(--pr-color-primary);
    text-align: center;
}
.link-to-ecard {
    border-radius: 6px;
    padding: 14px 20px;
    font-weight: 500;
    font-size: 18px;
    text-decoration: none;
    color: #fff;
    line-height: 1;
    background-color: var(--pr-color-information-600);
    min-width: 180px;
    text-align: center;
    transition: var(--pr-trans-standard);
    display: inline-block;
    position: relative;
    z-index: 2;
}
.link-to-ecard:hover {
    background-color: var(--pr-color-information-500);
    color: #fff;
}
/*End E-Card send now popup*/

@media (max-width: 1366px) {
    .image-gift-animation {
        width: 150px;
        height: 150px;
    }
    .ecard-gift-content-wrapper {
        padding: 0;
    }
   
    .card.show-inside .outside {
        transform: rotateY(-120deg);
    }
    .outside {
        width: 60%;
        left: 40%;
    }
    .inside {
        width: 60%;
        left: 40%;
    }
    
}

@media (max-width: 767px) { 
    .content-ecard-gift-popup {
        max-width: 90vw;
    }
    .card {
        width: 90vw;
        height: 380px;
    }
    .link-to-ecard {
        padding: 10px 12px;
        font-size: 16px;
        min-width: auto;
    }
    .inside p {
        font-size: 14px;
    }
    .speech-bubble {
        padding: 12px 12px;
        width: auto;
        height: 40px;
        letter-spacing: 2px;
        font-size: 14px;
    }
    .speech-bubble:before {
        border: solid 0 transparent;
        border-right: solid 18px var(--pr-color-secondary, #ff7300);
        border-bottom: solid 5px var(--pr-color-primary, #19124f);
        bottom: 10px;
        left: 29px;
        width: 0;
        height: 13px;
        transform: rotate(45deg) skewX(75deg);
    }
    .outside p {
        font-size: 16px;
    }
    .front img {
        width: 130px;
        height: 80px;
    }
    .outside {
        width: 80%;
        left: 10%;
    }
    .inside {
        width: 80%;
        left: 10%;
    }
    .close-ecard-gift-pop {
        top: -34px;
        right: -10px;
    }
}