.gift-icon-container {
    display: inline-flex;
    float: left;
    margin: 6px 10px 0 0;
    height: 32px;
    align-items: center;
    position: relative;
}

.gift-icon-button {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    padding: 7px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

.gift-icon-button.has-background {
    background: #185774;
}


.gift-icon-button svg {
    width: 18px;
    height: 18px;
}

.gift-icon-button svg path { fill: white; }

@keyframes giftPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.gift-icon-button.pulse {
    animation: giftPulse 0.8s ease-in-out 2;
}

.gift-icon-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #ff0000;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 600;
    color: white;
    font-family: 'Source Sans Pro', sans-serif;
}

.gift-icon-container.has-badge .gift-icon-badge {
    display: flex;
}

.gift-popup {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    width: 240px;
    border-radius: 8px;
    padding: 0;
    background: #185774;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    display: none;
    opacity: 1;
    box-sizing: border-box;
}

.gift-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.gift-popup-link {
    display: block;
    padding: 16px;
    text-decoration: none;
    color: inherit;
}

.gift-popup a.gift-popup-link,
.gift-popup a.gift-popup-link *,
.gift-popup a.gift-popup-link:hover,
.gift-popup a.gift-popup-link:hover *,
.gift-popup a.gift-popup-link:focus,
.gift-popup a.gift-popup-link:focus *,
.gift-popup a.gift-popup-link:active,
.gift-popup a.gift-popup-link:active * {
    text-decoration: none;
}

.gift-icon-container.active .gift-popup {
    display: block;
}

.gift-popup-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.gift-popup-logo {
    width: 75px;
    height: 25px;
    object-fit: contain;
}


.gift-popup-title {
    width: 100%;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 13px;
    line-height: 16px;
    letter-spacing: 0%;
    vertical-align: middle;
    color: white;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gift-popup-title strong {
    font-weight: 700;
    font-style: normal;
    font-size: 13px;
    line-height: 16px;
    letter-spacing: 0%;
    vertical-align: middle;
}

.gift-popup-claim {
    width: 100%;
    height: 32px;
    border-radius: 8px;
    background: #3BAFDA;
    border: none;
    cursor: pointer;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 15px;
    line-height: 20px;
    letter-spacing: 0%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    margin-bottom: 0;
}

.gift-popup-legal {
    margin-top: 8px;
    position: relative;
    padding-right: 24px;
    display: flex;
    align-items: center;
    min-height: 28px;
    cursor: pointer;
}

.gift-popup-legal-text {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 11px;
    line-height: 14px;
    letter-spacing: 0%;
    vertical-align: middle;
    color: rgba(255,255,255,0.7);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gift-popup-legal.expanded .gift-popup-legal-text {
    display: block;
    -webkit-line-clamp: none;
    line-clamp: none;
    height: auto;
}

.gift-popup-legal.expanded {
    height: auto;
}

.gift-popup-legal-toggle {
    position: absolute;
    right: 0;
    top: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    transform-origin: center;
    transition: transform 0.3s ease;
}

.gift-popup-legal.expanded .gift-popup-legal-toggle {
    transform: rotate(180deg);
}


@media screen and (max-width: 767px) {
    .gift-popup {
        position: fixed;
        left: 9px;
        right: 5px;
        top: 43px;
        width: auto;
        margin-top: 0;
        border-radius: 8px;
        transform: none;
    }
}

@media screen and (min-width: 768px) {
    .gift-icon-container { margin-left: -5px; }
    .gift-icon-container .gift-icon-button .gift-icon-badge { display: none; }
}
