/* Google Review Widget */
.daxrm-review-widget {
    position: fixed;
    bottom: 20px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.daxrm-review-widget.left {
    left: 20px;
}

.daxrm-review-widget.right {
    right: 20px;
}

/* Widget Trigger — uses shared .daxrm-google-badge layout from shortcode.css */
.daxrm-widget-trigger {
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.daxrm-widget-trigger:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

/* Widget Popup (Expanded State) */
.daxrm-widget-popup {
    position: absolute;
    bottom: 102px;
    width: 400px;
    max-width: 90vw;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    overflow: hidden;
}

.daxrm-review-widget.left .daxrm-widget-popup {
    left: 0;
}

.daxrm-review-widget.right .daxrm-widget-popup {
    right: 0;
}

/* Popup Header */
.daxrm-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e8eaed;
}

.daxrm-popup-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #202124;
}

.daxrm-popup-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #5f6368;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.daxrm-popup-close:hover {
    background: #f1f3f4;
}

/* Popup Summary */
.daxrm-popup-summary {
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
}

.daxrm-big-rating {
    font-size: 48px;
    font-weight: 600;
    color: #1a73e8;
    line-height: 1;
}

.daxrm-stars-large {
    font-size: 24px;
    margin: 8px 0;
}

.daxrm-review-count {
    font-size: 14px;
    color: #5f6368;
}

/* Reviews List */
.daxrm-popup-reviews {
    max-height: 400px;
    overflow-y: auto;
    padding: 0;
}

.daxrm-review-item {
    padding: 16px 20px;
    border-bottom: 1px solid #e8eaed;
}

.daxrm-review-item:last-child {
    border-bottom: none;
}

.daxrm-review-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.daxrm-reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1a73e8;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    flex-shrink: 0;
    overflow: hidden;
}

.daxrm-reviewer-avatar img.daxrm-avatar-img,
.daxrm-reviewer-avatar .daxrm-avatar-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50%;
}

/* onerror fallback — show initial letter when Google photo fails */
.daxrm-reviewer-avatar.daxrm-avatar-fallback::after {
    content: attr(data-initial);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.daxrm-reviewer-info {
    flex: 1;
}

.daxrm-reviewer-name {
    font-size: 14px;
    font-weight: 600;
    color: #202124;
    margin-bottom: 4px;
}

.daxrm-review-stars {
    font-size: 14px;
}

.daxrm-review-time {
    font-size: 12px;
    color: #70757a;
}

.daxrm-review-comment {
    font-size: 14px;
    color: #3c4043;
    line-height: 1.6;
    margin-top: 8px;
}
/* Owner Response */
.daxrm-owner-response {
    margin-top: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-left: 3px solid #1a73e8;
    border-radius: 4px;
}

.daxrm-response-label {
    font-size: 12px;
    font-weight: 600;
    color: #5f6368;
    margin-bottom: 6px;
}

.daxrm-response-text {
    font-size: 13px;
    color: #3c4043;
    line-height: 1.5;
}
.daxrm-no-reviews {
    padding: 40px 20px;
    text-align: center;
    color: #5f6368;
    font-size: 14px;
}

/* Show More Button */
.daxrm-show-more-container {
    padding: 16px 20px;
    text-align: center;
    border-bottom: 1px solid #e8eaed;
}

.daxrm-show-more-btn {
    background: #fff;
    border: 1px solid #dadce0;
    color: #1a73e8;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.daxrm-show-more-btn:hover {
    background: #f8f9fa;
    border-color: #1a73e8;
    color: #000;
}

.daxrm-show-more-btn.hidden {
    display: none;
}

/* Popup Footer */
.daxrm-popup-footer {
    padding: 16px 20px;
    border-top: 1px solid #e8eaed;
    background: #f8f9fa;
}

.daxrm-view-all-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #1a73e8;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.2s;
}

.daxrm-view-all-btn:hover {
    background: #1765cc;
    color: #fff;
}

/* Responsive */
@media (max-width: 480px) {
    .daxrm-review-widget {
        left: 10px !important;
        right: 10px !important;
        bottom: 10px;
    }
    
    .daxrm-widget-popup {
        width: calc(100vw - 20px);
        bottom: 60px;
    }
    
}

/* Read More / Read Less */
.daxrm-read-more-btn {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #2271b1;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1.4;
}
.daxrm-read-more-btn:hover {
    color: #135e96;
    text-decoration: underline;
}
.daxrm-reviews-slider-container .swiper-wrapper {
    padding: 10px;
    margin: 0px -10px;
}