/* Custom WooCommerce Reviews Plugin Styles - Exact Screenshot Match */

/* Global Box Sizing for Better Mobile Handling */
.woo-reviews-container *,
.woo-reviews-container *::before,
.woo-reviews-container *::after {
    box-sizing: border-box;
}

/* Main Container */
.woo-reviews-container {
    max-width: 100%;
    overflow-x: hidden;
}

.woo-reviews-container img {
    max-width: 100%;
    height: auto;
}

/* Testimonials Header */
.testimonials-header {
    text-align: center;
    margin-bottom: 40px;
}

.testimonials-title {
    font-size: 14px;
    font-weight: 600;
    color: #f58e43;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 10px 0;
}

.testimonials-subtitle {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

/* Two Column Layout */
.testimonials-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin: 0 auto;
}

/* Left Column - Review Form */
.testimonials-left-column {
    flex: 1;
    max-width: 450px;
}

.review-form-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
}

.review-form-header {
    background: #f58e43;
    color: white;
    padding: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    border-radius: 12px 12px 0 0;
}

.woo-review-form {
    padding: 30px;
    @media (min-width: 991px){
        padding-bottom: 0px;
    }
}

.woo-review-form .form-group {
    margin-bottom: 25px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
    padding: 0;
}

.col-half {
    flex: 1;
}

.woo-review-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

/* Rating Stars - Left to Right */
.rating-input {
    display: flex;
    gap: 5px;
    margin-top: 10px;
    flex-direction: row;
    align-items: center;
}

.rating-input input[type="radio"] {
    display: none;
}

.rating-input label {
    cursor: pointer;
    font-size: 20px;
    color: #ddd;
    transition: color 0.2s ease;
    margin: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    touch-action: manipulation;
}

.rating-input label:hover {
    color: #f58e43;
}

.rating-input label i.filled {
    color: #f58e43;
}

/* Form Inputs - Exact Match */
.woo-review-form input[type="text"],
.woo-review-form input[type="email"] {
    width: 100%;
    padding: 8px 0;
    border: none;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
    font-family: "Poppins", sans-serif;
    background: transparent;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-shadow: none;
    margin: 0;
}

.woo-review-form input[type="text"]:focus,
.woo-review-form input[type="email"]:focus {
    outline: none;
    border-bottom-color: #f58e43;
    box-shadow: none;
}

.woo-review-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: "Poppins", sans-serif;
    background: white;
    transition: border-color 0.3s ease;
    resize: vertical;
    min-height: 100px;
    margin-top: 8px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-shadow: none;
}

.woo-review-form textarea:focus {
    outline: none;
    border-color: #f58e43;
    box-shadow: none;
}

/* Submit Button - Exact Match */
.submit-review-btn {
    background: #f58e43;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.submit-review-btn:hover {
    background: #e67e22;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(245, 142, 67, 0.3);
}

.submit-review-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Review Logos - Using Actual Images */
.review-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 0 30px 30px;
}

.google-logo {
    display: flex;
    align-items: center;
}

.google-reviews-img {
    height: 40px;
    width: auto;
    max-width: 120px;
}

.trustpilot-logo {
    display: flex;
    align-items: center;
}

.trustpilot-img {
    height: 30px;
    width: auto;
    max-width: 100px;
}

/* Right Column - Testimonials Display */
.testimonials-right-column {
    flex: 1;
}

.testimonials-display {
    padding: 30px;
    position: relative;
    max-height: 600px;
    overflow-y: auto;
}

/* Custom Scrollbar - Light Red */
.testimonials-display::-webkit-scrollbar {
    width: 6px;
}

.testimonials-display::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.testimonials-display::-webkit-scrollbar-thumb {
    background: #f58e43;
    border-radius: 3px;
}

.testimonials-display::-webkit-scrollbar-thumb:hover {
    background: #e67e22;
}

/* Testimonial Items - With Proper Spacing */
.testimonial-item {
    margin-bottom: 40px;
    position: relative;
    padding-left: 50px;
    padding: 20px;
    background: #fafafa;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

}

.testimonial-item:last-child {
    margin-bottom: 0;
}

.testimonial-quote {
    position: absolute;
    top: -10px;
    left: 0;
    font-size: 80px;
    color: #f58e43;
    font-family: serif;
    line-height: 1;
    opacity: 0.8;
    font-weight: bold;
    transform: rotate(-5deg);
}

.testimonial-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: flex-end;
}

.star-filled {
    color: #f58e43;
    font-size: 18px;
}

.rating-number {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.testimonial-content {
    line-height: 1.6;
    color: #555;
    font-size: 14px;
    margin-bottom: 20px;
    margin-left: 10px;
}

.testimonial-content p {
    margin: 0 0 15px 0;
}

.testimonial-content p:last-child {
    margin-bottom: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    margin-left: 10px;
}

.google-logo-small {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.google-logo-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.author-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.review-date {
    display: none;
}

/* Review Replies Styling */
.review-replies {
    margin-top: 20px;
    padding-left: 20px;
    border-left: 3px solid #f58e43;
    background: #f9f9f9;
    border-radius: 0 8px 8px 0;
    padding: 15px;
}

.review-reply {
    margin-bottom: 15px;
}

.review-reply:last-child {
    margin-bottom: 0;
}

.reply-content {
    margin-bottom: 10px;
}

.reply-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.reply-content strong {
    color: #f58e43;
    font-weight: 600;
}

.reply-author {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.reply-date {
    font-size: 12px;
    color: #999;
    font-style: italic;
}

/* No Testimonials */
.no-testimonials {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

/* Message Styling */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid #28a745;
    font-weight: 500;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid #dc3545;
    font-weight: 500;
}

/* Desktop styles - keep smaller font sizes on larger screens */
@media (min-width: 769px) {
    .woo-review-form input[type="text"],
    .woo-review-form input[type="email"],
    .woo-review-form textarea {
        font-size: 14px;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .testimonials-layout {
        flex-direction: column;
        gap: 30px;
    }
    
    .testimonials-left-column,
    .testimonials-right-column {
        flex: 1;
        max-width: 100%;
        width: 100%;
    }
    
    .testimonials-display {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .woo-reviews-container {
        padding: 20px 15px;
    }
    
    .testimonials-header {
        margin-bottom: 30px;
    }
    
    .testimonials-title {
        font-size: 12px;
        letter-spacing: 1.5px;
    }
    
    .testimonials-subtitle {
        font-size: 22px;
    }
    
    .testimonials-layout {
        gap: 25px;
    }
    
    .woo-review-form {
        padding: 20px;
    }
    
    .testimonials-display {
        padding: 20px;
        max-height: 400px;
    }
    
    .testimonial-item {
        margin-bottom: 30px;
        padding: 15px;
        padding-left: 15px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 25px;
    }
    
    .review-logos {
        padding: 0 20px 20px;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .google-reviews-img {
        height: 35px;
        max-width: 100%;
    }
    
    .trustpilot-img {
        height: 28px;
        max-width: 100%;
    }
    
    .testimonial-quote {
        font-size: 60px;
        top: -5px;
        left: -5px;
        transform: rotate(-3deg);
    }
    
    .rating-input label {
        font-size: 22px;
        width: 22px;
        height: 22px;
    }
    
    .rating-input {
        gap: 8px;
    }
    
    .testimonial-content {
        font-size: 13px;
        margin-left: 0;
    }
    
    .testimonial-author {
        margin-left: 0;
    }
    
    .review-replies {
        margin-top: 15px;
        padding-left: 15px;
        padding: 12px;
    }
    
    .reply-content p {
        font-size: 13px;
    }
    
    .reply-date {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .woo-reviews-container {
        padding: 15px 10px;
    }
    
    .testimonials-header {
        margin-bottom: 25px;
    }
    
    .testimonials-title {
        font-size: 11px;
        letter-spacing: 1px;
        margin-bottom: 8px;
    }
    
    .testimonials-subtitle {
        font-size: 18px;
    }
    
    .testimonials-layout {
        gap: 20px;
    }
    
    .woo-review-form {
        padding: 15px;
    }
    
    .woo-review-form .form-group {
        margin-bottom: 20px;
    }
    
    .testimonials-display {
        padding: 15px;
        max-height: 350px;
    }
    
    .testimonial-item {
        margin-bottom: 25px;
        padding: 12px;
        padding-left: 12px;
    }
    
    .review-form-header {
        padding: 15px;
        font-size: 14px;
    }
    
    .testimonial-quote {
        font-size: 45px;
        top: -3px;
        left: -3px;
        transform: rotate(-2deg);
    }
    
    .rating-input {
        gap: 5px;
        flex-wrap: nowrap;
    }
    
    .rating-input label {
        font-size: 20px;
        width: 20px;
        height: 20px;
    }
    
    .submit-review-btn {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .google-reviews-img {
        height: 30px;
    }
    
    .trustpilot-img {
        height: 24px;
    }
    
    .review-logos {
        padding: 0 15px 15px;
        gap: 12px;
    }
    
    .testimonial-content {
        font-size: 13px;
    }
    
    .testimonial-author {
        margin-top: 15px;
    }
    
    .author-name {
        font-size: 13px;
    }
    
    .star-filled {
        font-size: 16px;
    }
    
    .rating-number {
        font-size: 14px;
    }
    
    .woo-review-form label {
        font-size: 13px;
    }
    
    .woo-review-form input[type="text"],
    .woo-review-form input[type="email"] {
        font-size: 16px;
        padding: 10px 0;
    }
    
    .woo-review-form textarea {
        font-size: 16px;
        min-height: 80px;
        padding: 10px;
    }
    
    .review-replies {
        margin-top: 12px;
        padding-left: 12px;
        padding: 10px;
    }
    
    .reply-content p {
        font-size: 12px;
    }
    
    .reply-date {
        font-size: 10px;
    }
}

@media (max-width: 360px) {
    .woo-reviews-container {
        padding: 10px 8px;
    }
    
    .testimonials-subtitle {
        font-size: 16px;
    }
    
    .woo-review-form {
        padding: 12px;
    }
    
    .testimonials-display {
        padding: 12px;
    }
    
    .testimonial-item {
        padding: 10px;
    }
    
    .testimonial-quote {
        font-size: 40px;
    }
    
    .rating-input label {
        font-size: 18px;
        width: 18px;
        height: 18px;
    }
    
    .submit-review-btn {
        padding: 10px 16px;
        font-size: 12px;
    }
}

/* Legacy support for old layout classes (hidden by default) */
.woo-reviews-display,
.reviews-list,
.reviews-grid,
.reviews-slider,
.review-item,
.review-grid-item,
.review-slide,
.woo-review-form-container {
    display: none;
}

/* Show new layout by default */
.testimonials-header,
.testimonials-layout,
.testimonials-left-column,
.testimonials-right-column {
    display: block;
}

.testimonials-layout {
    display: flex;
}


