/*
 * Uplyft Reviews — Frontend Styles
 * Powered by uplyftio.com — do not remove
 */

/* ============================================================
   WRAPPER
   ============================================================ */
.uplyft-reviews-wrapper {
    font-family: inherit;
    box-sizing: border-box;
}
.uplyft-reviews-wrapper *,
.uplyft-reviews-wrapper *::before,
.uplyft-reviews-wrapper *::after {
    box-sizing: border-box;
}

/* ============================================================
   GRID LAYOUT
   ============================================================ */
.uplyft-reviews-grid {
    display: grid;
    gap: 20px;
    width: 100%;
}
.uplyft-layout-grid.uplyft-cols-1 { grid-template-columns: 1fr; }
.uplyft-layout-grid.uplyft-cols-2 { grid-template-columns: repeat(2, 1fr); }
.uplyft-layout-grid.uplyft-cols-3 { grid-template-columns: repeat(3, 1fr); }
.uplyft-layout-grid.uplyft-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   SLIDER / CAROUSEL LAYOUT
   The viewport clips; the track (.uplyft-reviews-grid) moves.
   ============================================================ */
.uplyft-viewport {
    overflow: hidden;
    width: 100%;
    padding: 6px 0 10px;           /* room for hover lift + shadow */
}
.uplyft-reviews-grid.uplyft-layout-slider,
.uplyft-reviews-grid.uplyft-layout-carousel {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    will-change: transform;
}
.uplyft-layout-slider > .uplyft-review-card,
.uplyft-layout-carousel > .uplyft-review-card {
    flex: 0 0 100%;                /* JS sets exact width; this is the no-JS fallback */
    min-width: 0;
}
/* Before JS runs, show only as many as fit instead of one long line */
.uplyft-reviews-wrapper:not(.uplyft-ready) .uplyft-layout-slider > .uplyft-review-card,
.uplyft-reviews-wrapper:not(.uplyft-ready) .uplyft-layout-carousel > .uplyft-review-card {
    flex-basis: calc((100% - 40px) / 3);
}
.uplyft-review-card { min-width: 0; overflow-wrap: anywhere; }
.uplyft-review-card.uplyft-hidden { display: none !important; }

/* ============================================================
   REVIEW CARD
   ============================================================ */
.uplyft-review-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Stars */
.uplyft-stars {
    font-size: 18px;
    line-height: 1;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.uplyft-star.filled { color: #f0a500; }
.uplyft-star.empty  { color: #cbd5e0; }

/* Name */
.uplyft-reviewer-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: inherit;
    margin: 0;
}

/* Designation */
.uplyft-reviewer-desig {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* Meta (location + date) */
.uplyft-review-meta {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}
.uplyft-meta-sep { color: #cbd5e0; }

/* Divider */
.uplyft-review-divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 6px 0;
}

/* Review body */
.uplyft-review-body {
    font-size: 14px;
    line-height: 1.65;
    color: #374151;
    margin: 0;
    flex: 1;
}

/* No reviews */
.uplyft-no-reviews {
    text-align: center;
    color: #94a3b8;
    padding: 40px 0;
    font-size: 14px;
}

/* ============================================================
   CARD STYLE — TESTIMONIAL WITH PHOTO
   ============================================================ */
.uplyft-style-photo .uplyft-review-card {
    border-radius: 18px;
    padding: 22px 24px;
    gap: 16px;
    box-shadow: 0 6px 24px rgba(27, 43, 75, 0.08);
    justify-content: space-between;
}
.uplyft-quote-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.uplyft-quote-icon {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 56px;
    line-height: 0.8;
    font-weight: 700;
    color: #e8692c;
    flex: 0 0 auto;
}
.uplyft-card-photo .uplyft-review-body {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.55;
    color: #1b2b4b;
}
.uplyft-card-footer {
    display: flex;
    align-items: center;
    gap: 12px;
}
.uplyft-avatar {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef2f7;
}
.uplyft-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}
.uplyft-avatar-initials {
    background: #1b2b4b;
    color: #ffffff;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.5px;
}
.uplyft-author {
    flex: 1;
    min-width: 0;
}
.uplyft-card-photo .uplyft-reviewer-name {
    font-size: 16px;
    font-weight: 700;
    color: #1b2b4b;
}
.uplyft-card-photo .uplyft-review-meta {
    font-size: 13px;
    color: #475569;
    margin-top: 2px;
    gap: 2px;
}
.uplyft-card-photo .uplyft-reviewer-desig { font-size: inherit; color: inherit; }
.uplyft-card-photo .uplyft-meta-sep { color: #94a3b8; padding: 0 2px; }
.uplyft-card-photo .uplyft-stars {
    margin: 0;
    flex: 0 0 auto;
    align-self: flex-end;
    white-space: nowrap;
}

/* ============================================================
   SLIDER / CAROUSEL NAVIGATION
   ============================================================ */
.uplyft-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}
.uplyft-nav-btn {
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    padding: 0;
}
.uplyft-nav-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}
.uplyft-nav-disabled .uplyft-nav-btn,
.uplyft-nav-btn:disabled {
    opacity: 0.35;
    cursor: default;
}
.uplyft-editor-hint {
    margin-top: 10px;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.4;
    background: #fffbeb;
    border: 1px dashed #f59e0b;
    border-radius: 6px;
    color: #92400e;
    text-align: center;
}
.uplyft-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}
.uplyft-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #cbd5e0;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.uplyft-dot.active {
    background: #374151;
    transform: scale(1.25);
}

/* ============================================================
   REVIEW FORM
   ============================================================ */
.uplyft-review-form-wrap {
    margin-top: 48px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
}

.uplyft-form-title {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px;
    color: inherit;
}

/* Star selector */
.uplyft-form-stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 18px;
}
.uplyft-form-star {
    cursor: pointer;
    color: #cbd5e0;
    transition: color 0.15s, transform 0.1s;
    /* 44px min tap target for mobile */
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.uplyft-form-star:hover,
.uplyft-form-star.hover,
.uplyft-form-star.selected {
    color: #f0a500;
    transform: scale(1.15);
}

/* Form grid */
.uplyft-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.uplyft-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.uplyft-form-field label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
}
.uplyft-required { color: #e53e3e; }

.uplyft-form-field input,
.uplyft-form-field textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    background: #ffffff;
    color: #1a202c;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
}
.uplyft-form-field input:focus,
.uplyft-form-field textarea:focus {
    outline: none;
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.15);
}
.uplyft-form-field textarea {
    resize: vertical;
    min-height: 120px;
}

/* Auto-detected location */
.uplyft-location-auto {
    background: #f0fdf4 !important;
    border-color: #86efac !important;
    color: #166534 !important;
    cursor: default;
}
.uplyft-auto-badge {
    font-size: 11px;
    font-weight: 500;
    background: #dcfce7;
    color: #166534;
    border-radius: 20px;
    padding: 2px 8px;
}

/* Char count */
.uplyft-char-count {
    font-size: 11px;
    color: #94a3b8;
    text-align: right;
    margin-top: -10px;
}

/* Message */
.uplyft-form-message {
    padding: 12px 16px;
    border-radius: 7px;
    font-size: 14px;
    margin-bottom: 16px;
}
.uplyft-form-message.success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}
.uplyft-form-message.error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* Submit button */
.uplyft-submit-btn {
    width: 100%;
    padding: 13px 20px;
    background: #1a202c;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}
.uplyft-submit-btn:hover   { opacity: 0.88; }
.uplyft-submit-btn:active  { transform: scale(0.98); }
.uplyft-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Notes */
.uplyft-form-note {
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 0;
}
/* Brand note — do not remove */
.uplyft-brand-note {
    font-size: 11px;
    color: #cbd5e0;
    text-align: center;
    margin-top: 6px;
}
.uplyft-brand-note a {
    color: #94a3b8;
    text-decoration: none;
}
.uplyft-brand-note a:hover { text-decoration: underline; }

/* License notice */
.uplyft-license-notice {
    padding: 16px 20px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    font-size: 14px;
    color: #92400e;
}
.uplyft-license-notice a { color: #b45309; }

/* ============================================================
   RESPONSIVE — TABLET  (≤ 900px)
   ============================================================ */
@media ( max-width: 900px ) {
    .uplyft-layout-grid.uplyft-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .uplyft-layout-grid.uplyft-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESPONSIVE — MOBILE  (≤ 600px)
   ============================================================ */
@media ( max-width: 600px ) {
    .uplyft-style-photo .uplyft-review-card { padding: 18px; }
    .uplyft-card-footer { flex-wrap: wrap; }
    .uplyft-card-photo .uplyft-stars { align-self: center; }
    .uplyft-layout-grid.uplyft-cols-2,
    .uplyft-layout-grid.uplyft-cols-3,
    .uplyft-layout-grid.uplyft-cols-4 {
        grid-template-columns: 1fr;
    }

    .uplyft-form-row {
        grid-template-columns: 1fr;
    }

    .uplyft-review-form-wrap {
        padding: 20px 16px;
        margin-top: 32px;
    }

    .uplyft-form-title { font-size: 17px; }

    .uplyft-form-stars { gap: 4px; }
    .uplyft-form-star  { min-width: 48px; min-height: 48px; font-size: 22px; }

    .uplyft-nav-btn { width: 40px; height: 40px; }

    .uplyft-submit-btn { font-size: 16px; padding: 14px; }
}

/* ============================================================
   NAV HARDENING — themes (Hello Elementor, Astra, etc.) style every
   <button>; these selectors are stronger so arrows/dots stay visible.
   ============================================================ */
.uplyft-reviews-wrapper .uplyft-nav {
    display: flex;
    visibility: visible;
    opacity: 1;
}
.uplyft-reviews-wrapper .uplyft-nav .uplyft-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 0;
    margin: 0;
    font-size: 22px;
    line-height: 1;
    background-color: #ffffff;
    color: #1b2b4b;
    border: 1px solid #cbd5e0;
    border-radius: 50%;
    box-shadow: none;
    text-indent: 0;
    text-transform: none;
}
.uplyft-reviews-wrapper .uplyft-nav .uplyft-nav-btn:hover:not(:disabled) {
    background-color: #f1f5f9;
    color: #1b2b4b;
    border-color: #94a3b8;
}
.uplyft-reviews-wrapper .uplyft-nav .uplyft-nav-btn:disabled {
    opacity: 0.35;
    cursor: default;
}
.uplyft-reviews-wrapper .uplyft-dots .uplyft-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    min-width: 0;
    min-height: 0;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 50%;
    background-color: #cbd5e0;
    box-shadow: none;
    cursor: pointer;
}
.uplyft-reviews-wrapper .uplyft-dots .uplyft-dot.active {
    background-color: #1b2b4b;
    transform: scale(1.25);
}
