/* ==========================================================================
   WP GOOGLE REVIEWS SLIDER - FRONTEND STYLES
   ========================================================================== */

/* Container positioning for overlay side arrows */
.grev-slider-wrapper {
    position: relative;
    overflow: hidden;
    padding: 25px 45px; /* Added left/right padding to make room for side arrows */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}
/* Header Trust Summary Bar */
.grev-header-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.grev-summary-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.grev-google-badge {
    background: #4285f4;
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.grev-summary-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.grev-summary-rating strong {
    font-size: 18px;
    color: #0f172a;
}

.grev-summary-rating .grev-stars {
    color: #f59e0b;
    font-size: 16px;
}

.grev-count {
    color: #64748b;
    font-size: 13px;
}

/* Write a Review Button */
.grev-write-btn {
    display: inline-block;
    background: #1e293b;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease;
}

.grev-write-btn:hover {
    background: #4285f4;
    transform: translateY(-1px);
}

/* Sliding Track Container */
.grev-slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
    user-select: none;
    -webkit-user-select: none;
}

/* Base Card Styling - Mobile First (< 640px: 1 Card Visible) */
.grev-card {
    flex: 0 0 100%;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Individual Card Hover Zoom Effect */
.grev-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
    z-index: 5;
}

.grev-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.grev-avatar {
    border-radius: 50%;
    object-fit: cover;
    background-color: #f1f5f9;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
}

.grev-author-info strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.2;
}

.grev-stars {
    color: #f59e0b;
    font-size: 15px;
    margin-top: 3px;
    letter-spacing: 1px;
}

.grev-card-body {
    flex-grow: 1;
}

.grev-card-body p {
    font-size: 14px;
    color: #475569;
    line-height: 1.55;
    margin: 0;
    word-break: break-word;
}

.grev-card-footer {
    margin-top: 16px;
    font-size: 12px;
    color: #94a3b8;
}

.grev-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
}

/* Side-positioned Side Arrow Navigation Buttons */
.grev-prev, 
.grev-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.25s ease-in-out;
}
/* Left Arrow Position */
.grev-prev {
    left: 5px;
}

/* Right Arrow Position */
.grev-next {
    right: 5px;
}
/* Hover State - Clean luxury fill matching site theme */
.grev-prev:hover, 
.grev-next:hover {
    background: #1e293b;
    color: #ffffff;
    border-color: #1e293b;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
    transform: translateY(-50%) scale(1.08);
}

/* Active Click Effect */
.grev-prev:active, 
.grev-next:active {
    transform: translateY(-50%) scale(0.95);
}
/* Responsive adjustment for small mobile screens */
@media (max-width: 639px) {
    .grev-slider-wrapper {
        padding: 20px 35px;
    }
    .grev-prev, .grev-next {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }
    .grev-prev { left: 2px; }
    .grev-next { right: 2px; }
}

.grev-error {
    color: #ef4444;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 0;
}

@media (min-width: 1024px) {
    .grev-card {
        flex: 0 0 calc(33.333% - 13.33px);
    }
}

/* Mobile Summary Layout Adjustment */
@media (max-width: 639px) {
    .grev-header-summary {
        flex-direction: column;
        align-items: flex-start;
    }
    .grev-summary-right {
        width: 100%;
    }
    .grev-write-btn {
        display: block;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }
}