/* =====================================================
   Agency Connector – Google Reviews Widget Styles
   ===================================================== */

/* ===== Outer Wrapper ===== */
.agency-google-reviews-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ===== Summary Bar ===== */
.agency-google-reviews__summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    flex-wrap: wrap;
    background: #f9f9f9;
    color: #333;
}

.agency-google-reviews__summary-label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.agency-google-reviews__summary-stars {
    font-size: 1.1em;
    line-height: 1;
}

.agency-google-reviews__summary-text {
    font-size: 0.9em;
    opacity: 0.85;
}

/* ===== Carousel Container ===== */
.agency-google-reviews {
    --carousel-slides: 2;
    /*
     * --shadow-padding (set by "Schatten-Puffer" Elementor control, default 8px):
     *
     * overflow:hidden clips at the PADDING BOX edge — so padding here creates a
     * breathing zone so that card box-shadows are not clipped at the carousel edges.
     * The horizontal negative margin compensates so the widget doesn't push
     * neighbouring content sideways.
     */
    --shadow-padding: 8px;
    position: relative;
    overflow: hidden;
    padding: var(--shadow-padding);
    margin: 0 calc(-1 * var(--shadow-padding));
}

.agency-google-reviews__track {
    display: flex;
    align-items: stretch;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.agency-google-reviews__item {
    flex: 0 0 calc(100% / var(--carousel-slides));
    display: flex;
    /* Horizontal padding set via carousel_gap Elementor control */
    box-sizing: border-box;
}

/* ===== Review Card ===== */
.agency-google-reviews__card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-sizing: border-box;
}

/* ===== Card Footer: Avatar + Reviewer Info + Google Icon ===== */
.agency-google-reviews__header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.agency-google-reviews__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.agency-google-reviews__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.agency-google-reviews__avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #e0e0e0;
    color: #555;
    font-weight: 600;
    font-size: 1em;
}

.agency-google-reviews__reviewer-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.agency-google-reviews__reviewer-name {
    font-weight: 600;
    font-size: 0.95em;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agency-google-reviews__reviewer-name a {
    text-decoration: none;
    color: inherit;
}

.agency-google-reviews__reviewer-name a:hover {
    text-decoration: underline;
}

.agency-google-reviews__date {
    font-size: 0.8em;
    color: #888;
}

.agency-google-reviews__google-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.agency-google-reviews__google-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* ===== Star Rating ===== */
.agency-google-reviews__stars {
    display: flex;
    gap: 2px;
    font-size: 1.1em;
    line-height: 1;
}

.agency-google-reviews__star--filled {
    color: #F4B400;
}

.agency-google-reviews__star--empty {
    color: #ddd;
}

/* ===== Review Text + Read More ===== */
.agency-google-reviews__text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.agency-google-reviews__text {
    font-size: 0.9em;
    line-height: 1.6;
    margin: 0;
}

.agency-google-reviews__read-more {
    display: inline-block;
    width: auto;
    align-self: flex-start; /* default left; overridden by Elementor align control */
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    color: #1a73e8;
    outline: none;
    box-shadow: none;
}

/* ===== Owner Reply ===== */
.agency-google-reviews__reply {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.85em;
}

.agency-google-reviews__reply-label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.9em;
    color: #555;
}

.agency-google-reviews__reply-text {
    margin: 0;
    line-height: 1.5;
    color: #444;
}

/* ===== Arrow Buttons ===== */
.agency-google-reviews__prev,
.agency-google-reviews__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #333;
    user-select: none;
    outline: none;
}

/* Icon sizing inside arrow buttons */
.agency-google-reviews__prev i,
.agency-google-reviews__next i {
    font-size: 18px;
    line-height: 1;
}

.agency-google-reviews__prev svg,
.agency-google-reviews__next svg {
    width: 18px;
    height: 18px;
}

.agency-google-reviews__prev {
    left: calc(var(--shadow-padding) + 10px);
}

.agency-google-reviews__next {
    right: calc(var(--shadow-padding) + 10px);
}

.agency-google-reviews__prev:hover,
.agency-google-reviews__next:hover {
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.agency-google-reviews__prev:disabled,
.agency-google-reviews__next:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

/* ===== Dot Navigation ===== */
.agency-google-reviews__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 4px 0;
}

.agency-google-reviews__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
    outline: none;
}

.agency-google-reviews__dot:focus-visible {
    outline: 2px solid #333;
    outline-offset: 2px;
}

.agency-google-reviews__dot.is-active {
    background: #333;
    transform: scale(1.4);
}

/* ===== Summary position: left / right ===== */
.agency-google-reviews-wrapper--summary-left,
.agency-google-reviews-wrapper--summary-right {
    flex-direction: row;
    align-items: flex-start;
}

.agency-google-reviews-wrapper--summary-left .agency-google-reviews__summary,
.agency-google-reviews-wrapper--summary-right .agency-google-reviews__summary {
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
}

.agency-google-reviews-wrapper--summary-left .agency-google-reviews,
.agency-google-reviews-wrapper--summary-right .agency-google-reviews {
    flex: 1;
    min-width: 0;
}

/* ===== Summary link button modifier ===== */
.agency-google-reviews__summary-link--button {
    display: inline-block;
    background: #4285f4;
    color: #fff;
    border-radius: 6px;
    padding: 8px 16px;
    text-decoration: none;
    line-height: 1.4;
}

.agency-google-reviews__summary-link--button:hover {
    opacity: 0.9;
    text-decoration: none;
}

/* ===== Nav container (replaces .dots) ===== */
.agency-google-reviews__nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 4px 0;
}

/* ===== Lines nav ===== */
.agency-google-reviews__line {
    width: 24px;
    height: 4px;
    border-radius: 2px;
    border: none;
    background: #ccc;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease;
    outline: none;
}

.agency-google-reviews__line.is-active {
    background: #333;
}

.agency-google-reviews__line:focus-visible {
    outline: 2px solid #333;
    outline-offset: 2px;
}

/* ===== Progress bar nav ===== */
.agency-google-reviews__nav[data-nav-type="progress"] {
    display: block;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #ccc;
    overflow: hidden;
    padding: 0;
    margin-top: 12px;
}

.agency-google-reviews__progress-fill {
    height: 100%;
    width: 0%;
    background: #333;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* ===== Fraction nav ===== */
.agency-google-reviews__nav[data-nav-type="fraction"] {
    padding: 6px 0 0;
}

.agency-google-reviews__nav-numbers {
    font-size: 0.85em;
    color: #666;
    text-align: center;
    width: 100%;
}
