
.twgr-badge,
.twgr-review-widget,
.twgr-review-widget *,
.twgr-badge * {
    box-sizing: border-box;
}

/*
 * Badge v2.3
 * Rozměry a proporce jsou doladěné podle reference Thermoservis:
 * bílá kompaktní kartička, vícebarevné G bez kruhu,
 * malé zaoblení, velmi jemný stín, dvě řádky textu.
 */
.twgr-badge {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    max-width: 100%;
    margin: 0;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: #202124 !important;
    text-decoration: none !important;
    line-height: 1;
    box-shadow: none;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
    transform-origin: center;
    will-change: transform;
    font-family: Arial, Helvetica, sans-serif;
    overflow: hidden;
}

.twgr-badge:hover {
    transform: none;
    box-shadow: none;
}

.twgr-theme-light,
.twgr-theme-dark {
    background: #fff;
    color: #202124 !important;
}

.twgr-badge.twgr-variant-plain {
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    gap: 8px;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible;
}

.twgr-badge.twgr-variant-plain:hover {
    transform: none;
    box-shadow: none !important;
}

.twgr-badge.twgr-variant-plain .twgr-copy {
    gap: 3px;
}

.twgr-badge.twgr-variant-plain .twgr-title {
    line-height: 1;
}

.twgr-badge.twgr-variant-plain .twgr-attribution {
    display: none;
}

.twgr-badge.twgr-variant-plain.twgr-size-small .twgr-gmark,
.twgr-badge.twgr-variant-plain.twgr-size-normal .twgr-gmark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
}

.twgr-badge.twgr-variant-plain.twgr-size-small .twgr-title,
.twgr-badge.twgr-variant-plain.twgr-size-normal .twgr-title {
    font-size: 13px;
}

.twgr-badge.twgr-variant-plain.twgr-size-small .twgr-meta,
.twgr-badge.twgr-variant-plain.twgr-size-normal .twgr-meta {
    gap: 5px;
    font-size: 13px;
}

.twgr-badge.twgr-variant-plain.twgr-size-small .twgr-stars,
.twgr-badge.twgr-variant-plain.twgr-size-normal .twgr-stars {
    font-size: 24px;
    letter-spacing: -.2px;
}

.twgr-badge.twgr-variant-plain.twgr-size-small .twgr-count,
.twgr-badge.twgr-variant-plain.twgr-size-normal .twgr-count {
    font-size: 11px;
}

.twgr-gmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: transparent;
}

.twgr-gmark svg {
    display: block;
    width: 100%;
    height: 100%;
}

.twgr-copy {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.twgr-title {
    display: block;
    margin: 0;
    padding: 0;
    color: #202124;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
}

.twgr-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    color: #202124;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1;
    white-space: nowrap;
}

.twgr-rating {
    color: #202124;
    font-weight: 700;
}

.twgr-count {
    color: #5f6368;
    font-weight: 400;
}

.twgr-attribution {
    margin: 0;
    color: #5f6368;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1;
}

.twgr-attribution a,
.twgr-review-card-footer a,
.twgr-provider a {
    color: inherit;
}

.twgr-google-maps {
    font-family: Arial, Helvetica, sans-serif;
    font-style: normal;
    font-weight: 400;
    letter-spacing: normal;
    white-space: nowrap;
    color: #5f6368;
}

.twgr-theme-dark .twgr-google-maps {
    color: #5f6368;
}

.twgr-stars {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    line-height: 1;
    vertical-align: middle;
}

.twgr-stars-base {
    color: #dadce0;
}

.twgr-stars-fill {
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
    white-space: nowrap;
    color: #fbbc04;
}

/*
 * SMALL – patička.
 * Reference Thermoservis má téměř obdélník 2.8 : 1.
 */
.twgr-badge.twgr-size-small {
    width: 234px;
    min-width: 234px;
    height: 84px;
    min-height: 84px;
    gap: 11px;
    padding: 12px 16px;
}

.twgr-size-small .twgr-gmark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
}

.twgr-size-small .twgr-copy {
    gap: 5px;
}

.twgr-size-small .twgr-title {
    font-size: 13px;
}

.twgr-size-small .twgr-meta {
    gap: 5px;
    font-size: 13px;
}

.twgr-size-small .twgr-stars {
    font-size: 24px;
    letter-spacing: -.2px;
}

.twgr-size-small .twgr-count {
    font-size: 11px;
}

.twgr-size-small .twgr-attribution,
.twgr-size-small .twgr-google-maps {
    font-size: 9px;
}

/*
 * NORMAL – Slider Revolution / hero.
 * O něco vyšší a širší než patička, ale stále stejný charakter reference.
 */
.twgr-badge.twgr-size-normal {
    width: 234px;
    min-width: 234px;
    height: 84px;
    min-height: 84px;
    gap: 11px;
    padding: 12px 16px;
}

.twgr-size-normal .twgr-gmark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
}

.twgr-size-normal .twgr-copy {
    gap: 5px;
}

.twgr-size-normal .twgr-title {
    font-size: 13px;
}

.twgr-size-normal .twgr-meta {
    gap: 5px;
    font-size: 13px;
}

.twgr-size-normal .twgr-stars {
    font-size: 24px;
    letter-spacing: -.2px;
}

.twgr-size-normal .twgr-count {
    font-size: 11px;
}

.twgr-size-normal .twgr-attribution,
.twgr-size-normal .twgr-google-maps {
    font-size: 9px;
}

/* LARGE ponecháváme pro případné jiné použití. */
.twgr-badge.twgr-size-large {
    width: 205px;
    min-width: 205px;
    height: 72px;
    min-height: 72px;
    gap: 10px;
    padding: 10px 13px;
}

.twgr-size-large .twgr-gmark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
}

.twgr-size-large .twgr-copy {
    gap: 5px;
}

.twgr-size-large .twgr-title,
.twgr-size-large .twgr-meta {
    font-size: 13px;
}

.twgr-size-large .twgr-stars {
    font-size: 14px;
    letter-spacing: .25px;
}

/* Na velmi úzkém prostoru se kartička nesmí roztáhnout mimo rodiče. */
@media (max-width: 190px) {
    .twgr-badge.twgr-size-normal,
    .twgr-badge.twgr-size-small,
    .twgr-badge.twgr-size-large {
        width: 100%;
        min-width: 0;
    }
}

.twgr-anim-float {
    animation: twgr-float 3.2s ease-in-out infinite;
}

.twgr-anim-pulse {
    animation: twgr-pulse 2.4s ease-in-out infinite;
}

.twgr-anim-fade,
.twgr-review-anim-fade {
    animation: twgr-fade .75s ease both;
}

.twgr-review-widget {
    width: 100%;
    color: inherit;
}

.twgr-review-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.twgr-review-business {
    margin-bottom: 5px;
    font-weight: 700;
    font-size: 18px;
}

.twgr-review-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    font-size: 14px;
}

.twgr-review-order-note {
    margin: -4px 0 14px;
    color: #5e5e5e;
    font-size: 12px;
    line-height: 1.4;
}

.twgr-all-reviews {
    white-space: nowrap;
    text-decoration: none;
}

.twgr-review-items {
    display: grid;
    gap: 16px;
}

.twgr-layout-grid .twgr-review-items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.twgr-layout-list .twgr-review-items {
    grid-template-columns: 1fr;
}

.twgr-review-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    border: 1px solid rgba(0,0,0,.09);
    border-radius: 10px;
    background: #fff;
    color: #202124;
    box-shadow: 0 4px 18px rgba(0,0,0,.06);
}

.twgr-review-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.twgr-review-author-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.twgr-review-avatar-link {
    flex: 0 0 auto;
    text-decoration: none;
}

.twgr-review-avatar {
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.twgr-review-author {
    font-weight: 700;
}

.twgr-review-author a {
    color: inherit;
    text-decoration: none;
}

.twgr-review-time,
.twgr-review-visit {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.35;
}

.twgr-review-text {
    flex: 1 1 auto;
    font-size: 14px;
    line-height: 1.55;
}

.twgr-review-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 4px;
    color: #6b7280;
    font-size: 11px;
}

.twgr-slider-shell {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.twgr-layout-slider .twgr-review-items {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.twgr-layout-slider .twgr-review-card {
    flex: 0 0 min(360px, 88%);
    scroll-snap-align: start;
}

.twgr-slider-btn {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 50%;
    background: #fff;
    color: #202124;
    cursor: pointer;
    font-size: 27px;
    line-height: 1;
}

.twgr-admin-error {
    padding: 10px 12px;
    border: 1px solid #d63638;
    background: #fff;
    color: #8a2424;
    font-size: 13px;
}

.twgr-trustindex-wrap {
    width: 100%;
}

@keyframes twgr-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@keyframes twgr-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.035); }
}

@keyframes twgr-fade {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .twgr-layout-grid .twgr-review-items {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .twgr-review-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .twgr-slider-shell {
        grid-template-columns: 1fr;
    }

    .twgr-slider-btn {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .twgr-anim-float,
    .twgr-anim-pulse,
    .twgr-anim-fade,
    .twgr-review-anim-fade {
        animation: none !important;
    }

    .twgr-layout-slider .twgr-review-items {
        scroll-behavior: auto;
    }
}
