/* SmartReview Frontend - Isolation & Reset */
.smr-root {
    all: revert;
    /* Revert to browser defaults, overriding theme styles */
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    line-height: 1.5 !important;
    text-align: left !important;
}

.smr-root *,
.smr-root *::before,
.smr-root *::after {
    box-sizing: border-box !important;
}

.smr-root h1,
.smr-root h2,
.smr-root h3,
.smr-root h4,
.smr-root h5,
.smr-root h6,
.smr-root p,
.smr-root button,
.smr-root input,
.smr-root textarea {
    font-family: inherit !important;
    margin: 0;
    padding: 0;
}

/* --- Original Styles --- */
/* Header Sections */
.SMRYS-carousel-header {
    text-align: center;
    margin-bottom: 2rem;
}

.SMRYS-carousel-main-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #101828;
}

.SMRYS-rating-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 600;
    color: #344054;
}

.SMRYS-summary-stars {
    color: #000;
    font-size: 1.25rem;
}

.SMRYS-verified-badge-top {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #f97316;
}

.SMRYS-verified-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #f97316;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
}

/* Review Form Styles */
.SMRYS-widget-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #101828;
}

.SMRYS-review-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #fdfdfd;
    border: 1px solid #eaecf0;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.SMRYS-review-cta p {
    margin: 0;
    font-weight: 500;
    color: #344054;
}

.smr-root .SMRYS-submit-button,
.smr-root .SMRYS-submit-button:hover,
.smr-root .SMRYS-submit-button:focus,
.smr-root .SMRYS-submit-button:active {
    background: #f97316 !important;
    color: #fff !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.smr-root .SMRYS-secondary-button,
.smr-root .SMRYS-secondary-button:hover,
.smr-root .SMRYS-secondary-button:focus,
.smr-root .SMRYS-secondary-button:active {
    background: #fdfdfd !important;
    color: #344054 !important;
    border: 1px solid #eaecf0 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    outline: none !important;
}

.SMRYS-inline-review-panel {
    background: #f9fafb;
    border: 1px solid #eaecf0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.SMRYS-inline-review-panel[hidden] {
    display: none !important;
}

.SMRYS-review-step {
    display: none;
}

.SMRYS-review-step.is-active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.SMRYS-review-step h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #101828;
}

.SMRYS-star-rating {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.smr-root .SMRYS-star-btn,
.smr-root .SMRYS-star-btn:hover,
.smr-root .SMRYS-star-btn:focus,
.smr-root .SMRYS-star-btn:active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    font-size: 2.5rem !important;
    color: #98a2b3 !important;
    cursor: pointer !important;
    transition: color 0.1s !important;
    padding: 0 !important;
    line-height: 1 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.smr-root .SMRYS-star-btn.is-active,
.smr-root .SMRYS-star-btn.is-hover {
    color: #f97316 !important;
}

.SMRYS-form-group {
    margin-bottom: 1.25rem;
}

.SMRYS-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: #344054;
}

.SMRYS-form-group input,
.SMRYS-form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #101828;
    background: #fff;
}

.SMRYS-form-group input:focus,
.SMRYS-form-group textarea:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.SMRYS-inline-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.SMRYS-form-message {
    margin-top: 1rem;
    font-weight: 500;
    padding: 0.75rem;
    border-radius: 6px;
    display: none;
}

.SMRYS-form-message.is-success {
    display: block;
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #d1fadf;
}

.SMRYS-form-message.is-error {
    display: block;
    background: #fef3f2;
    color: #b42318;
    border: 1px solid #fee4e2;
}

.SMRYS-other-reviews-head {
    border-top: 1px solid #eaecf0;
    padding-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.SMRYS-other-reviews-head h4 {
    margin: 0;
    font-size: 1.25rem;
    color: #101828;
}

.SMRYS-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.SMRYS-reviews-list.is-collapsed .SMRYS-review-row:nth-child(n+6) {
    display: none !important;
}

.SMRYS-read-more-container {
    margin-top: 2rem;
    padding-bottom: 1rem;
}

.SMRYS-review-row {
    background: #fff;
    border: 1px solid #eaecf0;
    padding: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.SMRYS-review-row p {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    color: #475467;
    line-height: 1.5;
}

.SMRYS-review-stars {
    color: #f97316;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.SMRYS-review-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.SMRYS-avatar {
    width: 36px;
    height: 36px;
    background: #f97316;
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.SMRYS-review-author div strong {
    display: block;
    color: #101828;
    line-height: 1.2;
}

.SMRYS-review-author div small {
    color: #667085;
}

.SMRYS-review-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.smr-root .SMRYS-action-btn,
.smr-root .SMRYS-action-btn:hover,
.smr-root .SMRYS-action-btn:focus,
.smr-root .SMRYS-action-btn:active {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    color: #667085 !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: color 0.2s ease !important;
    box-shadow: none !important;
    outline: none !important;
}

.smr-root .SMRYS-action-btn:hover {
    color: #f97316 !important;
}

.SMRYS-action-btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 1.5;
    flex-shrink: 0;
    overflow: visible;
}

.SMRYS-review-product-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f2f4f7;
}

.SMRYS-review-product-link img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.SMRYS-review-product-link small {
    display: block;
    color: #667085;
    margin-bottom: 0.2rem;
}

.SMRYS-review-product-link a {
    color: #f97316;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.SMRYS-empty-reviews {
    text-align: center;
    color: #667085;
    padding: 2rem 0;
    font-style: italic;
}

/* ── Media upload status indicators ── */
.SMRYS-upload-status {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.SMRYS-upload-item {
    font-size: 0.85rem;
    padding: 0.35rem 0.6rem;
    border-radius: 4px;
}

.SMRYS-upload-pending {
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.SMRYS-upload-done {
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #d1fadf;
}

.SMRYS-upload-error {
    background: #fef3f2;
    color: #b42318;
    border: 1px solid #fee4e2;
}