.ua-coupon-form-wrapper {
    position: relative;
}

.ua-coupon-form-wrapper.ua-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 10;
}

.ua-coupon-form-wrapper.ua-loading {
    opacity: 0.6;
    pointer-events: none;
}

.ua-coupon-form-wrapper.ua-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: ua-spinner 0.6s linear infinite;
    z-index: 11;
}

@keyframes ua-spinner {
    to {
        transform: rotate(360deg);
    }
}

.ua-coupon-form-wrapper .ua-coupon-message {
    display: none;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.ua-coupon-form-wrapper .ua-coupon-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ua-coupon-form-wrapper .ua-coupon-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.ua-coupon-form {
    display: flex;
    margin-bottom: 15px;
}

.ua-coupon-form .ua-coupon-input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
}

.ua-coupon-form .ua-coupon-submit {
    padding: 10px 20px;
    border: 1px solid #007cba;
    background-color: #007cba;
    color: #fff;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.ua-coupon-form .ua-coupon-submit:hover {
    background-color: #005a87;
}

.ua-applied-coupons h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

.ua-applied-coupons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ua-applied-coupons li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.ua-applied-coupons .ua-remove-coupon {
    color: #a00;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
}

.ua-applied-coupons .ua-remove-coupon:hover {
    color: #f00;
}

/* Premium Coupon Card Styles */
.ua-coupon-list-wrapper {
    margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.ua-coupon-list-heading {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 30px;
    color: #1a202c;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ua-coupon-list-heading::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.ua-coupon-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 24px;
    align-items: start;
}

.ua-coupon-item {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 160px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Elegant Left Border */
.ua-coupon-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 24px 0 0 24px;
}

/* Premium Badge */
.ua-coupon-item::after {
    content: 'COUPON';
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 12px;
    text-transform: uppercase;
}

.ua-coupon-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12), 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: #667eea;
}

.ua-coupon-item:hover::before {
    width: 8px;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
}

.ua-coupon-info {
    flex-grow: 1;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.ua-coupon-code {
    display: block;
    font-size: 32px;
    font-weight: 900;
    color: #1a202c;
    margin-bottom: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    line-height: 1.1;
}

.ua-coupon-code::before {
    content: '🎫';
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    opacity: 0.7;
}

.ua-coupon-description {
    display: block;
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    font-weight: 400;
    max-width: 280px;
    margin-top: 8px;
}

/* Elegant Apply Button */
.ua-apply-coupon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 0 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    border-radius: 0 23px 23px 0;
    margin: -1px -1px -1px 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.ua-apply-coupon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.8s;
}

.ua-apply-coupon:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    color: #ffffff;
    text-decoration: none;
    transform: translateX(-6px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.ua-apply-coupon:hover::before {
    left: 100%;
}

.ua-apply-coupon:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.ua-apply-coupon:active {
    transform: translateX(-2px);
}

/* Decorative Elements */
.ua-coupon-info::before {
    content: '';
    position: absolute;
    bottom: 16px;
    left: 24px;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 1px;
    opacity: 0.6;
}

.ua-coupon-info::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 16px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    opacity: 0.1;
}

/* Responsive Premium Design */
@media (max-width: 1200px) {
    .ua-coupon-list {
        grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .ua-coupon-list-heading {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .ua-coupon-list {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .ua-coupon-item {
        flex-direction: column;
        min-height: 180px;
        padding: 0;
    }
    
    .ua-coupon-item::before {
        top: 0;
        left: 0;
        width: 100%;
        height: 6px;
        border-radius: 24px 24px 0 0;
    }
    
    .ua-coupon-item::after {
        top: 20px;
        right: 20px;
    }
    
    .ua-coupon-info {
        padding: 28px 24px 20px 24px;
    }
    
    .ua-coupon-info::before {
        bottom: 20px;
        left: 24px;
        width: 60px;
    }
    
    .ua-coupon-info::after {
        top: 20px;
        left: 20px;
    }
    
    .ua-coupon-code {
        font-size: 28px;
        margin-top: 0;
    }
    
    .ua-coupon-code::before {
        left: -36px;
    }
    
    .ua-apply-coupon {
        border-radius: 0 0 23px 23px;
        margin: 0 -1px -1px -1px;
        min-height: 60px;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .ua-coupon-list-wrapper {
        margin: 20px 0;
    }
    
    .ua-coupon-list {
        gap: 16px;
    }
    
    .ua-coupon-item {
        border-radius: 20px;
        min-height: 160px;
    }
    
    .ua-coupon-info {
        padding: 24px 20px 16px 20px;
    }
    
    .ua-coupon-code {
        font-size: 24px;
    }
    
    .ua-coupon-code::before {
        left: -32px;
        font-size: 20px;
    }
    
    .ua-coupon-description {
        font-size: 13px;
        max-width: none;
    }
    
    .ua-apply-coupon {
        font-size: 13px;
        min-height: 55px;
    }
}

/* Message display */
.ua-coupon-message {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ua-coupon-message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ua-coupon-message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.ua-coupon-message.success::before {
    content: "✓ ";
    font-weight: bold;
}

.ua-coupon-message.error::before {
    content: "⚠ ";
    font-weight: bold;
}