/* tx_greviews - styly odznaku na frontendu e-shopu */

.txgr-wrapper {
    display: inline-block;
}
.txgr-wrapper.txgr-floating {
    position: fixed;
    z-index: 999999;
}
.txgr-wrapper.txgr-pos-bottom_right {
    right: 16px;
    bottom: 16px;
}
.txgr-wrapper.txgr-pos-bottom_left {
    left: 16px;
    bottom: 16px;
}
.txgr-wrapper.txgr-pos-top_right {
    right: 16px;
    top: 16px;
}
.txgr-wrapper.txgr-pos-top_left {
    left: 16px;
    top: 16px;
}

.txgr-badge {
    display: flex;
    align-items: center;
    text-decoration: none;
    border-radius: 6px;
    box-shadow: 0 0px 6px rgba(0, 0, 0, .18);
    padding: 10px 14px;
    position: relative;
    overflow: hidden;
    min-width: 190px;
    transition: transform .15s ease;
}
.txgr-badge:hover {
    transform: translateY(-2px);
}
.txgr-badge.txgr-vertical {
    flex-direction: column;
    text-align: center;
    min-width: 140px;
}
.txgr-badge .txgr-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}
.txgr-badge .txgr-icon {
    margin-right: 12px;
    flex-shrink: 0;
    line-height: 0;
}
.txgr-badge.txgr-vertical .txgr-icon {
    margin-right: 0;
    margin-bottom: 6px;
}

.txgr-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: center;
}
.txgr-label {
    font-size: 13px;
    font-weight: 600;
}
.txgr-rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    justify-content: center;
}
.txgr-badge.txgr-vertical .txgr-rating-row {
    justify-content: center;
}
.txgr-rating-number {
    font-size: 16px;
    font-weight: 700;
}
.txgr-stars {
    position: relative;
    display: inline-block;
    font-size: 16px;
}
.txgr-stars-back {
    color: #e0e0e0;
}
.txgr-stars-front {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
}

@media (max-width: 575px) {
  .txgr-badge.txgr-horizontal {
    flex-direction: column;
    text-align: center;
    min-width: 150px;
  }

  .txgr-badge.txgr-horizontal .txgr-icon {
    margin-right: 0;
    margin-bottom: 6px;
  }

  .txgr-badge.txgr-horizontal .txgr-rating-row {
    justify-content: center;
  }
}
