/* Force Helvetica on all review widgets - override page builders */
.sebenza-reviews,
.sebenza-reviews *,
.sebenza-reviews *::before,
.sebenza-reviews *::after {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

.sebenza-reviews {
    margin: 24px 0;
}

.sebenza-review-success {
    padding: 12px 16px;
    background: #f0f7ff;
    border: 1px solid #c8e0ff;
    border-radius: 8px;
    margin-bottom: 16px;
}

/* Masonry grid layout */
.sebenza-review-grid {
    column-count: 5;
    column-gap: 16px;
}

@media (max-width: 1400px) {
    .sebenza-review-grid {
        column-count: 4;
    }
}

@media (max-width: 1100px) {
    .sebenza-review-grid {
        column-count: 3;
    }
}

@media (max-width: 800px) {
    .sebenza-review-grid {
        column-count: 2;
    }
}

@media (max-width: 500px) {
    .sebenza-review-grid {
        column-count: 1;
    }
}

.sebenza-review-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
    break-inside: avoid;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.sebenza-review-card:not(.has-image) .sebenza-review-content {
    padding: 16px;
}

.sebenza-review-hero {
    width: 100%;
    overflow: hidden;
}

.sebenza-review-hero img {
    width: 100%;
    height: auto;
    display: block;
}

.sebenza-review-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Author name - main heading */
.sebenza-review-author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

.sebenza-verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #111827;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    clip-path: polygon(
        50% 0%, 61% 5%, 70% 0%, 78% 8%, 90% 5%, 93% 18%, 
        100% 28%, 95% 38%, 100% 50%, 95% 62%, 100% 72%, 
        93% 82%, 90% 95%, 78% 92%, 70% 100%, 61% 95%, 
        50% 100%, 39% 95%, 30% 100%, 22% 92%, 10% 95%, 
        7% 82%, 0% 72%, 5% 62%, 0% 50%, 5% 38%, 
        0% 28%, 7% 18%, 10% 5%, 22% 8%, 30% 0%, 39% 5%
    );
}

/* Review date */
.sebenza-review-date {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 10px;
}

/* Star rating */
.sebenza-review-rating {
    margin-bottom: 12px;
    line-height: 1;
}

.sebenza-star {
    color: #e5e7eb;
    font-size: 18px;
    letter-spacing: -1px;
    display: inline;
}

.sebenza-star.is-filled {
    color: #fbbf24;
}

/* Review body text */
.sebenza-review-body {
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 16px;
}

.sebenza-review-body p {
    margin: 0;
}

/* Product footer - small at bottom */
.sebenza-review-product-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
    margin-top: auto;
}

.sebenza-product-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.sebenza-product-title {
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s ease;
}

.sebenza-product-title:hover {
    color: #111827;
}

/* Legacy class - keep for backwards compatibility */
.sebenza-review-product {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
}

.sebenza-review-product a {
    color: #111827;
    text-decoration: none;
    transition: color 0.15s ease;
}

.sebenza-review-product a:hover {
    color: #6366f1;
}


.sebenza-review-form {
    margin-top: 24px;
    padding: 16px;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    background: #fafafa;
}

.sebenza-review-form label {
    display: block;
    margin: 12px 0 6px;
    font-weight: 600;
}

.sebenza-review-form input[type="text"],
.sebenza-review-form input[type="email"],
.sebenza-review-form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
}

.sebenza-review-form textarea {
    min-height: 120px;
}

.sebenza-review-form button {
    margin-top: 12px;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    background: #111827;
    color: #fff;
    cursor: pointer;
}

.sebenza-rating-options {
    display: flex;
    gap: 8px;
}

/* Product Selector for multiple items */
.sebenza-product-selector {
    margin-bottom: 24px;
}

.sebenza-product-selector h3 {
    margin: 0 0 16px;
    font-size: 18px;
}

.sebenza-product-list {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.sebenza-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border: 2px solid #e6e6e6;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
}

.sebenza-product-item:hover {
    border-color: #111827;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sebenza-product-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.sebenza-product-item span {
    font-weight: 600;
    font-size: 14px;
}

/* Product info display above form */
.sebenza-review-product-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
}

.sebenza-review-product-info h3 {
    margin: 0;
    font-size: 18px;
}

.sebenza-review-product-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

/* ========================================
   Review Wizard (Multi-step form)
   ======================================== */

.sebenza-review-wizard {
    max-width: 500px;
    margin: 0 auto;
}

/* Progress bar */
.sebenza-wizard-progress {
    margin-bottom: 24px;
    text-align: center;
}

.sebenza-progress-text {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #6b7280;
}

.sebenza-progress-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.sebenza-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Wizard steps */
.sebenza-wizard-step {
    display: none;
    position: relative;
}

.sebenza-wizard-step.is-active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.sebenza-wizard-step.is-complete {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Product display in step */
.sebenza-step-product {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    margin-bottom: 24px;
}

.sebenza-step-product-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sebenza-step-product-name {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

/* Step fields */
.sebenza-step-field {
    margin-bottom: 20px;
}

.sebenza-step-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
}

.sebenza-step-field textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    resize: vertical;
    transition: border-color 0.15s ease;
    box-sizing: border-box;
}

.sebenza-step-field textarea:focus {
    outline: none;
    border-color: #667eea;
}

.sebenza-step-field input[type="text"],
.sebenza-step-field input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.15s ease;
    box-sizing: border-box;
}

.sebenza-step-field input:focus {
    outline: none;
    border-color: #667eea;
}

/* Star rating */
.sebenza-star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.sebenza-star-rating input {
    display: none;
}

.sebenza-star-rating label {
    cursor: pointer;
    font-size: 36px;
    color: #d1d5db;
    transition: color 0.1s ease, transform 0.1s ease;
    margin: 0;
}

.sebenza-star-rating label:hover,
.sebenza-star-rating label:hover ~ label,
.sebenza-star-rating input:checked ~ label {
    color: #fbbf24;
}

.sebenza-star-rating label:hover {
    transform: scale(1.15);
}

/* Image upload */
.sebenza-image-upload {
    position: relative;
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: border-color 0.15s ease;
    cursor: pointer;
}

.sebenza-image-upload:hover {
    border-color: #667eea;
}

.sebenza-image-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.sebenza-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.sebenza-upload-icon {
    font-size: 32px;
}

.sebenza-upload-text {
    font-size: 14px;
    color: #6b7280;
}

.sebenza-image-preview {
    max-width: 200px;
    margin: 0 auto;
}

.sebenza-image-preview img {
    width: 100%;
    border-radius: 8px;
}

/* Photo incentive notice */
.sebenza-photo-incentive {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #065f46;
    animation: sebenza-incentive-pulse 2s ease-in-out infinite;
}

.sebenza-incentive-icon {
    font-size: 18px;
    animation: sebenza-bounce 1s ease infinite;
}

@keyframes sebenza-incentive-pulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    50% { 
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
}

@keyframes sebenza-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Customer fields */
.sebenza-customer-fields {
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

/* Step actions */
.sebenza-step-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.sebenza-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    min-width: 200px;
}

.sebenza-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.35);
}

.sebenza-btn:active {
    transform: translateY(0);
}

.sebenza-finish-link {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.15s ease;
}

.sebenza-finish-link:hover {
    color: #6b7280;
    text-decoration: underline;
}

/* Loading state */
.sebenza-step-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 12px;
    z-index: 10;
}

.sebenza-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e5e7eb;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Completion state */
.sebenza-review-complete {
    text-align: center;
    padding: 48px 24px;
}

.sebenza-complete-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
}

.sebenza-review-complete h2 {
    margin: 0 0 12px;
    font-size: 24px;
    color: #111827;
}

.sebenza-review-complete p {
    margin: 0;
    color: #6b7280;
    font-size: 16px;
}

.sebenza-back-home {
    display: inline-block;
    margin-top: 24px;
    color: #6b7280;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.15s ease;
}

.sebenza-back-home:hover {
    color: #111827;
}

/* Review card hover state for clickability */
.sebenza-review-card {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sebenza-review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

/* Load more button */
.sebenza-load-more-wrap {
    text-align: center;
    margin-top: 32px;
    padding-top: 16px;
}

.sebenza-load-more-btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sebenza-load-more-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.sebenza-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Review Modal */
body.sebenza-modal-open {
    overflow: hidden;
}

.sebenza-review-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.sebenza-review-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.sebenza-review-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
}

.sebenza-review-modal-content {
    position: relative;
    display: flex;
    max-width: 900px;
    max-height: 90vh;
    width: 90%;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

/* Force Helvetica on modal content - override page builders */
.sebenza-review-modal-content,
.sebenza-review-modal-content * {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

.sebenza-review-modal-content.no-image {
    max-width: 500px;
}

.sebenza-review-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151 !important;
    transition: background 0.15s ease;
    clip-path: none !important;
}

.sebenza-review-modal-close:hover {
    background: #fff;
}

.sebenza-review-modal-image {
    flex: 0 0 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sebenza-review-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sebenza-review-modal-details {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sebenza-modal-customer-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.sebenza-modal-customer {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.sebenza-modal-customer-wrap .sebenza-verified-badge {
    width: 20px;
    height: 20px;
    font-size: 11px;
}

.sebenza-modal-date {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 16px;
}

.sebenza-modal-rating {
    margin-bottom: 16px;
}

.sebenza-modal-rating .sebenza-star {
    font-size: 20px;
    letter-spacing: 0;
}

.sebenza-modal-text {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
    flex: 1;
    margin-bottom: 24px;
}

.sebenza-modal-product {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.sebenza-modal-product-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.sebenza-modal-product-link {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    text-decoration: none;
    transition: color 0.15s ease;
}

.sebenza-modal-product-link:hover {
    color: #6366f1;
}

/* Modal responsive */
@media (max-width: 700px) {
    .sebenza-review-modal-content {
        flex-direction: column;
        max-height: 95vh;
    }
    
    .sebenza-review-modal-image {
        flex: 0 0 auto;
        max-height: 40vh;
    }
    
    .sebenza-review-modal-details {
        padding: 24px;
    }
}
