/* HeyDownloads Reviews Widget - World Class Design */

.hey-reviews-widget,
.hey-reviews-widget * {
    box-sizing: border-box;
}

.hey-reviews-widget {
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(17, 24, 39, 0.08);
    position: relative;
}

.hey-reviews-widget::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ef5b2a, #f28c00);
    z-index: 2;
}

.hey-reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 32px 38px 26px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.hey-reviews-title-wrap {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.hey-reviews-starburst {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #f4b400;
    -webkit-text-stroke: 1.1px #111827;
    font-size: 31px;
    line-height: 1;
    flex: 0 0 auto;
}

.hey-reviews-title-wrap h2 {
    margin: 0;
    color: #172033;
    font-size: clamp(24px, 2.2vw, 40px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.8px;
    white-space: nowrap;
}

.hey-reviews-title-wrap h2 span {
    color: #e87500;
}

.hey-reviews-live-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffffff;
    background: linear-gradient(135deg, #09b66d 0%, #008b5b 100%);
    border-radius: 999px;
    padding: 13px 22px;
    font-size: 15px;
    line-height: 1;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 12px 26px rgba(0, 142, 93, 0.22);
}

.hey-reviews-live-stars {
    color: #ffc400;
    letter-spacing: 1px;
    font-size: 16px;
    line-height: 1;
}

.hey-reviews-display {
    padding: 34px 38px 28px;
}

.hey-reviews-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
    min-height: 230px;
}

.hey-reviews-loading {
    grid-column: 1 / -1;
    padding: 30px;
    text-align: center;
    color: #6b7280;
    font-weight: 700;
}

.hey-review-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 245px;
    padding: 30px 30px 24px;
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.075);
    overflow: hidden;
}

.hey-review-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, #ef5b2a, #f28c00);
}

.hey-review-top {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 19px;
}

.hey-review-quote {
    color: #ef5b2a;
    font-size: 48px;
    line-height: 0.75;
    font-weight: 950;
    font-family: Georgia, serif;
}

.hey-review-stars {
    color: #f5b301;
    font-size: 23px;
    line-height: 1;
    letter-spacing: 4px;
    font-weight: 950;
}

.hey-review-text {
    color: #1f2937;
    font-size: 17px;
    line-height: 1.62;
    font-weight: 500;
    margin: 0;
    flex: 1 1 auto;
}

.hey-review-footer {
    margin-top: 24px;
    padding-top: 17px;
    border-top: 1px solid rgba(17, 24, 39, 0.09);
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.hey-review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dcf8ec;
    color: #00a86b;
    font-size: 22px;
    font-weight: 950;
    box-shadow: inset 0 0 0 1px rgba(0, 142, 93, 0.10);
}

.hey-review-author-wrap {
    min-width: 0;
}

.hey-review-author {
    display: block;
    color: #172033;
    font-size: 18px;
    line-height: 1.15;
    font-weight: 950;
    margin: 0 0 4px;
}

.hey-review-date {
    display: block;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 500;
}

.hey-review-country {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #047857;
    background: #edfdf6;
    border: 1px solid rgba(0, 142, 93, 0.13);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1;
    font-weight: 850;
    white-space: nowrap;
}

.hey-review-country::before {
    content: "📍";
    font-size: 13px;
    line-height: 1;
}

.hey-reviews-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 38px 34px;
    background: #fbfcfd;
    border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.hey-reviews-nav button {
    appearance: none;
    border: 0;
    min-width: 160px;
    min-height: 48px;
    border-radius: 10px;
    color: #ffffff;
    background: linear-gradient(135deg, #08aa6b 0%, #007a55 100%);
    box-shadow: 0 10px 22px rgba(0, 142, 93, 0.22);
    font-size: 14px;
    line-height: 1;
    font-weight: 950;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease;
}

.hey-reviews-nav button:hover {
    transform: translateY(-1px);
    box-shadow: 0 13px 26px rgba(0, 142, 93, 0.26);
}

.hey-reviews-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 12px;
}

.hey-reviews-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #cbd5e1;
}

.hey-reviews-dot.active {
    background: #f28c00;
}

/* Homepage wrapper around shortcode + rating badges */
#hey-homepage div[style*="grid-template-columns:240px 1fr"],
#hey-homepage div[style*="grid-template-columns: 240px 1fr"] {
    align-items: stretch !important;
    overflow: hidden;
}

#hey-homepage div[style*="grid-template-columns:240px 1fr"] > div:first-child,
#hey-homepage div[style*="grid-template-columns: 240px 1fr"] > div:first-child {
    justify-content: space-between !important;
}

#hey-homepage div[style*="grid-template-columns:240px 1fr"] > div:first-child > div,
#hey-homepage div[style*="grid-template-columns: 240px 1fr"] > div:first-child > div {
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.045);
    border: 1px solid rgba(17, 24, 39, 0.04);
}

#hey-homepage div[style*="grid-template-columns:240px 1fr"] > div:first-child > div > div:nth-child(2),
#hey-homepage div[style*="grid-template-columns: 240px 1fr"] > div:first-child > div > div:nth-child(2) {
    color: #f5b301 !important;
}

/* Homepage uses outer heading, so keep widget title hidden there */
#hey-homepage .hey-reviews-title-wrap {
    display: none;
}

#hey-homepage .hey-reviews-header {
    justify-content: flex-end;
}

#hey-homepage .hey-reviews-widget {
    box-shadow: none;
    border: 0;
    border-radius: 14px;
}

#hey-homepage .hey-reviews-widget::before {
    display: none;
}

/* Mobile */
@media (max-width: 768px) {
    #hey-homepage div[style*="background:#fff;padding:52px 20px"] {
        padding: 34px 12px !important;
    }

    #hey-homepage div[style*="max-width:1400px"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #hey-homepage .hh-section-title {
        margin-bottom: 18px !important;
    }

    #hey-homepage .hh-section-title h2 {
        white-space: nowrap !important;
        font-size: 21px !important;
        line-height: 1.15 !important;
        letter-spacing: -0.4px !important;
    }

    #hey-homepage .hh-section-title p {
        font-size: 12px !important;
        margin-top: 7px !important;
    }

    #hey-homepage div[style*="grid-template-columns:240px 1fr"],
    #hey-homepage div[style*="grid-template-columns: 240px 1fr"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        width: 100% !important;
        max-width: 390px !important;
        margin: 0 auto !important;
        padding: 12px !important;
        border-radius: 16px !important;
        box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08) !important;
    }

    #hey-homepage div[style*="grid-template-columns:240px 1fr"] > div:first-child,
    #hey-homepage div[style*="grid-template-columns: 240px 1fr"] > div:first-child {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 0 0 12px 0 !important;
        margin: 0 !important;
        border-right: 0 !important;
        border-bottom: 1px solid rgba(17, 24, 39, 0.08) !important;
        box-sizing: border-box !important;
    }

    #hey-homepage div[style*="grid-template-columns:240px 1fr"] > div:first-child > div,
    #hey-homepage div[style*="grid-template-columns: 240px 1fr"] > div:first-child > div {
        min-width: 0 !important;
        min-height: 92px !important;
        padding: 8px 4px !important;
        margin: 0 !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
    }

    #hey-homepage div[style*="grid-template-columns:240px 1fr"] > div:first-child > div div,
    #hey-homepage div[style*="grid-template-columns: 240px 1fr"] > div:first-child > div div {
        font-size: 8.2px !important;
        line-height: 1.12 !important;
        margin-bottom: 3px !important;
        letter-spacing: 0 !important;
    }

    #hey-homepage div[style*="grid-template-columns:240px 1fr"] > div:first-child img,
    #hey-homepage div[style*="grid-template-columns: 240px 1fr"] > div:first-child img {
        max-width: 72px !important;
        max-height: 32px !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        margin: 4px auto 0 auto !important;
    }

    #hey-homepage div[style*="grid-template-columns:240px 1fr"] > div:nth-child(2),
    #hey-homepage div[style*="grid-template-columns: 240px 1fr"] > div:nth-child(2) {
        padding: 12px 0 0 0 !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    .hey-reviews-widget {
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(17, 24, 39, 0.07);
    }

    .hey-reviews-header {
        padding: 18px 16px 16px;
        justify-content: center;
        flex-direction: column;
        gap: 14px;
        border-bottom: 0;
    }

    .hey-reviews-title-wrap {
        justify-content: center;
        width: 100%;
    }

    .hey-reviews-title-wrap h2 {
        font-size: 22px;
        white-space: nowrap;
    }

    #hey-homepage .hey-reviews-header {
        padding: 0 0 14px 0 !important;
        background: #ffffff !important;
        justify-content: center !important;
    }

    #hey-homepage .hey-reviews-title-wrap {
        display: none !important;
    }

    .hey-reviews-live-pill {
        width: auto;
        max-width: 100%;
        padding: 11px 15px;
        font-size: 12px;
        gap: 8px;
    }

    .hey-reviews-live-stars {
        font-size: 12px;
    }

    .hey-reviews-display {
        padding: 0 0 0;
    }

    .hey-reviews-container {
        grid-template-columns: 1fr;
        gap: 13px;
        min-height: 0;
    }

    .hey-review-card {
        min-height: 0;
        padding: 18px 16px 16px;
        border-radius: 16px;
    }

    .hey-review-card::before {
        width: 110px;
        height: 3px;
    }

    .hey-review-top {
        gap: 12px;
        margin-bottom: 13px;
    }

    .hey-review-quote {
        font-size: 38px;
    }

    .hey-review-stars {
        font-size: 19px;
        letter-spacing: 2px;
    }

    .hey-review-text {
        font-size: 15px;
        line-height: 1.56;
    }

    .hey-review-footer {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 11px;
        margin-top: 18px;
        padding-top: 14px;
    }

    .hey-review-avatar {
        width: 44px;
        height: 44px;
        font-size: 19px;
    }

    .hey-review-author {
        font-size: 16px;
    }

    .hey-review-date {
        font-size: 12.5px;
    }

    .hey-review-country {
        grid-column: 2;
        justify-self: start;
        margin-top: 8px;
        padding: 7px 10px;
        font-size: 12px;
    }

    .hey-reviews-nav {
        padding: 18px 0 0;
        background: #ffffff;
        border-top: 0;
        gap: 12px;
    }

    .hey-reviews-nav button {
        min-width: 0;
        width: 50%;
        min-height: 44px;
        border-radius: 10px;
        font-size: 13px;
    }

    .hey-reviews-dots {
        display: none;
    }
}

@media (max-width: 380px) {
    #hey-homepage .hh-section-title h2 {
        font-size: 19px !important;
    }

    #hey-homepage div[style*="grid-template-columns:240px 1fr"] > div:first-child img,
    #hey-homepage div[style*="grid-template-columns: 240px 1fr"] > div:first-child img {
        max-width: 64px !important;
        max-height: 28px !important;
    }

    .hey-reviews-title-wrap h2 {
        font-size: 20px;
    }

    .hey-review-text {
        font-size: 14px;
    }
}

/* HD REVIEWS FINAL HOTFIX START */

/* Keep homepage from showing duplicate widget title */
#hey-homepage .hey-reviews-title-wrap {
    display: none !important;
}

#hey-homepage .hey-reviews-header {
    justify-content: flex-end !important;
}

#hey-homepage .hey-reviews-widget {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
}

#hey-homepage .hey-reviews-display,
#hey-homepage .hey-reviews-container {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
}

#hey-homepage div[style*="grid-template-columns:240px 1fr"] > div:nth-child(2),
#hey-homepage div[style*="grid-template-columns: 240px 1fr"] > div:nth-child(2) {
    overflow: visible !important;
    min-width: 0 !important;
}

/* Product + homepage: never allow dots to push away NEXT button */
.hey-reviews-nav {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 18px !important;
}

.hey-reviews-prev {
    grid-column: 1 !important;
    justify-self: start !important;
}

.hey-reviews-dots {
    grid-column: 2 !important;
    justify-self: center !important;
    max-width: 420px !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    flex-wrap: nowrap !important;
}

.hey-reviews-next {
    grid-column: 3 !important;
    justify-self: end !important;
}

.hey-reviews-dot:nth-child(n+26) {
    display: none !important;
}

/* Homepage desktop: make wrapper stable after CSS loads early */
@media (min-width: 769px) {
    #hey-homepage div[style*="grid-template-columns:240px 1fr"],
    #hey-homepage div[style*="grid-template-columns: 240px 1fr"] {
        display: grid !important;
        grid-template-columns: 240px minmax(0, 1fr) !important;
        gap: 24px !important;
        align-items: stretch !important;
    }

    #hey-homepage div[style*="grid-template-columns:240px 1fr"] > div:first-child,
    #hey-homepage div[style*="grid-template-columns: 240px 1fr"] > div:first-child {
        min-width: 0 !important;
    }

    #hey-homepage .hey-reviews-header {
        padding: 26px 35px 20px !important;
        background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    }

    #hey-homepage .hey-reviews-display {
        padding: 0 35px !important;
    }

    #hey-homepage .hey-reviews-container {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 25px !important;
        margin: 32px 0 !important;
    }

    #hey-homepage .hey-reviews-nav {
        padding: 20px 35px 30px !important;
    }
}

/* Homepage mobile: one clean section, one-line title, compact badges */
@media (max-width: 768px) {
    #hey-homepage div[style*="background:#fff;padding:52px 20px"] {
        padding: 34px 12px !important;
    }

    #hey-homepage div[style*="max-width:1400px"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #hey-homepage .hh-section-title {
        margin-bottom: 18px !important;
    }

    #hey-homepage .hh-section-title h2 {
        white-space: nowrap !important;
        font-size: 21px !important;
        line-height: 1.15 !important;
        letter-spacing: -0.4px !important;
    }

    #hey-homepage .hh-section-title p {
        font-size: 12px !important;
        margin-top: 7px !important;
    }

    #hey-homepage div[style*="grid-template-columns:240px 1fr"],
    #hey-homepage div[style*="grid-template-columns: 240px 1fr"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        width: 100% !important;
        max-width: 390px !important;
        margin: 0 auto !important;
        padding: 12px !important;
        border-radius: 16px !important;
        box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08) !important;
        overflow: visible !important;
    }

    #hey-homepage div[style*="grid-template-columns:240px 1fr"] > div:first-child,
    #hey-homepage div[style*="grid-template-columns: 240px 1fr"] > div:first-child {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 0 0 12px 0 !important;
        margin: 0 !important;
        border-right: 0 !important;
        border-bottom: 1px solid rgba(17, 24, 39, 0.08) !important;
    }

    #hey-homepage div[style*="grid-template-columns:240px 1fr"] > div:first-child > div,
    #hey-homepage div[style*="grid-template-columns: 240px 1fr"] > div:first-child > div {
        min-width: 0 !important;
        min-height: 92px !important;
        padding: 8px 4px !important;
        margin: 0 !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
    }

    #hey-homepage div[style*="grid-template-columns:240px 1fr"] > div:first-child > div div,
    #hey-homepage div[style*="grid-template-columns: 240px 1fr"] > div:first-child > div div {
        font-size: 8.2px !important;
        line-height: 1.12 !important;
        margin-bottom: 3px !important;
        letter-spacing: 0 !important;
    }

    #hey-homepage div[style*="grid-template-columns:240px 1fr"] > div:first-child img,
    #hey-homepage div[style*="grid-template-columns: 240px 1fr"] > div:first-child img {
        max-width: 72px !important;
        max-height: 32px !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        margin: 4px auto 0 auto !important;
    }

    #hey-homepage div[style*="grid-template-columns:240px 1fr"] > div:nth-child(2),
    #hey-homepage div[style*="grid-template-columns: 240px 1fr"] > div:nth-child(2) {
        padding: 12px 0 0 0 !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    #hey-homepage .hey-reviews-header {
        padding: 0 0 14px 0 !important;
        background: #ffffff !important;
        justify-content: center !important;
        border-bottom: 0 !important;
    }

    #hey-homepage .hey-reviews-live-pill {
        margin: 0 auto !important;
    }

    .hey-reviews-container {
        grid-template-columns: 1fr !important;
        gap: 13px !important;
        min-height: 0 !important;
    }

    .hey-reviews-nav {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        padding: 18px 0 0 !important;
        background: #ffffff !important;
        border-top: 0 !important;
    }

    .hey-reviews-prev {
        grid-column: 1 !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .hey-reviews-next {
        grid-column: 2 !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .hey-reviews-dots {
        display: none !important;
    }
}

@media (max-width: 380px) {
    #hey-homepage .hh-section-title h2 {
        font-size: 19px !important;
    }

    #hey-homepage div[style*="grid-template-columns:240px 1fr"] > div:first-child img,
    #hey-homepage div[style*="grid-template-columns: 240px 1fr"] > div:first-child img {
        max-width: 64px !important;
        max-height: 28px !important;
    }
}

/* HD REVIEWS FINAL HOTFIX END */
