/* Shared gift box polish */
.gift-box {
    width: 3.45rem;
    height: 3.15rem;
    display: grid;
    place-items: center;
    margin: .1rem auto .25rem;
    overflow: visible;
}

.gift-box::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: .42rem;
    width: 2.55rem;
    height: .42rem;
    transform: translateX(-50%);
    border-radius: 50%;
    background: rgba(var(--primary-rgb), .16);
    filter: blur(10px);
}

.gift-box__body,
.gift-box__lid {
    left: 50%;
    width: 2.34rem;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), .82), var(--primary-color));
    border: 1px solid rgba(255,255,255,.55);
    box-shadow: 0 18px 34px rgba(var(--primary-rgb), .22);
}

.gift-box__body {
    bottom: .62rem;
    height: 1.38rem;
    border-radius: .24rem .24rem .34rem .34rem;
}

.gift-box__body::before {
    content: "";
    position: absolute;
    inset: .12rem;
    border-radius: .18rem .18rem .26rem .26rem;
    border: 1px solid rgba(255,255,255,.24);
}

.gift-box__lid {
    bottom: 1.9rem;
    height: .44rem;
    border-radius: .24rem .24rem .18rem .18rem;
    transform-origin: left bottom;
}

.gift-box__ribbon {
    left: 50%;
    bottom: .62rem;
    width: .34rem;
    height: 1.74rem;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.36));
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.26);
}

.gift-box__ribbon::before,
.gift-box__ribbon::after {
    top: -.54rem;
    width: .76rem;
    height: .48rem;
    border: .16rem solid rgba(var(--primary-rgb), .36);
    background: rgba(255,255,255,.18);
    border-radius: 999px 999px 999px .45rem;
}

.gift-box__ribbon::before {
    right: .08rem;
    transform: rotate(-20deg);
}

.gift-box__ribbon::after {
    left: .08rem;
    transform: rotate(20deg) scaleX(-1);
}

.gift-box__text {
    bottom: .05rem;
    color: var(--primary-color);
    font-family: "Nunito Sans", Arial, sans-serif;
    font-size: .26rem;
    font-weight: 900;
    letter-spacing: .02rem;
}

.gift-box:hover .gift-box__lid {
    transform: translateX(-50%) translateY(-.16rem) rotate(-6deg);
}

.gift-box:hover .gift-box__body {
    transform: translateX(-50%) translateY(.03rem);
}


.gift-modal__content {
    border: 1px solid rgba(var(--primary-rgb), .16);
    border-radius: .34rem;
}

.gift-card {
    border-radius: .28rem;
}
