.dio-custom-review-wrapper {
    border: 0;
    margin: 20px 0;
    color: #021B32;
}

.dio-custom-review-rating-summary {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    margin: 32px auto;
    max-width: 800px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.dio-custom-review-rating-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 200px;
}

.dio-custom-review-rating-label {
    font-size: 16px;
    font-weight: 600;
    color: #021B32;
    margin-bottom: 8px;
}

.dio-custom-review-rating-big {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    color: #021B32;
    margin-bottom: 8px;
}

.dio-custom-review-rating-stars {
    margin-bottom: 8px;
}

.dio-custom-review-rating-stars .star {
    font-size: 24px !important;
    color: #F9C90A !important;
}

.dio-custom-review-rating-stars .star-rating {
    font-size: 24px !important;
    line-height: 1;
}

.dio-custom-review-rating-stars .star-rating span:before {
    color: #F9C90A !important;
}

.dio-custom-review-rating-stars .star-rating:before {
    color: #e5e7eb !important;
}

.dio-custom-review-rating-total {
    color: #6b7280;
    font-size: 14px;
}

.dio-custom-review-rating-bars {
    flex: 1;
    min-width: 300px;
}

.dio-custom-review-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.dio-custom-review-bar-row:hover {
    background-color: #f9fafb;
}

.dio-custom-review-bar-row-active {
    background-color: #eff6ff;
}

.dio-custom-review-bar-row-active:hover {
    background-color: #dbeafe;
}

.dio-custom-review-bar-label {
    width: 20px;
    text-align: right;
    color: #021B32;
    font-weight: 500;
    font-size: 14px;
}

.dio-custom-review-bar {
    flex: 1;
    height: 16px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.dio-custom-review-bar-fill {
    display: block !important;
    height: 100% !important;
    background: #F9C90A !important;
}

.dio-custom-review-bar-count {
    color: #6b7280;
    font-size: 14px;
    min-width: 50px;
    text-align: left;
}

.dio-custom-review-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.dio-custom-review-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.dio-custom-review-about {
    color: #6b7280;
    margin-right: 4px;
    font-size: 12px;
}

.dio-custom-review-product-link {
    text-decoration: none;
    color: #05559F !important;
}



.dio-custom-review-card-rating-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0px 0 24px 0;
}

.dio-custom-review-card-rating {
    margin: 0;
    flex-shrink: 0;
}

.dio-custom-review-card-date-inline {
    color: #6b7280;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
}

.dio-custom-review-card-title {
    margin: 0 0 5px 0 !important;
    font-size: 18px;
    font-weight: 700;
    color: #021B32;
    line-height: 1.4;
}

.dio-custom-review-card-content {
    flex: 1;
    line-height: 1.6;
    color: #334155;
}

.dio-custom-review-card-content p {
    margin: 0 0 12px 0;
}

.dio-custom-review-card-content p:last-child {
    margin-bottom: 0;
}

.dio-custom-review-card-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.dio-custom-review-avatar {
    border-radius: 50%;
    width: 33px;
    height: 33px;
    object-fit: cover;
    flex-shrink: 0;
}

.dio-custom-review-badge {
    background: #083156;
    color: #FFFFFF;
    border-radius: 999px;
    padding: 0 9px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    line-height: 1.8;
}



.dio-custom-review-card-author {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-top: 20px;
}

.dio-custom-review-author-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    line-height: 1;
}

.dio-custom-review-author-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dio-custom-review-author strong {
    font-weight: 600;
    color: #021B32;
    font-size: 14px;
}


.dio-custom-review-location {
    color: #6b7280;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.dio-custom-review-location-flag {
    display: inline-block;
    width: 16px;
    height: 12px;
    border-radius: 2px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.dio-custom-review-reply {
    margin-top: 16px;
    padding: 16px;
    padding-left: 48px;
    background: #f9fafb;
    border-left: 3px solid #e5e7eb;
    border-radius: 0 8px 8px 0;
}

.dio-custom-review-reply-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.dio-custom-review-reply-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.dio-custom-review-reply-author {
    font-weight: 600;
    color: #021B32;
    font-size: 14px;
}

.dio-custom-review-reply-date {
    color: #6b7280;
    font-size: 12px;
}

.dio-custom-review-reply-content {
    color: #334155;
    font-size: 14px;
    line-height: 1.6;
}

.dio-custom-review-reply-content p {
    margin: 0 0 8px 0;
}

.dio-custom-review-reply-content p:last-child {
    margin-bottom: 0;
}

.dio-custom-review-stars .star {
    font-size: 16px !important;
}

.dio-custom-review-stars .full {
    color: #F9C90A !important;
}

.dio-custom-review-stars .half {
    color: #F9C90A !important;
    opacity: .6 !important;
}

.dio-custom-review-stars .empty {
    color: #e5e7eb !important;
}

/* Override WooCommerce star colors if using wc_get_rating_html */
.dio-custom-review-wrapper .star-rating span:before,
.dio-custom-review-wrapper .woocommerce .star-rating span:before {
    color: #F9C90A !important;
}

.dio-custom-review-wrapper .star-rating:before,
.dio-custom-review-wrapper .woocommerce .star-rating:before {
    color: #e5e7eb !important;
}

.dio-custom-review-controls {
    display: flex !important;
    flex-direction: row !important;
    gap: 16px !important;
    align-items: center !important;
    margin: 24px 0 !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
}

.dio-custom-review-filter {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 0 !important;
    flex-shrink: 0;
}

.dio-custom-review-sort-wrapper {
    position: relative;
    width: auto;
}

.dio-custom-review-sort-select {
    border: 1px solid #e5e7eb !important;
    background: #fff !important;
    padding: 0 40px 0 12px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
    color: #6b7280 !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: none !important;
    min-width: 150px !important;
    margin-left: 0 !important;
    height: 42px !important;
    box-sizing: border-box !important;
    width: auto !important;
    line-height: 42px !important;
}

.dio-custom-review-sort-select:focus {
    outline: none !important;
    border-color: #e5e7eb !important;
    box-shadow: none !important;
}

.dio-custom-review-sort-chevron {
    position: absolute;
    right: 12px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    color: #6b7280;
    font-size: 12px;
    z-index: 1;
    line-height: 1;
}

.dio-custom-review-label {
    font-weight: 700 !important;
    font-size: 16px !important;
    color: #021B32 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.5 !important;
}

.dio-custom-review-select {
    border: 1px solid #e5e7eb !important;
    background: #fff !important;
    padding: 0 40px 0 12px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
    color: #021B32 !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: none !important;
    min-width: 150px !important;
    margin-left: 0 !important;
    height: 42px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    line-height: 42px !important;
}

.dio-custom-review-select:focus {
    outline: none !important;
    border-color: #e5e7eb !important;
    box-shadow: none !important;
}

.dio-custom-review-input {
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 10px 40px 10px 36px;
    border-radius: 8px;
    font-size: 14px;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: #021B32;
    width: 100%;
    box-sizing: border-box;
    height: 42px;
}

.dio-custom-review-input::placeholder {
    color: #9ca3af;
}

.dio-custom-review-input:focus {
    outline: none;
    border-color: #e5e7eb;
    box-shadow: none;
    background: #fff;
}

.dio-custom-review-pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 10px;
}

.dio-custom-review-pagination button {
    border: 1px solid #00234F;
    background: #fff;
    color: #00234F;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dio-custom-review-pagination button:hover {
    background: #f9fafb;
}

.dio-custom-review-pagination button.active {
    background: #00234F;
    color: #fff;
    border-color: #00234F;
}

.dio-custom-review-page-ellipsis {
    padding: 6px 4px;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dio-custom-review-form {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    background: #fff;
    max-width: 600px;
    margin: 24px auto !important;
}

.dio-custom-review-thank-you {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 56px 32px;
    background: linear-gradient(to bottom, #fff 0%, #f9fafb 100%);
    max-width: 600px;
    margin: 24px auto !important;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.dio-custom-review-thank-you-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #17A34A;
    color: #FFFFFF;
    font-size: 42px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(23, 163, 74, 0.3);
    position: relative;
}

.dio-custom-review-thank-you-icon svg {
    width: 42px;
    height: 42px;
    color: #FFFFFF;
}

.dio-custom-review-thank-you-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F9C90A 0%, #e6b809 100%);
    opacity: 0.2;
    z-index: -1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.2;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }
}

.dio-custom-review-thank-you-title {
    font-size: 32px;
    font-weight: 700;
    color: #021B32;
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
}

.dio-custom-review-thank-you-message {
    font-size: 16px;
    color: #334155;
    line-height: 1.7;
    margin: 0;
    max-width: 100%;
    text-align: left;
}

.dio-custom-review-thank-you-message p {
    margin: 0 0 16px 0;
}

.dio-custom-review-thank-you-message p:last-child {
    margin-bottom: 0;
}

.dio-custom-review-thank-you-links {
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dio-custom-review-thank-you-link {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 24px;
    background: #00234F;
    border-radius: 12px;
    border: none;
    transition: all 0.2s ease;
    text-align: center;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.dio-custom-review-thank-you-link:hover {
    color: #fff;
    background: #003366;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 35, 79, 0.2);
}

.dio-custom-review-thank-you-link-alt {
    display: inline-block;
    color: #00234F;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid #00234F;
    border-radius: 12px;
    transition: all 0.2s ease;
    text-align: center;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.dio-custom-review-thank-you-link-alt:hover {
    color: #00234F;
    background: #f9fafb;
    border-color: #00234F;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 35, 79, 0.1);
}

.dio-custom-review-copy-box {
    margin-top: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.dio-custom-review-copy-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.dio-custom-review-copy-box-header span {
    font-weight: 600;
    font-size: 14px;
    color: #021B32;
}

.dio-custom-review-copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #00234F;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dio-custom-review-copy-btn:hover {
    background: #0284c7;
}

.dio-custom-review-copy-btn:active {
    background: #0369a1;
}

.dio-custom-review-copy-btn.copied {
    background: #17A34A;
}

.dio-custom-review-copy-btn i {
    font-size: 12px;
}

.dio-custom-review-copy-box-content {
    padding: 16px;
    color: #334155;
    font-size: 14px;
    line-height: 1.6;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-line;
    word-wrap: break-word;
}

.dio-custom-review-copy-box-content p {
    margin: 0 0 8px 0;
}

.dio-custom-review-copy-box-content p:last-child {
    margin-bottom: 0;
}

.dio-custom-review-order-not-completed {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 56px 32px;
    background: linear-gradient(to bottom, #fff 0%, #f9fafb 100%);
    max-width: 600px;
    margin: 24px auto !important;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.dio-custom-review-order-not-completed-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f59e0b;
    color: #FFFFFF;
    font-size: 42px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.dio-custom-review-order-not-completed-icon svg {
    width: 42px;
    height: 42px;
    color: #FFFFFF;
}

.dio-custom-review-order-not-completed-title {
    font-size: 32px;
    font-weight: 700;
    color: #021B32;
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
}

.dio-custom-review-order-not-completed-message {
    font-size: 17px;
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.dio-custom-review-form-wrapper {
    min-height: 600px;
    margin: 50px 0 80px 0;
    display: flex;
}

.dio-custom-review-form-intro {
    margin-bottom: 24px;
    color: #021B32;
    font-size: 14px;
    line-height: 1.6;
}

.dio-custom-review-form-intro p {
    margin: 0 0 12px 0;
}

.dio-custom-review-form-intro p:last-child {
    margin-bottom: 0;
}

.dio-custom-review-form-row {
    margin-bottom: 20px;
}

.dio-custom-review-form-row label {
    display: block;
    font-weight: 600;
    color: #021B32;
    font-size: 14px;
}

.dio-custom-review-form-row.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.dio-custom-review-form-row.checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
}

.dio-custom-review-form-row.checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.dio-custom-review-form-row input[type="text"],
.dio-custom-review-form-row input[type="email"],
.dio-custom-review-form-row textarea,
.dio-custom-review-form-row select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: #021B32;
    background: #fff;
    box-sizing: border-box;
}

.dio-custom-review-select-wrapper {
    position: relative;
    width: 100%;
}

.dio-custom-review-select-wrapper select {
    padding-right: 40px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.dio-custom-review-select-chevron {
    position: absolute;
    right: 12px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    color: #6b7280;
    font-size: 12px;
    z-index: 1;
    line-height: 1;
}

.dio-custom-review-form-row input[type="text"]:focus,
.dio-custom-review-form-row input[type="email"]:focus,
.dio-custom-review-form-row textarea:focus,
.dio-custom-review-form-row select:focus {
    outline: none;
    border-color: #e5e7eb;
    box-shadow: none;
}

.dio-custom-review-input-disabled {
    background: #f9fafb !important;
    color: #6b7280 !important;
    cursor: not-allowed !important;
    border: 1px solid #e5e7eb !important;
    padding: 10px 12px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
    width: 100% !important;
    box-sizing: border-box !important;
    height: 42px !important;
}

.dio-custom-review-user-fields {
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
    margin-top: 20px;
    display: block;
    /* Show by default */
}

.dio-custom-review-required {
    color: #dc2626;
}

/* Interactive Star Rating */
.dio-custom-review-star-rating {
    display: flex;
    gap: 4px;
    align-items: center;
    font-size: 0;
    padding: 8px 0;
}

.dio-custom-review-star {
    font-size: 32px;
    color: #e5e7eb !important;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.1s ease;
    line-height: 1;
    user-select: none;
    display: inline-block;
    position: relative;
}

.dio-custom-review-star.active {
    color: #F9C90A !important;
}

.dio-custom-review-star-rating.has-rating {
    border: 2px solid #F9C90A;
    border-radius: 8px;
    padding: 4px 8px;
    display: inline-flex;
}

.dio-custom-review-star-rating.has-rating .dio-custom-review-star.active {
    color: #F9C90A !important;
    text-shadow: 0 0 2px rgba(249, 201, 10, 0.3);
}

.dio-custom-review-star:hover {
    transform: scale(1.1);
}

/* Color is controlled by active class, not hover */
.dio-custom-review-star-rating .dio-custom-review-star.active {
    color: #F9C90A !important;
}

.dio-custom-review-star-rating .dio-custom-review-star:not(.active) {
    color: #e5e7eb !important;
}

.dio-custom-review-form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.dio-custom-review-btn {
    background-color: #F9C90A;
    border-radius: 999px;
    color: #021B32;
    border: 0;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.dio-custom-review-btn:hover {
    background-color: #e6b809;
    color: #021B32;
}

.dio-custom-review-btn:focus {
    outline: none;
    box-shadow: none;
}

.dio-custom-review-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.dio-custom-review-form-msg {
    color: #334155;
    font-size: 13px;
    font-weight: 500;
}

.dio-custom-review-list {
    min-height: 100px;
    position: relative;
}

.dio-custom-review-list.dio-custom-review-loading {
    opacity: 0.6;
    pointer-events: none;
}

.dio-custom-review-list.dio-custom-review-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #e5e7eb;
    border-top-color: #00234F;
    border-radius: 50%;
    animation: dio-cr-spin 0.6s linear infinite;
}

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

.dio-custom-review-empty,
.dio-custom-review-error {
    padding: 20px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.dio-custom-review-error {
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
}

.dio-custom-review-search {
    position: relative !important;
    width: 40% !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
}

.dio-custom-review-search-input {
    border: 1px solid #e5e7eb !important;
    background: #f9fafb !important;
    padding: 10px 40px 10px 36px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
    color: #021B32 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    height: 42px !important;
}

.dio-custom-review-search-input::placeholder {
    color: #9ca3af !important;
}

.dio-custom-review-search-input:focus {
    outline: none !important;
    border-color: #e5e7eb !important;
    box-shadow: none !important;
    background: #fff !important;
}

.dio-custom-review-search::before {
    content: '' !important;
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 16px !important;
    height: 16px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%239ca3af' d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04 0.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

.dio-custom-review-search-clear {
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    color: #6b7280 !important;
    cursor: pointer !important;
    padding: 4px 8px !important;
    font-size: 18px !important;
    line-height: 1 !important;
    z-index: 2 !important;
}

.dio-custom-review-search-clear:hover {
    color: #334155 !important;
}

/* Override WooCommerce styles */
.dio-custom-review-wrapper select,
.dio-custom-review-wrapper input[type="search"],
.dio-custom-review-wrapper input[type="text"] {
    box-shadow: none !important;
}

.dio-custom-review-wrapper select:focus,
.dio-custom-review-wrapper input:focus {
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1) !important;
}

@media (max-width:640px) {
    .dio-custom-review-form {
        padding: 16px;
    }

    .dio-custom-review-form-row.two {
        grid-template-columns: 1fr !important;
    }

    .dio-custom-review-star {
        font-size: 28px;
    }

    .dio-custom-review-controls {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .dio-custom-review-filter {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .dio-custom-review-select {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .dio-custom-review-filter,
    .dio-custom-review-search {
        width: 100% !important;
    }
}

/* Rating display for title meta (product page rating display) */
.vi-title-meta__rating,
.dio-custom-review-title-meta-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 16px;
    line-height: 1.5;
    color: #656A76;
    font-weight: 500;
}

.vi-title-meta__rating .dio-cr-rating-avg-with-stars,
.dio-custom-review-title-meta-rating .dio-cr-rating-avg-with-stars {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.vi-title-meta__rating .dio-custom-review-stars,
.dio-custom-review-title-meta-rating .dio-custom-review-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    line-height: 1;
}

.vi-title-meta__rating .dio-custom-review-stars .star,
.dio-custom-review-title-meta-rating .dio-custom-review-stars .star {
    font-size: 16px;
    line-height: 1;
    display: inline-block;
}

.vi-title-meta__rating .dio-custom-review-stars .star.full,
.dio-custom-review-title-meta-rating .dio-custom-review-stars .star.full {
    color: #F9C90A;
}

.vi-title-meta__rating .dio-custom-review-stars .star.half,
.dio-custom-review-title-meta-rating .dio-custom-review-stars .star.half {
    color: #F9C90A;
    position: relative;
}

.vi-title-meta__rating .dio-custom-review-stars .star.half::after,
.dio-custom-review-title-meta-rating .dio-custom-review-stars .star.half::after {
    content: '☆';
    position: absolute;
    left: 0;
    color: #E5E7EB;
    z-index: -1;
}

.vi-title-meta__rating .dio-custom-review-stars .star.empty,
.dio-custom-review-title-meta-rating .dio-custom-review-stars .star.empty {
    color: #E5E7EB;
}

/* WooCommerce star rating compatibility */
.vi-title-meta__rating .star-rating,
.dio-custom-review-title-meta-rating .star-rating {
    font-size: 16px;
    line-height: 1;
    color: #F9C90A;
}

.vi-title-meta__rating .star-rating::before,
.dio-custom-review-title-meta-rating .star-rating::before {
    color: #E5E7EB;
}