/* Clean Light Theme for Google Reviews */
.tw-google-reviews-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    text-align: center; /* Center the summary block */
    width: 100%;
}
.tw-google-reviews-wrapper > .tw-layout-grid,
.tw-google-reviews-wrapper > .tw-reviews-swiper {
    text-align: left; /* Reset alignment for cards */
}
.tw-google-reviews-container {
    padding: 20px 0;
}

/* Grid Layout */
.tw-layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* Slider Overrides */
.tw-reviews-swiper {
    padding-bottom: 50px !important; /* Space for pagination */
}
.tw-reviews-swiper .swiper-slide {
    height: auto; /* Allow cards to stretch */
}

/* Common Card Styling */
.tw-review-card {
    background: #f4f4f4;
    border: 1px solid #eaeaea;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.tw-review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    border-color: #ddd;
}

.tw-review-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    position: relative;
}

.tw-review-avatar {
    border-radius: 50%;
    object-fit: cover;
    margin-right: 16px;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tw-review-meta {
    flex-grow: 1;
}

.tw-review-author {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.tw-review-author a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tw-review-author a:hover {
    color: #fbbf24;
}

.tw-review-date {
    font-size: 0.85rem;
    color: #777;
}

.tw-review-google-icon {
    position: absolute;
    top: 0;
    right: 0;
}

.tw-review-stars {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.tw-star-filled {
    color: #fbbf24; /* Golden yellow */
}

.tw-star-empty {
    color: #e2e8f0;
}

.tw-review-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    overflow-wrap: break-word;
    flex-grow: 1;
}

/* Slider 2 (Center Content) Specifics */
.tw-layout-slider2 .tw-center {
    text-align: center;
    margin-bottom: 16px;
}
.tw-layout-slider2 .tw-center-header {
    justify-content: center;
    margin-top: auto; /* Push to bottom */
    margin-bottom: 0;
}
.tw-layout-slider2 .tw-center-header .tw-review-avatar {
    margin-right: 12px;
}
.tw-layout-slider2 .tw-center-header .tw-review-meta {
    flex-grow: 0;
    text-align: left;
}
.tw-layout-slider2 .tw-icon-bottom-right {
    position: absolute;
    bottom: 24px;
    right: 24px;
    top: auto;
}
.tw-layout-slider2 .tw-review-stars {
    margin-bottom: 20px;
}

/* Custom Swiper Controls */
.tw-swiper-pagination .swiper-pagination-bullet {
    background: #94a3b8;
    opacity: 0.5;
}
.tw-swiper-pagination .swiper-pagination-bullet-active {
    background: #fbbf24;
    opacity: 1;
}

.tw-swiper-prev, .tw-swiper-next {
    color: #333 !important;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 40px !important;
    height: 40px !important;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.tw-swiper-prev:after, .tw-swiper-next:after {
    font-size: 16px !important;
    font-weight: bold;
}
.tw-swiper-prev:hover, .tw-swiper-next:hover {
    color: #fbbf24 !important;
    border-color: #ccc;
    background: #fff;
}

/* Summary Header */
.tw-summary-header {
    text-align: center;
    margin-bottom: 24px;
    padding: 10px 0;
    display: inline-block;
}
.tw-summary-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 2px;
    line-height: 1.2;
}
.tw-summary-stars {
    font-size: 2rem;
    margin-bottom: 0px;
    letter-spacing: 2px;
    line-height: 1.2;
}
.tw-summary-text {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 4px;
    font-weight: 500;
    line-height: 1.2;
}
.tw-summary-logo img {
    height: 26px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.tw-write-review-btn {
    display: inline-block;
    background-color: #1a73e8;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    margin-top: 10px;
    transition: background-color 0.2s;
}
.tw-write-review-btn:hover {
    background-color: #1557b0;
    color: #fff;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .tw-layout-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   THEMES
   ========================================================== */

/* Dark Theme */
.tw-theme-dark .tw-review-card {
    background: #1a1a1a;
    border-color: #333;
    color: #e5e5e5;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.3);
}
.tw-theme-dark .tw-review-card:hover {
    border-color: #555;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.4);
}
.tw-theme-dark .tw-review-author a {
    color: #fff;
}
.tw-theme-dark .tw-review-date {
    color: #999;
}
.tw-theme-dark .tw-summary-rating-number {
    color: #fff;
}
.tw-theme-dark .tw-review-avatar {
    border-color: #333;
}
.tw-theme-dark .tw-read-more-btn {
    color: #93c5fd;
}
.tw-theme-dark .tw-read-more-btn:hover {
    color: #bfdbfe;
}
.tw-theme-dark .tw-summary-desc {
    color: #ccc;
}

/* Transparent Theme */
.tw-theme-transparent .tw-review-card {
    background: transparent;
    border: 1px solid rgba(128, 128, 128, 0.25);
    box-shadow: none;
    color: inherit;
}
.tw-theme-transparent .tw-review-card:hover {
    border-color: rgba(128, 128, 128, 0.5);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.tw-theme-transparent .tw-review-author a {
    color: inherit;
}
.tw-theme-transparent .tw-summary-rating-number {
    color: inherit;
}
.tw-theme-transparent .tw-review-avatar {
    border-color: transparent;
}

/* ==========================================================
   FLOATING BADGE
   ========================================================== */
.tw-google-reviews-floating-badge {
    position: fixed;
    bottom: 20px;
    z-index: 99999;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    transition: transform 0.3s ease;
}
.tw-google-reviews-floating-badge:hover {
    transform: translateY(-5px);
}
.tw-google-reviews-floating-badge.tw-badge-bottom-right {
    right: 20px;
}
.tw-google-reviews-floating-badge.tw-badge-bottom-left {
    left: 20px;
}

.tw-badge-content {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 10px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid #eaeaea;
}

.tw-badge-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    margin-right: 12px;
}

.tw-badge-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.tw-badge-text strong {
    font-size: 14px;
    color: #333;
    line-height: 1.2;
}

.tw-badge-text span {
    font-size: 11px;
    color: #777;
}

/* Floating Badge Dark Theme Override */
.tw-google-reviews-floating-badge.tw-theme-dark .tw-badge-content {
    background: #1a1a1a;
    border-color: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.tw-google-reviews-floating-badge.tw-theme-dark .tw-badge-text strong {
    color: #fff;
}
.tw-google-reviews-floating-badge.tw-theme-dark .tw-badge-text span {
    color: #999;
}
