@property --og-gift-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

@keyframes ogGiftBorderFlow {
    to { --og-gift-angle: 360deg; }
}

.og-gift-float[hidden] { display: none !important; }

.og-gift-float {
    --og-gift-angle: 0deg;
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1200;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    width: min(398px, calc(100vw - 32px));
    padding: 18px 20px;
    color: #f6fffb;
    border: 1px solid rgba(126, 248, 203, .76);
    border-radius: 16px;
    background: linear-gradient(135deg, #0c2630 0%, #123841 55%, #14312e 100%);
    box-shadow: 0 16px 42px rgba(0, 0, 0, .42), 0 0 24px rgba(73, 235, 184, .16);
    animation: ogGiftFloatIn .32s ease-out both, ogGiftBorderFlow 12s linear infinite;
}

@supports (background: conic-gradient(from 0deg, #123, #8bf3c2)) {
    .og-gift-float {
        border-color: transparent;
        background:
            linear-gradient(135deg, #0c2630 0%, #123841 55%, #14312e 100%) padding-box,
            conic-gradient(from var(--og-gift-angle), #35c99a, #f7c85e, #46e1de, #35c99a) border-box;
    }
}

@keyframes ogGiftFloatIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.og-gift-float-copy { min-width: 0; }
.og-gift-float-kicker {
    display: block;
    margin-bottom: 5px;
    color: #85f0c7;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}
.og-gift-float-copy strong {
    display: block;
    color: #f7fbff;
    font-size: 18px;
    line-height: 1.35;
}
.og-gift-float-copy strong span { color: #ffd66e; white-space: nowrap; }
.og-gift-float-copy small {
    display: block;
    margin-top: 5px;
    color: #c5d7df;
    font-size: 12px;
    line-height: 1.4;
}
.og-gift-float-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 15px;
    color: #09251d;
    border: 1px solid #9bf1c8;
    border-radius: 10px;
    background: linear-gradient(135deg, #a0f2cb, #59d8aa);
    box-shadow: 0 4px 16px rgba(53, 201, 154, .25);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.og-gift-float-cta:hover {
    color: #09251d;
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 7px 20px rgba(53, 201, 154, .34);
}
.og-gift-float-cta:focus-visible,
.og-gift-float-close:focus-visible {
    outline: 3px solid #ffd66e;
    outline-offset: 3px;
}
.og-gift-float-close {
    position: absolute;
    top: 6px;
    right: 8px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    padding: 0;
    color: #d8e9e8;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}
.og-gift-float-close:hover { color: #fff; background: rgba(255, 255, 255, .2); }

@media (max-width: 600px) {
    .og-gift-float {
        right: 10px;
        bottom: max(10px, env(safe-area-inset-bottom));
        left: 10px;
        width: auto;
        gap: 10px;
        padding: 14px 15px;
        border-radius: 14px;
    }
    .og-gift-float-copy strong { font-size: 16px; }
    .og-gift-float-copy small { font-size: 11px; }
    .og-gift-float-cta { min-height: 40px; padding: 0 12px; font-size: 13px; }
}

@media (max-width: 360px) {
    .og-gift-float { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-right: 40px; }
    .og-gift-float-cta { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .og-gift-float { animation: none; }
    .og-gift-float-cta { transition: none; }
}
