/** {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}*/

/*body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    padding: 20px 0;
}*/

.coupon-icon{
    font-size: 25px;
}
.coupon-banner {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 50%, #81C784 100%);
    width: 100%;
    padding: 0px 15px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animated background elements */
.coupon-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 4s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Left section - Sale info */
.sale-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    position: relative;
    z-index: 2;
}

.sale-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

.umbrella-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.sale-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sale-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.sale-subtitle {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 500;
}

/* Center section - Countdown */
.countdown-section {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.countdown-label {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-right: 5px;
}

.countdown-timer {
    display: flex;
    gap: 8px;
    align-items: center;
}

.time-unit {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 4px 5px;
    border-radius: 6px;
    text-align: center;
    min-width: 35px;
    transition: transform 0.3s ease;
}

.time-unit:hover {
    transform: translateY(-2px);
}

.time-number {
    font-size: 16px;
    font-weight: 800;
    color: white;
    display: block;
    line-height: 1;
}

.time-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 1px;
}

.separator {
    font-size: 16px;
    color: white;
    font-weight: bold;
    margin: 0 2px;
}

/* Right section - Coupon & CTA */
.coupon-action {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.coupon-code-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px dashed rgba(255, 255, 255, 0.5);
    padding: 8px 12px;
    border-radius: 8px;
    /*cursor: pointer;*/
    transition: all 0.3s ease;
}

.coupon-code-container:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
}

.coupon-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 600;
}

.coupon-code {
    color: white;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
}

.grab-button {
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.grab-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.grab-button:active {
    transform: translateY(0);
}

/* Close button */
.close-button {
    position: absolute;
    top: 8px;
    right: 15px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-button:hover {
    color: white;
    transform: scale(1.1);
}

/* Copy feedback */
.copy-feedback {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.copy-feedback.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive design */
@media (max-width: 768px) {
    .coupon-icon{
        font-size: 20px;
    }
    .coupon-banner {
        flex-direction: column;
        gap: 10px;
        padding: 12px 15px;
    }

    .sale-info,
    .countdown-section,
    .coupon-action {
        width: 100%;
        justify-content: center;
    }

    .countdown-section {
        order: 2;
    }

    .coupon-action {
        order: 3;
        gap: 10px;
    }

    .sale-title {
        font-size: 16px;
    }

    .sale-subtitle {
        font-size: 11px;
    }

    .grab-button {
        padding: 8px 16px;
        font-size: 12px;
    }

    .close-button {
        top: 5px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .coupon-icon{
        font-size: 16px;
    }
    .countdown-timer {
        gap: 6px;
    }

    .time-unit {
        padding: 4px 6px;
        min-width: 30px;
    }

    .time-number {
        font-size: 14px;
    }

    .coupon-code {
        font-size: 12px;
    }

    .coupon-action {
        flex-direction: column;
        gap: 8px;
    }
}

/* Hidden state for close functionality */
.coupon-banner.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}