#acg-gift-event {
    display: none;
}

.acg-gift-toast {
    position: fixed;
    top: auto;
    right: 24px;
    bottom: 24px;
    left: auto;
    z-index: 2147483647;
    box-sizing: border-box;
    width: auto;
    max-width: min(520px, calc(100vw - 48px));
    min-height: 64px;
    padding: 18px 72px 18px 20px;
    border-radius: 6px;
    background: #4dae65;
    color: #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
    font-size: 16px;
    line-height: 1.35;
    opacity: 0;
    transform: translate3d(24px, 24px, 0);
    transition: opacity 260ms ease-out, transform 260ms ease-out;
}

.acg-gift-toast.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.acg-gift-toast.is-notice {
    background: #c0392b;
}

.acg-gift-toast__close {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    overflow: hidden;
    text-indent: -9999px;
}

.acg-gift-toast__close::before,
.acg-gift-toast__close::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 4px;
    border-radius: 999px;
    background: #fff;
    transform-origin: center;
}

.acg-gift-toast__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.acg-gift-toast__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 768px) {
    .acg-gift-toast {
        top: 16px;
        left: 16px;
        right: 16px;
        bottom: auto;
        width: auto;
        max-width: none;
        padding: 16px 64px 16px 18px;
        transform: translate3d(0, -16px, 0);
    }

    .acg-gift-toast.is-visible {
        transform: translate3d(0, 0, 0);
    }
}
