/* Store Reviews Widget Styles */

/* The bar */
.store-review-bar {
    background: linear-gradient(135deg, #fff9e6 0%, #fff4d6 100%);
    border: 1px solid #f0d78c;
    border-radius: 12px;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin: 20px 0;
}

.store-review-bar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #e6c76a;
}

.store-review-bar-text {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.store-review-bar-arrow {
    font-size: 24px;
    color: #d4a017;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.store-review-bar:hover .store-review-bar-arrow {
    transform: translateX(4px);
}

/* Overlay */
.store-review-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.store-review-overlay.active {
    display: flex;
    opacity: 1;
}

/* Popup */
.store-review-popup {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.store-review-overlay.active .store-review-popup {
    transform: scale(1);
}

/* Close button */
.store-review-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.store-review-close:hover {
    color: #333;
}

/* Title */
.store-review-title {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 30px 0;
    line-height: 1.4;
}

/* Emojis */
.store-review-emojis {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 30px;
}

.store-review-emoji {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease;
}

.store-review-emoji:hover {
    transform: scale(1.15);
}

.emoji-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    font-size: 42px;
    transition: all 0.3s ease;
}

.emoji-red {
    background: #ffe0e0;
}

.emoji-orange {
    background: #fff0d4;
}

.emoji-green {
    background: #d4f5d4;
}

/* Selected state */
.store-review-emojis-selected .store-review-emoji {
    opacity: 0.3;
    pointer-events: none;
}

.store-review-emojis-selected .store-review-emoji.selected {
    opacity: 1;
    pointer-events: auto;
}

.store-review-emojis-selected .store-review-emoji.selected .emoji-circle {
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
}

/* Comment textarea */
.store-review-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.store-review-input {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.store-review-input:focus {
    outline: none;
    border-color: #f5c842;
    box-shadow: 0 0 0 3px rgba(245, 200, 66, 0.2);
}

.store-review-input::placeholder {
    color: #aaa;
}

.store-review-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.store-review-comment {
    width: 100%;
    min-height: 80px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 20px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.store-review-comment:focus {
    outline: none;
    border-color: #f5c842;
    box-shadow: 0 0 0 3px rgba(245, 200, 66, 0.2);
}

.store-review-comment::placeholder {
    color: #aaa;
}

/* Submit button */
.store-review-submit {
    display: block;
    width: 100%;
    background: #f5c842;
    color: #333;
    border: none;
    border-radius: 30px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 16px;
}

.store-review-submit:hover {
    background: #e6b832;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 200, 66, 0.4);
}

.store-review-submit:active {
    transform: translateY(0);
}

.store-review-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Disclaimer */
.store-review-disclaimer {
    font-size: 12px;
    color: #888;
    text-align: center;
    margin: 0;
    line-height: 1.5;
}

/* Success / Thank you state */
.store-review-success {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: #d4f5d4;
    border-radius: 50%;
    font-size: 36px;
    color: #2e7d32;
    margin-bottom: 20px;
}

.store-review-thank-you {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
}

.store-review-coupon-text {
    font-size: 15px;
    color: #666;
    margin: 0 0 16px 0;
}

.store-review-coupon-code {
    display: inline-block;
    background: linear-gradient(135deg, #fff9e6 0%, #fff4d6 100%);
    border: 2px dashed #f5c842;
    border-radius: 10px;
    padding: 16px 40px;
    font-size: 28px;
    font-weight: 700;
    color: #d4a017;
    letter-spacing: 3px;
    margin-bottom: 16px;
    user-select: all;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-review-coupon-code:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(245, 200, 66, 0.4);
}

.store-review-coupon-instruction {
    font-size: 14px;
    color: #888;
    margin: 0 0 24px 0;
}

.store-review-close-btn {
    background: #f0f0f0;
    color: #666;
    border: none;
    border-radius: 30px;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.store-review-close-btn:hover {
    background: #e0e0e0;
    color: #333;
}

/* Loading state */
.store-review-submit.loading {
    pointer-events: none;
    position: relative;
    color: transparent;
}

.store-review-submit.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #333;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile responsive */
@media (max-width: 600px) {
    .store-review-popup {
        padding: 30px 24px;
        margin: 16px;
        width: calc(100% - 32px);
    }
    
    .store-review-title {
        font-size: 18px;
    }
    
    .emoji-circle {
        width: 64px;
        height: 64px;
        font-size: 32px;
    }
    
    .store-review-emojis {
        gap: 16px;
    }
    
    .store-review-coupon-code {
        font-size: 22px;
        padding: 12px 24px;
    }
}
