/* KC Reviews System Styles */

.kc-reviews-section {
    padding: 60px 0;
    background: #fafbfc;
    border-top: 1px solid #e5e7eb;
}

.kc-reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
}

.kc-reviews-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.kc-write-review-btn,
.kc-write-review-btn-large {
    background: radial-gradient(120% 210% at 95% 0px, rgb(83 24 137) 10%, rgb(0 0 0) 70%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.kc-write-review-btn:hover,
.kc-write-review-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.kc-write-review-btn-large {
    padding: 16px 48px;
    font-size: 16px;
}

/* No Reviews State */
.kc-no-reviews {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 12px;
    border: 1px dashed #e5e7eb;
}

.kc-no-reviews-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px 0;
}

.kc-no-reviews-message {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 32px 0;
    line-height: 1.6;
}

/* Review Summary */
.kc-review-summary {
    margin-bottom: 40px;
}

.kc-review-stats {
    background: white;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.kc-average-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.kc-average-number {
    font-size: 48px;
    font-weight: 700;
    color: #111827;
}

.kc-average-stars {
    display: flex;
    gap: 4px;
}

.kc-review-count {
    font-size: 14px;
    color: #6b7280;
    margin-top: 8px;
}

/* Review Stars */
.kc-review-stars {
    display: flex;
    gap: 4px;
    align-items: center;
}

.kc-review-stars--large {
    --star-size: 32px;
}

.kc-review-stars--medium {
    --star-size: 24px;
}

.kc-review-stars--small {
    --star-size: 18px;
}

.kc-review-star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
   /* width: var(--star-size, 24px);
     height: var(--star-size, 24px); */
    font-size: 18px;
    color: #fbbf24;
    margin: 1px;
}

.kc-review-star--empty {
    color: #d1d5db;
}

.kc-review-star i {
    font-size: inherit;
}

/* Reviews List */
.kc-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.kc-review-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
}

.kc-review-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.1);
}

.kc-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.kc-review-author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kc-review-author-name {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.kc-review-date {
    font-size: 13px;
    color: #9ca3af;
}

.kc-review-rating {
    display: flex;
    gap: 4px;
}

.kc-review-content {
    margin-bottom: 16px;
}

.kc-review-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
}

.kc-review-item-text {
    font-size: 15px;
    color: #374151;
    line-height: 1.6;
    margin: 0;
}

/* Detailed Ratings */
.kc-review-detailed-ratings {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.kc-rating-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.kc-rating-label {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    min-width: 120px;
}

.kc-rating-stars {
    display: flex;
    gap: 4px;
}

/* Review Modal */
.kc-review-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.kc-review-modal {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kc-review-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    background: white;
    border-radius: 16px 16px 0 0;
}

.kc-review-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.kc-review-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.3s ease;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kc-review-modal-close:hover {
    color: #ef4444;
}

.kc-review-modal-content {
    padding: 32px;
}

/* Product Info in Modal */
.kc-review-product-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
}

.kc-review-product-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.kc-review-product-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

/* Form Styles */
.kc-review-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.kc-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kc-form-group-half {
    flex: 1;
}

.kc-guest-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.kc-form-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.kc-required {
    color: #ef4444;
}

.kc-form-input,
.kc-form-textarea {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.kc-form-input:focus,
.kc-form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.kc-form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Star Rating Input */
.kc-star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

.kc-star-input {
    display: none;
}

.kc-star-label {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 4px;
}

.kc-star-icon {
    width: 32px;
    height: 32px;
    color: #d1d5db;
    transition: all 0.2s ease;
}

.kc-star-outline {
    display: block;
}

.kc-star-fill {
    display: none;
    color: #fbbf24;
}

.kc-star-input:checked ~ .kc-star-label .kc-star-outline {
    display: none;
}

.kc-star-input:checked ~ .kc-star-label .kc-star-fill {
    display: block;
}

.kc-star-input:checked ~ .kc-star-label,
.kc-star-label:hover,
.kc-star-label:hover ~ .kc-star-label {
    transform: scale(1.2);
}

.kc-star-input:checked ~ .kc-star-label .kc-star-fill,
.kc-star-label:hover .kc-star-icon,
.kc-star-label:hover ~ .kc-star-label .kc-star-icon {
    color: #fbbf24;
}

/* Form Actions */
.kc-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.kc-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kc-btn-primary {
    background: radial-gradient(120% 210% at 95% 0px, rgb(83 24 137) 10%, rgb(0 0 0) 70%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.kc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.kc-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.kc-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.kc-btn-secondary:hover {
    background: #e5e7eb;
}

/* Form Message */
.kc-form-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.kc-form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.kc-form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Responsive */
@media (max-width: 768px) {
    .kc-reviews-header {
        flex-direction: column;
        align-items: stretch;
    }

    .kc-write-review-btn {
        width: 100%;
        text-align: center;
    }

    .kc-review-modal {
        max-width: 100%;
        max-height: 100%;
        border-radius: 16px 16px 0 0;
    }

    .kc-review-modal-content {
        padding: 20px;
    }

    .kc-review-product-info {
        flex-direction: column;
        text-align: center;
    }

    .kc-guest-fields {
        grid-template-columns: 1fr;
    }

    .kc-form-actions {
        flex-direction: column;
    }

    .kc-btn {
        width: 100%;
    }

    .kc-review-header {
        flex-direction: column;
    }

    .kc-review-item {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .kc-reviews-title {
        font-size: 20px;
    }

    .kc-review-modal-title {
        font-size: 18px;
    }

    .kc-average-number {
        font-size: 36px;
    }

    .kc-star-rating-input {
        gap: 4px;
    }

    .kc-star-icon {
        width: 28px;
        height: 28px;
    }
}
