/* 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;
}

/* Row list layout ([sebenza_reviews_rows]) */
.sebenza-reviews--rows .sebenza-review-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sebenza-review-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.sebenza-review-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.sebenza-review-row-media {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
}

.sebenza-review-row-media--empty {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.sebenza-review-row-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sebenza-review-row-body {
    flex: 1;
    min-width: 0;
}

.sebenza-review-row-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-bottom: 4px;
}

.sebenza-review-row-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.sebenza-review-row-rating {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px 8px;
    line-height: 1;
}

.sebenza-review-row-rating .sebenza-star {
    font-size: 16px;
    letter-spacing: -1px;
}

.sebenza-review-row-rating-num {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    margin-left: 2px;
}

.sebenza-review-row-date {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 8px;
}

.sebenza-review-row-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: #374151;
}

.sebenza-review-row-product {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

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

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

@media (max-width: 500px) {
    .sebenza-review-row {
        flex-direction: column;
        align-items: stretch;
    }

    .sebenza-review-row-media,
    .sebenza-review-row-media--empty {
        flex: 0 0 auto;
        width: 100%;
        height: 160px;
        max-height: 42vw;
    }
}

.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;
}

.sebenza-review-stack {
    break-inside: avoid;
}

@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: unset;
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding: 4px 0 32px;
        scrollbar-width: none;
    }

    .sebenza-review-grid::-webkit-scrollbar {
        display: none;
    }

    .sebenza-review-grid > .sebenza-review-card {
        flex: 0 0 85%;
        max-width: 85%;
        scroll-snap-align: center;
        margin-bottom: 0;
        break-inside: unset;
    }

    .sebenza-review-grid > .sebenza-review-card:not(.has-image) {
        align-self: flex-start;
    }

    .sebenza-review-grid .sebenza-review-card:hover {
        transform: none;
    }

    .sebenza-review-grid > .sebenza-review-card:first-child,
    .sebenza-review-grid > .sebenza-review-stack:first-child {
        margin-left: 7.5%;
    }

    .sebenza-review-grid > .sebenza-review-card:last-child,
    .sebenza-review-grid > .sebenza-review-stack:last-child {
        margin-right: 7.5%;
    }

    .sebenza-review-grid .sebenza-review-stack {
        flex: 0 0 85%;
        max-width: 85%;
        scroll-snap-align: center;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .sebenza-review-stack .sebenza-review-card {
        flex: 0 0 auto;
        max-width: 100%;
        margin-bottom: 0;
    }
}

.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;
    container-type: inline-size;
}

.sebenza-review-hero img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center center;
    max-height: 100cqi;
}

.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;
}

/* Submit button styling is defined in the isolated .sebenza-btn rules below */

.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;
    -webkit-backface-visibility: hidden;
}

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

/* 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: stretch;
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

/*
 * Shopify-style wizard buttons — bold, full-width, theme-isolated.
 */
html body .sebenza-reviews .sebenza-review-wizard .sebenza-step-actions button.sebenza-btn,
html body .sebenza-reviews .sebenza-review-form button.sebenza-btn {
    -webkit-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 14px 24px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    font-style: normal !important;
    line-height: 1.2 !important;
    letter-spacing: 0.02em !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: none !important;
    color: #ffffff !important;
    background: #121212 !important;
    background-image: none !important;
    border: 1px solid #121212 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: opacity 0.15s ease, background-color 0.15s ease !important;
}

html body .sebenza-reviews .sebenza-review-wizard .sebenza-step-actions button.sebenza-btn:hover,
html body .sebenza-reviews .sebenza-review-form button.sebenza-btn:hover {
    color: #ffffff !important;
    background: #121212 !important;
    background-image: none !important;
    border-color: #121212 !important;
    box-shadow: none !important;
    opacity: 0.85 !important;
    transform: none !important;
}

html body .sebenza-reviews .sebenza-review-wizard .sebenza-step-actions button.sebenza-btn:active,
html body .sebenza-reviews .sebenza-review-form button.sebenza-btn:active {
    opacity: 1 !important;
    background: #000000 !important;
    border-color: #000000 !important;
    transform: none !important;
    box-shadow: none !important;
}

html body .sebenza-reviews .sebenza-review-wizard .sebenza-step-actions button.sebenza-btn:focus,
html body .sebenza-reviews .sebenza-review-form button.sebenza-btn:focus {
    outline: none !important;
}

html body .sebenza-reviews .sebenza-review-wizard .sebenza-step-actions button.sebenza-btn:focus-visible,
html body .sebenza-reviews .sebenza-review-form button.sebenza-btn:focus-visible {
    outline: 2px solid #121212 !important;
    outline-offset: 2px !important;
}

html body .sebenza-reviews .sebenza-review-wizard .sebenza-finish-link {
    display: block !important;
    align-self: center !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    color: #121212 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    transition: opacity 0.15s ease !important;
}

html body .sebenza-reviews .sebenza-review-wizard .sebenza-finish-link:hover,
html body .sebenza-reviews .sebenza-review-wizard .sebenza-finish-link:focus {
    color: #121212 !important;
    text-decoration: underline !important;
    background: none !important;
    opacity: 0.7 !important;
}

/* 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); }
}

.sebenza-test-mode-notice {
    margin: 0 0 20px;
    padding: 12px 14px;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    color: #92400e;
    font-size: 14px;
    line-height: 1.5;
}

/* 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;
}

/* Coupon reward in completion screen */
.sebenza-coupon-reward {
    margin-top: 24px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px dashed #10b981;
    border-radius: 10px;
    display: inline-block;
}

.sebenza-coupon-label {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 500;
    color: #047857;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sebenza-coupon-code {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
    color: #065f46;
    letter-spacing: 1.5px;
    font-family: monospace, Arial, sans-serif;
}

.sebenza-coupon-amount {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #10b981;
}

/* 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 !important;
    height: 36px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 36px !important;
    max-height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    font-size: 24px !important;
    line-height: 1 !important;
    cursor: pointer;
    z-index: 10;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #374151 !important;
    transition: background 0.15s ease;
    clip-path: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !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;
    }
}

/* ========================================
   Reviews Header (summary + Leave a review)
   ======================================== */

.sebenza-reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.sebenza-reviews-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1;
}

.sebenza-summary-stars {
    display: inline-flex;
    gap: 2px;
    font-size: 20px;
    line-height: 1;
}

.sebenza-summary-stars .sebenza-star {
    color: #d1d5db;
}

.sebenza-summary-stars .sebenza-star.is-filled {
    color: #f59e0b;
}

.sebenza-summary-stars .sebenza-star--partial {
    position: relative;
    display: inline-block;
}

.sebenza-summary-stars .sebenza-star-fill {
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
    color: #f59e0b;
}

.sebenza-summary-average {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.sebenza-summary-count {
    font-size: 14px;
    color: #6b7280;
}

.sebenza-summary-empty {
    font-size: 15px;
    color: #6b7280;
}

html body .sebenza-reviews .sebenza-leave-review-btn {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 12px 24px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    text-decoration: none !important;
    color: #ffffff !important;
    background: #121212 !important;
    background-image: none !important;
    border: 1px solid #121212 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: opacity 0.15s ease !important;
}

html body .sebenza-reviews .sebenza-leave-review-btn:hover {
    color: #ffffff !important;
    background: #121212 !important;
    opacity: 0.85 !important;
    transform: none !important;
}

html body .sebenza-reviews .sebenza-leave-review-btn:focus-visible {
    outline: 2px solid #121212 !important;
    outline-offset: 2px !important;
}

/* ========================================
   Write Review Modal
   ======================================== */

.sebenza-write-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
}

.sebenza-write-modal.is-open {
    display: block;
}

body.sebenza-write-modal-open {
    overflow: hidden;
}

.sebenza-write-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.sebenza-write-modal-content {
    position: relative;
    max-width: 560px;
    width: calc(100% - 32px);
    margin: 5vh auto;
    padding: 32px 28px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: fadeIn 0.25s ease;
}

.sebenza-write-modal-title {
    margin: 0 0 20px;
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html body .sebenza-write-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 26px;
    line-height: 1;
    color: #6b7280;
    background: transparent;
    border: none;
    border-radius: 50%;
    box-shadow: none;
    cursor: pointer;
}

html body .sebenza-write-modal-close:hover {
    color: #111827;
    background: #f3f4f6;
}

@media (max-width: 600px) {
    .sebenza-write-modal-content {
        margin: 0 auto;
        width: 100%;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
        padding: 28px 20px;
    }
}
