/**
 * MT Google Reviews - Frontend Stylesheet
 */

:root {
    --mt-google-blue: #4285F4;
    --mt-google-red: #EA4335;
    --mt-google-yellow: #FBBC05;
    --mt-google-green: #34A853;
    --mt-star-gold: #fbbc04;
    --mt-star-gray: #dadce0;
    --mt-text-main: #202124;
    --mt-text-sub: #5f6368;
    --mt-card-bg: #ffffff;
    --mt-card-border: #eceff1;
    --mt-card-radius: 14px;
    --mt-card-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    --mt-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.mt-google-reviews-wrap {
    font-family: var(--mt-font-sans);
    margin: 30px 0;
    color: var(--mt-text-main);
    box-sizing: border-box;
}

.mt-google-reviews-wrap * {
    box-sizing: border-box;
}

/* ==========================================================
   Header Summary Banner
   ========================================================== */
.mt-reviews-header-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--mt-card-radius);
    padding: 16px 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.mt-header-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.mt-header-brand-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mt-header-rating-group {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mt-google-brand {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: inline-flex;
    line-height: 1;
}

.mt-g-blue {
    color: var(--mt-google-blue);
}

.mt-g-red {
    color: var(--mt-google-red);
}

.mt-g-yellow {
    color: var(--mt-google-yellow);
}

.mt-g-green {
    color: var(--mt-google-green);
}

.mt-badge-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--mt-text-main);
}

.mt-stars-row {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.mt-star-icon {
    display: inline-block;
    vertical-align: middle;
}

.mt-score-text {
    font-size: 15px;
    color: var(--mt-text-main);
    white-space: nowrap;
}

.mt-divider {
    color: #dadce0;
    margin: 0 4px;
}

.mt-count {
    color: var(--mt-text-sub);
}

.mt-header-right {
    display: flex;
    align-items: center;
}

.mt-btn-write-review {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: var(--mt-text-main);
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.08);
    white-space: nowrap;
}

.mt-btn-write-review:hover {
    background: #f1f3f4;
    border-color: #c6c9cc;
    color: #1a73e8;
}

@media (max-width: 640px) {
    .mt-reviews-header-badge {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 18px 16px;
        gap: 14px;
    }

    .mt-header-left {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .mt-header-brand-group {
        justify-content: center;
        gap: 8px;
    }

    .mt-header-rating-group {
        justify-content: center;
        gap: 8px;
    }

    .mt-header-right {
        width: 100%;
        justify-content: center;
    }

    .mt-btn-write-review {
        width: 100%;
        max-width: 280px;
        padding: 11px 16px;
    }
}

/* ==========================================================
   Review Card
   ========================================================== */
.mt-review-card {
    background: var(--mt-card-bg);
    border-radius: var(--mt-card-radius);
    padding: 22px;
    box-shadow: var(--mt-card-shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid transparent;
    position: relative;
}

.mt-review-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.mt-review-card.mt-is-highlighted {
    border-color: #fbbc04;
    background: #fffdf7;
}

.mt-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.mt-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mt-avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.mt-avatar-letter {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}

.mt-author-meta {
    display: flex;
    flex-direction: column;
}

.mt-author-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--mt-text-main);
    line-height: 1.3;
}

.mt-review-date {
    font-size: 13px;
    color: var(--mt-text-sub);
    margin-top: 2px;
}

.mt-google-source-icon {
    flex-shrink: 0;
    margin-left: 8px;
}

.mt-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.mt-verified-badge {
    display: inline-flex;
    align-items: center;
}

.mt-card-content {
    font-size: 14.5px;
    line-height: 1.6;
    color: #3c4043;
    flex-grow: 1;
}

.mt-review-text {
    margin: 0;
    word-break: break-word;
}

.mt-content-collapsible .mt-review-text {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mt-content-collapsible.mt-is-expanded .mt-review-text {
    display: block;
}

.mt-btn-read-more {
    background: none;
    border: none;
    padding: 4px 0;
    margin-top: 6px;
    color: #1a73e8;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

.mt-btn-read-more:hover {
    text-decoration: underline;
}

/* Owner Reply Box */
.mt-card-reply {
    background: #f1f3f4;
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 14px;
    font-size: 13.5px;
    border-left: 3px solid #1a73e8;
}

.mt-reply-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #202124;
    margin-bottom: 6px;
}

.mt-reply-body {
    color: #3c4043;
    line-height: 1.5;
}

/* ==========================================================
   Styles (Themes)
   ========================================================== */
.mt-style-bordered .mt-review-card {
    box-shadow: none;
    border: 1px solid #e0e0e0;
}

.mt-style-bordered .mt-review-card:hover {
    border-color: #bdbdbd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.mt-style-dark .mt-reviews-header-badge,
.mt-style-dark .mt-review-card {
    background: #202124;
    color: #e8eaed;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.mt-style-dark .mt-author-name,
.mt-style-dark .mt-badge-title,
.mt-style-dark .mt-score-text {
    color: #ffffff;
}

.mt-style-dark .mt-card-content,
.mt-style-dark .mt-review-text {
    color: #bdc1c6;
}

.mt-style-dark .mt-btn-write-review {
    background: #303134;
    color: #ffffff;
    border-color: #5f6368;
}

.mt-style-dark .mt-card-reply {
    background: #2d2f31;
    color: #bdc1c6;
}

.mt-style-dark .mt-reply-header {
    color: #ffffff;
}

/* ==========================================================
   Slider Layout
   ========================================================== */
.mt-layout-slider {
    position: relative;
}

.mt-slider-container {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

.mt-slider-track-wrap {
    overflow: hidden;
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
    padding: 16px 16px 36px 16px;
    box-sizing: border-box;
}

.mt-slider-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    gap: 20px;
    margin: 0;
    padding: 0;
}

.mt-slider-slide {
    flex: 0 0 calc((100% - 40px) / 3);
    width: calc((100% - 40px) / 3);
    min-width: 0;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .mt-slider-slide {
        flex: 0 0 calc((100% - 20px) / 2);
        width: calc((100% - 20px) / 2);
    }
}

@media (max-width: 640px) {
    .mt-slider-track-wrap {
        width: calc(100% + 24px);
        margin-left: -12px;
        margin-right: -12px;
        padding: 16px 12px 30px 12px;
    }

    .mt-slider-slide {
        flex: 0 0 100%;
        width: 100%;
    }
}

/* Slider Nav Buttons */
.mt-slider-nav {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 1px solid #dadce0 !important;
    box-shadow: 0 4px 14px rgba(60, 64, 67, 0.22) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 25 !important;
    transition: all 0.2s ease !important;
    color: #3c4043 !important;
    outline: none !important;
    line-height: 1 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.mt-slider-nav svg {
    width: 24px !important;
    height: 24px !important;
    fill: #3c4043 !important;
    color: #3c4043 !important;
    display: block !important;
    pointer-events: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.mt-slider-nav svg path {
    fill: #3c4043 !important;
}

.mt-slider-nav:hover {
    background: #ffffff !important;
    border-color: #bdc1c6 !important;
    box-shadow: 0 6px 18px rgba(60, 64, 67, 0.3) !important;
}

.mt-slider-nav:hover svg,
.mt-slider-nav:hover svg path {
    fill: #1a73e8 !important;
    color: #1a73e8 !important;
}

.mt-nav-prev {
    left: -20px;
}

.mt-nav-next {
    right: -20px;
}

/* ==========================================================
   Grid Layout
   ========================================================== */
.mt-grid-container {
    display: grid !important;
    gap: 24px !important;
    align-items: start !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.mt-grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.mt-grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.mt-grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.mt-grid-item {
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 1024px) {

    .mt-grid-cols-4,
    .mt-grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {

    .mt-grid-cols-4,
    .mt-grid-cols-3,
    .mt-grid-cols-2 {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================
   Reviews Page Dynamic Masonry Layout
   ========================================================== */
.mt-grid-container.mt-is-masonry {
    display: block !important;
    position: relative !important;
    margin-left: -12px !important;
    margin-right: -12px !important;
    width: auto !important;
    gap: 0 !important;
}

.mt-grid-container.mt-is-masonry::after {
    content: '';
    display: table;
    clear: both;
}

.mt-grid-container.mt-is-masonry .mt-grid-item {
    padding: 0 12px 24px 12px !important;
    box-sizing: border-box !important;
    float: left;
    height: auto !important;
}

.mt-grid-container.mt-is-masonry .mt-review-card {
    height: auto !important;
}

.mt-grid-container.mt-grid-cols-2.mt-is-masonry .mt-grid-item {
    width: 50% !important;
}

.mt-grid-container.mt-grid-cols-3.mt-is-masonry .mt-grid-item {
    width: 33.3333% !important;
}

.mt-grid-container.mt-grid-cols-4.mt-is-masonry .mt-grid-item {
    width: 25% !important;
}

@media (max-width: 1024px) {

    .mt-grid-container.mt-grid-cols-4.mt-is-masonry .mt-grid-item,
    .mt-grid-container.mt-grid-cols-3.mt-is-masonry .mt-grid-item {
        width: 50% !important;
    }
}

@media (max-width: 640px) {
    .mt-grid-container.mt-is-masonry {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .mt-grid-container.mt-grid-cols-4.mt-is-masonry .mt-grid-item,
    .mt-grid-container.mt-grid-cols-3.mt-is-masonry .mt-grid-item,
    .mt-grid-container.mt-grid-cols-2.mt-is-masonry .mt-grid-item {
        width: 100% !important;
        padding: 0 0 16px 0 !important;
    }
}

/* ==========================================================
   Masonry Layout
   ========================================================== */
.mt-masonry-container {
    column-count: 3;
    column-gap: 24px;
}

.mt-masonry-item {
    break-inside: avoid;
    margin-bottom: 24px;
}

@media (max-width: 1024px) {
    .mt-masonry-container {
        column-count: 2;
    }
}

@media (max-width: 640px) {
    .mt-masonry-container {
        column-count: 1;
    }
}

/* ==========================================================
   List Layout
   ========================================================== */
.mt-list-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mt-list-item.mt-item-hidden {
    display: none;
}

.mt-list-load-more-wrap {
    text-align: center;
    margin-top: 24px;
}

.mt-btn-load-more {
    background: #f1f3f4;
    border: 1px solid #dadce0;
    border-radius: 24px;
    padding: 10px 28px;
    font-size: 15px;
    font-weight: 600;
    color: var(--mt-text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mt-btn-load-more:hover {
    background: #e8eaed;
    border-color: #c6c9cc;
}

/* ==========================================================
   Sidebar & Compact Layout
   ========================================================== */
.mt-sidebar-compact-card,
.mt-sidebar-full-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 14px;
    padding: 20px;
    max-width: 360px;
    margin: 0 auto;
}

.mt-sidebar-summary-top {
    text-align: center;
    margin-bottom: 16px;
}

.mt-sidebar-rating-title {
    font-size: 18px;
    font-weight: 700;
    color: #202124;
}

.mt-sidebar-based-on {
    font-size: 13px;
    color: #5f6368;
    margin: 4px 0 10px;
}

.mt-sidebar-slider-body {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mt-sidebar-slide {
    display: none;
}

.mt-sidebar-slide.mt-active-slide {
    display: block;
}

.mt-sidebar-quote-text {
    font-size: 13.5px;
    color: #3c4043;
    line-height: 1.5;
    margin: 10px 0;
    font-style: italic;
}

.mt-sidebar-author-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #70757a;
}

.mt-sidebar-controls {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

.mt-sidebar-btn-prev,
.mt-sidebar-btn-next {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f3f4;
    border: 1px solid #dadce0;
    cursor: pointer;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mt-sidebar-footer-score {
    text-align: center;
    font-size: 13px;
    color: #5f6368;
    margin-top: 14px;
}

.mt-sidebar-header-center {
    text-align: center;
    margin-bottom: 18px;
}

.mt-sidebar-company-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.mt-sidebar-subtext {
    font-size: 13px;
    color: #70757a;
    margin: 6px 0 12px;
}

.mt-btn-block {
    display: block;
    width: 100%;
}

/* ==========================================================
   Widget Settings Display Modifiers
   ========================================================== */
.mt-align-left .mt-card-content,
.mt-align-left .mt-author-info {
    text-align: left;
}

.mt-align-center .mt-card-content,
.mt-align-center .mt-card-rating,
.mt-align-center .mt-stars-row {
    text-align: center;
    justify-content: center;
}

.mt-align-center .mt-card-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mt-align-center .mt-google-source-icon {
    margin: 8px 0 0;
}

.mt-align-right .mt-card-content {
    text-align: right;
}

.mt-align-right .mt-card-rating {
    justify-content: flex-end;
}

.mt-align-right .mt-card-header {
    flex-direction: row-reverse;
}

/* Hover Animation */
.mt-hover-enabled .mt-review-card {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.mt-hover-enabled .mt-review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* Inherit Site's Font */
.mt-site-font,
.mt-site-font * {
    font-family: inherit !important;
}

/* Scroll Review Text Mode */
.mt-content-scroll {
    max-height: 120px;
    overflow-y: auto;
    padding-right: 6px;
}

.mt-content-scroll::-webkit-scrollbar {
    width: 4px;
}

.mt-content-scroll::-webkit-scrollbar-thumb {
    background: #dadce0;
    border-radius: 4px;
}

/* ==========================================================
   Speech Bubble Slider Layout
   ========================================================== */
.mt-review-card-bubble {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mt-bubble-box {
    background: #f4f5f7;
    border-radius: 16px;
    padding: 20px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mt-bubble-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.mt-bubble-pointer {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 12px solid #f4f5f7;
    position: absolute;
    bottom: -12px;
    left: 28px;
}

.mt-bubble-author-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding-left: 8px;
}

.mt-bubble-author-row .mt-avatar-img,
.mt-bubble-author-row .mt-avatar-letter {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.mt-bubble-author-row .mt-avatar-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
}

.mt-bubble-author-row .mt-author-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--mt-text-main);
}

.mt-bubble-author-row .mt-review-date {
    font-size: 13px;
    color: var(--mt-text-sub);
}

/* ==========================================================
   Centered Hero Testimonial Slider Layout
   ========================================================== */
.mt-layout-hero-slider .mt-slider-track-wrap {
    max-width: 720px;
    margin: 0 auto;
}

.mt-review-card-hero {
    background: #f4f5f7;
    border-radius: 16px;
    padding: 32px 28px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.mt-hero-avatar-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
}

.mt-hero-avatar-img,
.mt-hero-avatar-letter {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.mt-hero-avatar-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 24px;
}

.mt-hero-g-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #ffffff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.mt-hero-author-meta {
    margin-bottom: 8px;
}

.mt-hero-author-name {
    font-weight: 700;
    font-size: 17px;
    color: var(--mt-text-main);
}

.mt-hero-date {
    font-size: 13px;
    color: var(--mt-text-sub);
    margin-top: 2px;
}

.mt-hero-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 14px;
}

.mt-hero-text-wrap {
    font-size: 15px;
    line-height: 1.6;
    color: var(--mt-text-main);
    max-width: 600px;
    margin: 0 auto;
}

.mt-hero-rating-score-footer {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--mt-text-sub);
    margin-top: 24px;
}

/* ==========================================================
   Card Style Variations
   ========================================================== */

/* 1. Light Background (.mt-style-light, .mt-style-light_bg) */
.mt-style-light .mt-review-card,
.mt-style-light_bg .mt-review-card,
.mt-style-light .mt-bubble-box,
.mt-style-light_bg .mt-bubble-box,
.mt-style-light .mt-review-card-hero,
.mt-style-light_bg .mt-review-card-hero {
    background: #f4f4f4;
    border: none;
    border-radius: 18px;
    box-shadow: none;
}

/* 2. Light Border (.mt-style-bordered, .mt-style-light_border) */
.mt-style-bordered .mt-review-card,
.mt-style-light_border .mt-review-card,
.mt-style-bordered .mt-bubble-box,
.mt-style-light_border .mt-bubble-box,
.mt-style-bordered .mt-review-card-hero,
.mt-style-light_border .mt-review-card-hero {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: none;
}

/* 3. Drop Shadow (.mt-style-drop_shadow) */
.mt-style-drop_shadow .mt-review-card,
.mt-style-drop_shadow .mt-bubble-box,
.mt-style-drop_shadow .mt-review-card-hero {
    background: #ffffff;
    border: none;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* 4. Minimal (.mt-style-minimal) */
.mt-style-minimal .mt-review-card,
.mt-style-minimal .mt-bubble-box,
.mt-style-minimal .mt-review-card-hero {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 16px 12px;
}

/* 5. Soft (.mt-style-soft) */
.mt-style-soft .mt-review-card,
.mt-style-soft .mt-bubble-box,
.mt-style-soft .mt-review-card-hero {
    background: #f0f4f8;
    border: 1px solid #e1e8f0;
    border-radius: 18px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

/* 6. Light Contrast (.mt-style-light_contrast) */
.mt-style-light_contrast .mt-review-card,
.mt-style-light_contrast .mt-bubble-box,
.mt-style-light_contrast .mt-review-card-hero {
    background: #e9ecef;
    border: 1px solid #dee2e6;
    color: #111827;
}

/* 7. Minimal Fill Dottie (.mt-style-minimal_dottie) */
.mt-style-minimal_dottie .mt-review-card,
.mt-style-minimal_dottie .mt-bubble-box,
.mt-style-minimal_dottie .mt-review-card-hero {
    background-color: #ffffff;
    background-image: url('../img/widget-pattern-dottie.svg');
    background-position: calc(100% + 70px) -70px;
    background-size: 270px;
    background-repeat: no-repeat;
    border-radius: 18px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

/* 8. Minimal Fill Wave (.mt-style-minimal_wave) */
.mt-style-minimal_wave .mt-review-card,
.mt-style-minimal_wave .mt-bubble-box,
.mt-style-minimal_wave .mt-review-card-hero {
    background-color: #ffffff;
    background-image: url('../img/widget-pattern-wave.svg');
    background-position: calc(100% + 180px) calc(100% + 120px);
    background-size: 600px;
    background-repeat: no-repeat;
    border-radius: 18px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

/* 9. Luxury Frame (.mt-style-luxury_frame) */
.mt-style-luxury_frame .mt-review-card,
.mt-style-luxury_frame .mt-bubble-box,
.mt-style-luxury_frame .mt-review-card-hero {
    background: #ffffff;
    color: var(--mt-text-main);
    border: 1.5px solid #dcd1af;
    border-radius: 20px;
    box-shadow: 0 4px 18px rgba(220, 209, 175, 0.18);
    position: relative;
    overflow: hidden;
}

.mt-style-luxury_frame .mt-review-card::after,
.mt-style-luxury_frame .mt-bubble-box::after,
.mt-style-luxury_frame .mt-review-card-hero::after {
    content: '“';
    position: absolute;
    bottom: 8px;
    right: 20px;
    font-size: 50px;
    line-height: 1;
    font-family: Georgia, serif;
    color: #c9b986;
    opacity: 0.85;
    pointer-events: none;
}

.mt-style-luxury_frame .mt-review-text,
.mt-style-luxury_frame .mt-hero-text {
    color: #e5e7eb;
}

/* 10. Dark Mode (.mt-style-dark) */
.mt-style-dark .mt-review-card,
.mt-style-dark .mt-bubble-box,
.mt-style-dark .mt-review-card-hero {
    background: #1f2937;
    color: #f9fafb;
    border: 1px solid #374151;
}

.mt-style-dark .mt-author-name,
.mt-style-dark .mt-hero-author-name {
    color: #f3f4f6;
}

.mt-style-dark .mt-review-date,
.mt-style-dark .mt-hero-date {
    color: #9ca3af;
}

.mt-style-dark .mt-review-text,
.mt-style-dark .mt-hero-text {
    color: #e5e7eb;
}

/* ==========================================================
   Full Reviews Page Shortcode Styles ([mt_reviews_page])
   ========================================================== */
.mt-reviews-page-wrap {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.mt-reviews-page-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0 24px 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.mt-reviews-page-filter-bar::-webkit-scrollbar {
    display: none;
}

.mt-reviews-page-filter-bar .mt-filter-btn {
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    outline: none;
    user-select: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.mt-reviews-page-filter-bar .mt-filter-btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #1e293b;
}

.mt-reviews-page-filter-bar .mt-filter-btn.active {
    background: #1a73e8;
    border-color: #1a73e8;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(26, 115, 232, 0.25);
}

.mt-reviews-page-filter-bar .mt-filter-btn .mt-filter-count {
    opacity: 0.85;
    font-size: 12px;
}

.mt-reviews-page-actions {
    text-align: center;
    margin-top: 32px;
    margin-bottom: 20px;
}

.mt-btn-load-more-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #1a73e8;
    color: #ffffff;
    border: none;
    border-radius: 28px;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

.mt-btn-load-more-page:hover {
    background: #1557b0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.4);
}

.mt-btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: mt-spin 0.8s linear infinite;
}

@keyframes mt-spin {
    to {
        transform: rotate(360deg);
    }
}

.mt-reviews-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 36px 16px;
    color: #64748b;
    font-size: 14px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
}

/* Mobile Responsive Optimization */
@media (max-width: 640px) {
    .mt-reviews-header-badge {
        padding: 12px 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        border-radius: 12px;
    }

    .mt-header-left {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }

    .mt-header-right {
        width: 100%;
    }

    .mt-header-right .btn-primary {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 9px 14px;
        font-size: 13px;
        border-radius: 8px;
    }

    .mt-grid-container {
        gap: 12px;
    }

    .mt-review-card {
        padding: 14px;
        border-radius: 12px;
    }

    .mt-card-header {
        gap: 10px;
        margin-bottom: 8px;
    }

    .mt-author-avatar img,
    .mt-author-avatar-placeholder {
        width: 36px !important;
        height: 36px !important;
        font-size: 14px !important;
    }

    .mt-author-name {
        font-size: 13.5px !important;
    }

    .mt-review-date {
        font-size: 11px !important;
    }

    .mt-review-text {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    .mt-btn-load-more-page {
        width: 100%;
        padding: 11px 20px;
        font-size: 13.5px;
    }
}

/* Numeric Pagination & Infinite Scroll Styles */
.mt-reviews-pagination-wrap {
    text-align: center;
    margin-top: 32px;
    margin-bottom: 20px;
}

.mt-numeric-pagination {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 28px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.mt-page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 18px;
    border: 1px solid transparent;
    background: transparent;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mt-page-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.mt-page-btn.active {
    background: #1a73e8;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(26, 115, 232, 0.3);
}

.mt-page-dots {
    color: #94a3b8;
    font-size: 14px;
    padding: 0 4px;
}

.mt-infinite-sentinel-wrap {
    text-align: center;
    padding: 24px 0;
    position: relative;
}

.mt-infinite-sentinel {
    height: 2px;
    width: 100%;
}

/* Attached Review Photos Gallery */
.mt-review-photos {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 12px 0 8px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    align-items: center !important;
}

.mt-photos-center {
    justify-content: center !important;
}

.mt-review-photo-link {
    display: block !important;
    width: 64px !important;
    height: 64px !important;
    max-width: 64px !important;
    max-height: 64px !important;
    min-width: 64px !important;
    min-height: 64px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
    flex: 0 0 64px !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    background-color: #f1f3f4 !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    position: relative !important;
}

.mt-review-photo-link:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
    border-color: #1a73e8 !important;
    z-index: 2 !important;
}

.mt-review-photo-thumb {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border-radius: 7px !important;
    box-sizing: border-box !important;
}

img.mt-review-photo-thumb {
    object-fit: cover !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mt-hero-reply {
    margin-top: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================
   Attached Photos Lightbox Modal
   ========================================================== */
body.mt-lightbox-open {
    overflow: hidden !important;
}

.mt-photo-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.mt-lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

.mt-lightbox-container {
    position: relative;
    z-index: 2;
    max-width: 92vw;
    max-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.mt-lightbox-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 86vh;
}

.mt-lightbox-img {
    max-width: 90vw;
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: block;
}

.mt-lightbox-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: mt-spin 0.8s linear infinite;
    pointer-events: none;
}

.mt-lightbox-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin-top: 12px;
    color: #f1f5f9;
    font-size: 14px;
    font-weight: 500;
}

.mt-lightbox-caption {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.mt-lightbox-counter {
    background: rgba(255, 255, 255, 0.15);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.mt-lightbox-close {
    position: fixed;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    padding: 0;
}

.mt-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.mt-lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    padding: 0;
}

.mt-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.mt-lightbox-prev {
    left: 20px;
}

.mt-lightbox-next {
    right: 20px;
}

@media (max-width: 640px) {
    .mt-lightbox-close {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
        font-size: 22px;
    }

    .mt-lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .mt-lightbox-prev {
        left: 10px;
    }

    .mt-lightbox-next {
        right: 10px;
    }

    .mt-lightbox-footer {
        font-size: 12px;
    }
}