/**
 * Komodee Elementor Promo Widget - Frontend Styles
 */

.kepr-coupon-widget {
    width: 100%;
}

.kepr-coupon-container {
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kepr-coupon-container:hover {
    transform: translateY(-5px);
}

.kepr-coupon-icon {
    display: inline-block;
    opacity: 0.8;
}

.kepr-coupon-code {
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    user-select: all;
    cursor: pointer;
    position: relative;
    display: inline-block;
}

.kepr-coupon-code::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: rgba(255,255,255,0.5);
    transition: width 0.3s ease;
}

.kepr-coupon-code:hover::after {
    width: 100%;
}

.kepr-coupon-description {
    opacity: 0.9;
}

.kepr-copy-button {
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    min-width: 150px;
}

.kepr-copy-button:active {
    transform: scale(0.95);
}

.kepr-copy-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.kepr-copy-button.copied::before {
    width: 300px;
    height: 300px;
}

.kepr-button-text {
    position: relative;
    z-index: 1;
}

.kepr-coupon-expiry {
    margin-top: 15px;
    font-size: 14px;
    opacity: 0.7;
}

@keyframes kepr-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.kepr-copy-button.copied {
    animation: kepr-shake 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .kepr-coupon-code {
        font-size: 24px !important;
    }
    
    .kepr-copy-button {
        min-width: 120px;
        padding: 12px 30px !important;
    }
}

/* Accessibility */
.kepr-copy-button:focus {
    outline: 2px solid rgba(255,255,255,0.5);
    outline-offset: 2px;
}

.kepr-coupon-code:focus {
    outline: 2px dashed rgba(255,255,255,0.5);
    outline-offset: 4px;
}
