/* Container */
.gift-container-8bdd0cfa {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (max-width: 768px) {
    .gift-container-8bdd0cfa {
        bottom: 80px; /* Above standard mobile nav bars */
        right: 16px;
    }
}

/* Floating Gift Button */
.gift-icon-btn-8bdd0cfa {
    background: #007AFF;
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    padding: 0;
}

.gift-icon-btn-8bdd0cfa:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.4);
}

.gift-icon-btn-8bdd0cfa svg {
    width: 24px;
    height: 24px;
}

.gift-badge-8bdd0cfa {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #FF3B30;
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Glassmorphism Popup */
.gift-popup-8bdd0cfa {
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 280px;
    padding: 24px;
    position: relative;
    transform-origin: bottom right;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0.3s;
    
    /* Hidden state */
    opacity: 0;
    transform: scale(0.9);
    visibility: hidden;
    pointer-events: none;
}

.gift-popup-8bdd0cfa.is-open {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
    pointer-events: auto;
}

/* Close Button */
.gift-close-btn-8bdd0cfa {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.05);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #8E8E93;
    transition: background 0.2s, color 0.2s;
    padding: 0;
}

.gift-close-btn-8bdd0cfa:hover {
    background: rgba(0,0,0,0.1);
    color: #1C1C1E;
}

/* Popup Content */
.gift-popup-content-8bdd0cfa {
    text-align: center;
}

.gift-popup-title-8bdd0cfa {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1C1C1E;
    letter-spacing: -0.02em;
}

.gift-popup-text-8bdd0cfa {
    margin: 0 0 16px 0;
    font-size: 14px;
    color: #3A3A3C;
    line-height: 1.4;
}

/* Coupon Box */
.gift-coupon-box-8bdd0cfa {
    background: rgba(0, 122, 255, 0.05);
    border: 1px dashed rgba(0, 122, 255, 0.3);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gift-coupon-code-8bdd0cfa {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 700;
    color: #007AFF;
    letter-spacing: 1px;
}

.gift-copy-btn-8bdd0cfa {
    background: #007AFF;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.gift-copy-btn-8bdd0cfa:hover {
    background: #0056B3;
}

.gift-copy-btn-8bdd0cfa.copied {
    background: #34C759;
}
