.copied {
    background-color: var(--success-color) !important;
    transition: background-color 0.3s ease;
}

.coupon-animation {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 21, 105, 0.7);
    }
    
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 21, 105, 0);
    }
    
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 21, 105, 0);
    }
}

.coupon-tooltip {
    position: relative;
    display: inline-block;
}

.coupon-tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: var(--dark-color);
    color: var(--white);
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.coupon-tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--dark-color) transparent transparent transparent;
}

.coupon-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.coupon-code {
    position: relative;
    cursor: pointer;
}

.coupon-code::before {
    content: "Clique para copiar";
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--dark-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.coupon-code:hover::before {
    opacity: 1;
}

.coupon-success-message {
    display: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--success-color);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -20px); }
    15% { opacity: 1; transform: translate(-50%, 0); }
    85% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -20px); }
}

.floating-coupon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 15px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 99;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.floating-coupon:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.floating-coupon-code {
    font-weight: 700;
    margin-right: 10px;
}

.floating-coupon-icon {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .floating-coupon {
        bottom: 10px;
        right: 10px;
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}
