.hg-trustpilot {
    --hg-tp-bg: rgba(255, 255, 255, .92);
    --hg-tp-border: rgba(19, 107, 49, .18);
    --hg-tp-text: #243229;
    --hg-tp-muted: #5f6f64;
    --hg-tp-accent: #008f39;
    --hg-tp-shadow: 0 18px 50px rgba(20, 55, 30, .1);
    padding: .8rem 0;
}

.hg-trustpilot__card {
    align-items: center;
    background: linear-gradient(135deg, #f4fbf4, #e8f7e9);
    border: 1px solid rgba(0, 143, 57, .2);
    border-radius: 1rem;
    box-shadow: 0 14px 38px rgba(20, 55, 30, .11);
    display: grid;
    gap: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    overflow: hidden;
    margin: 0 auto;
    max-width: 980px;
    padding: 0;
    position: relative;
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.hg-trustpilot__card::before {
    content: none;
}

.hg-trustpilot__card:hover {
    border-color: rgba(0, 143, 57, .42);
    box-shadow: 0 17px 44px rgba(20, 55, 30, .16);
    transform: translateY(-1px);
}

.hg-trustpilot__copy {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    min-width: 0;
    padding: 1rem 1.35rem;
    position: relative;
    z-index: 1;
}

.hg-trustpilot__eyebrow {
    color: #008f39;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hg-trustpilot__title {
    color: #243229;
    font-size: clamp(1.05rem, 1.5vw, 1.28rem);
    line-height: 1.25;
}

.hg-trustpilot__text {
    color: #5f6f64;
    font-size: .86rem;
    line-height: 1.4;
    max-width: 44rem;
}

.hg-trustpilot__cta {
    align-items: center;
    align-self: stretch;
    background: linear-gradient(135deg, #168a45, #087438);
    border: 1px solid rgba(0, 112, 53, .45);
    border-radius: .8rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: .7rem 1rem .7rem 0;
    min-height: 74px;
    padding: .65rem 1.35rem;
    position: relative;
    text-align: center;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    width: 280px;
    z-index: 1;
}

.hg-trustpilot__cta > span {
    font-size: .8rem;
}

.hg-trustpilot__cta strong {
    font-size: 1.08rem;
    line-height: 1.25;
}

.hg-trustpilot__cta strong span {
    color: #8ff0bd;
    font-size: 1.2rem;
}

html[data-hg-theme="light"] .hg-trustpilot__cta,
html[data-hg-theme="light"] .hg-trustpilot__cta > span,
html[data-hg-theme="light"] .hg-trustpilot__cta strong {
    color: #f4fff8;
}

html[data-hg-theme="light"] .hg-trustpilot__cta strong span {
    color: #8ff0bd;
}

.hg-trustpilot__cta:hover,
.hg-trustpilot__cta:focus-visible {
    background: linear-gradient(135deg, #1a9950, #087f3d);
    border-color: #006d34;
    box-shadow: 0 10px 28px rgba(20, 55, 30, .2);
    color: #fff;
    outline: 3px solid rgba(0, 143, 57, .24);
    outline-offset: 2px;
    text-decoration: none;
    transform: translateY(-1px);
}

.hg-trustpilot-badge {
    align-items: center;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(0, 143, 57, .24);
    border-radius: 999px;
    box-shadow: 0 12px 34px rgba(20, 55, 30, .18);
    color: #243229;
    display: flex;
    gap: .55rem;
    padding: .55rem .8rem .55rem .58rem;
    position: fixed;
    top: 52%;
    transform: translateY(-50%);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    z-index: 1020;
}

.hg-trustpilot-badge--right {
    right: 1rem;
}

.hg-trustpilot-badge--left {
    left: 1rem;
}

.hg-trustpilot-badge:hover,
.hg-trustpilot-badge:focus-visible {
    border-color: rgba(0, 143, 57, .6);
    box-shadow: 0 16px 40px rgba(20, 55, 30, .25);
    color: #087b32;
    outline: none;
    text-decoration: none;
    transform: translateY(-50%) scale(1.04);
}

.hg-trustpilot-badge__star {
    align-items: center;
    background: #00b67a;
    border-radius: 50%;
    color: #fff;
    display: flex;
    font-size: 1rem;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.hg-trustpilot-badge__label {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.hg-trustpilot-badge__label strong {
    font-size: .82rem;
}

.hg-trustpilot-badge__label small {
    color: #68776d;
    font-size: .68rem;
    margin-top: .16rem;
}

html[data-hg-theme="dark"] .hg-trustpilot {
    --hg-tp-bg: rgba(30, 36, 32, .96);
    --hg-tp-border: rgba(113, 207, 133, .24);
    --hg-tp-text: #f1f6f2;
    --hg-tp-muted: #bcc9bf;
    --hg-tp-accent: #71cf85;
    --hg-tp-shadow: 0 20px 54px rgba(0, 0, 0, .3);
}

html[data-hg-theme="dark"] .hg-trustpilot__card {
    background: linear-gradient(135deg, #1c3424, #112a1a);
    border-color: rgba(113, 207, 133, .32);
    box-shadow: 0 16px 42px rgba(0, 0, 0, .3);
}

html[data-hg-theme="dark"] .hg-trustpilot__eyebrow {
    color: #7dde91;
}

html[data-hg-theme="dark"] .hg-trustpilot__title {
    color: #f4faf5;
}

html[data-hg-theme="dark"] .hg-trustpilot__text {
    color: #c6d6c9;
}

html[data-hg-theme="dark"] .hg-trustpilot__cta {
    background: linear-gradient(135deg, #215d35, #174927);
    border: 1px solid rgba(125, 222, 145, .55);
    color: #f4faf5;
}

html[data-hg-theme="dark"] .hg-trustpilot__cta > span,
html[data-hg-theme="dark"] .hg-trustpilot__cta strong {
    color: #f4faf5;
}

html[data-hg-theme="dark"] .hg-trustpilot__cta strong span {
    color: #00d68f;
}

html[data-hg-theme="dark"] .hg-trustpilot__cta:hover,
html[data-hg-theme="dark"] .hg-trustpilot__cta:focus-visible {
    background: linear-gradient(135deg, #287240, #1b5530);
    border-color: #7dde91;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
    outline: 3px solid rgba(125, 222, 145, .3);
}

html[data-hg-theme="dark"] .hg-trustpilot-badge {
    background: rgba(30, 36, 32, .97);
    border-color: rgba(113, 207, 133, .34);
    color: #f1f6f2;
}

html[data-hg-theme="dark"] .hg-trustpilot-badge__label small {
    color: #bcc9bf;
}

@media (max-width: 767.98px) {
    .hg-trustpilot {
        padding: .6rem 0;
    }

    .hg-trustpilot--desktop-only,
    .hg-trustpilot-badge {
        display: none !important;
    }

    .hg-trustpilot__card {
        border-radius: 1rem;
        gap: 0;
        grid-template-columns: minmax(0, 1fr);
        padding: 0;
        transform: none;
    }

    .hg-trustpilot__card:hover {
        transform: none;
    }

    .hg-trustpilot__cta,
    html[data-hg-theme="dark"] .hg-trustpilot__cta {
        margin: 0 .75rem .75rem;
        min-height: 72px;
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hg-trustpilot__card,
    .hg-trustpilot__cta,
    .hg-trustpilot-badge {
        transition: none;
    }
}
