/* Testimonial Popup Styles */
.ti-review-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.ti-review-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.ti-review-popup-content {
    position: relative;
    background-color: #ffffff;
    border-radius: 8px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.ti-review-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f8f8f8;
    border-radius: 8px 8px 0 0;
}

.ti-review-popup-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.ti-review-popup-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.ti-review-popup-close:hover {
    color: #000;
}

.ti-review-popup-body {
    padding: 25px;
}

.ti-review-popup-author {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.ti-review-popup-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    flex-shrink: 0;
}

.ti-review-popup-author-info {
    flex: 1;
}

.ti-review-popup-author-info > div {
    display: block;
}

.ti-review-popup-author-info > .ti-review-popup-company,
.ti-review-popup-author-info > .ti-review-popup-review-field,
.ti-review-popup-author-info > .ti-review-popup-time-field {
    display: inline;
}

.ti-review-popup-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.ti-review-popup-company {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    display: inline;
}

.ti-review-popup-company a {
    color: #0066cc;
    text-decoration: none;
}

.ti-review-popup-company a:hover {
    text-decoration: underline;
}

.ti-review-popup-review-field,
.ti-review-popup-time-field {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    display: inline;
}

.ti-review-popup-company:not(:empty) + .ti-review-popup-review-field:not(:empty)::before,
.ti-review-popup-review-field:not(:empty) + .ti-review-popup-time-field:not(:empty)::before {
    content: ', ';
    margin-left: 0;
    margin-right: 5px;
}

.ti-review-popup-rating {
    font-size: 18px;
    line-height: 1;
}

.ti-review-popup-rating .ti-star-full {
    color: #ffa500;
}

.ti-review-popup-rating .ti-star-empty {
    color: #ddd;
}

.ti-review-popup-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.ti-review-popup-meta {
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    font-size: 14px;
    color: #666;
}

.ti-review-popup-date {
    margin-bottom: 8px;
}

.ti-review-popup-date strong {
    color: #333;
    margin-right: 5px;
}

/* Prevent body scroll when popup is open */
body.ti-popup-open {
    overflow: hidden;
}

/* Responsive styles */
@media (max-width: 768px) {
    .ti-review-popup {
        padding: 10px;
    }
    
    .ti-review-popup-content {
        max-width: 100%;
        max-height: 95vh;
    }
    
    .ti-review-popup-header {
        padding: 15px 20px;
    }
    
    .ti-review-popup-title {
        font-size: 20px;
    }
    
    .ti-review-popup-body {
        padding: 20px;
    }
    
    .ti-review-popup-author {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .ti-review-popup-photo {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

