/* THG Quote Vergleich Styles */
.thg-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    color: #212121;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

.thg-container *, .thg-container *::before, .thg-container *::after {
    box-sizing: border-box;
}

/* Header */
.thg-header {
    text-align: center;
}

.thg-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 12px;
}

.thg-tagline {
    font-size: 14px;
    color: #597D79;
    margin: 0 0 16px 0;
}

/* App Download Notice */
.thg-app-download-notice {
    text-align: center;
    margin: 20px 0 24px 0;
    border-radius: 8px;
}

.thg-app-download-text {
    font-size: 14px;
    color: #212121;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.thg-app-store-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.thg-app-store-link {
    display: inline-block;
    transition: opacity 0.2s ease;
}

.thg-app-store-link:hover {
    opacity: 0.8;
}

.thg-app-store-icon {
    height: 40px;
    width: auto;
    display: block;
}

/* tt Dropdown */
.thg-chart-dropdown-container {
    width: 100%;
    margin: 16px 0;
}

.thg-chart-dropdown-toggle {
    width: 100%;
    padding: 14px 20px;
    background-color: transparent;
    color: #212121;
    border: 1px solid #E3E8E7;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.thg-chart-dropdown-toggle:hover, .thg-chart-dropdown-toggle:focus {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    background-color: transparent !important;
    color: #212121 !important;
}

.thg-chart-toggle-text {
    flex: 1;
}

.thg-chart-toggle-caret {
    font-size: 14px;
    color: #597D79;
    transition: transform 0.2s ease;
}

.thg-chart-dropdown-content {
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    padding: 0 24px;
    background-color: #FFFFFF;
    border: 1px solid transparent;
    border-radius: 8px;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.4s ease-out, padding 0.4s ease-out, margin-top 0.4s ease-out, opacity 0.3s ease-out, transform 0.3s ease-out, border-color 0.3s ease-out, box-shadow 0.3s ease-out;
}

.thg-chart-dropdown-content.active {
    max-height: 2000px;
    margin-top: 16px;
    padding: 24px;
    opacity: 1;
    transform: translateY(0);
    border-color: #E3E8E7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.thg-chart-header {
    margin-bottom: 24px;
    text-align: center;
}

.thg-chart-title {
    font-size: 24px;
    font-weight: 700;
    color: #212121;
    margin: 0 0 8px 0;
}

.thg-chart-description {
    font-size: 14px;
    color: #597D79;
    margin: 0;
}

.thg-chart-legends {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.thg-chart-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.thg-chart-legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.thg-chart-legend-label {
    font-size: 14px;
    color: #212121;
    font-weight: 500;
}

.thg-chart-legend-highlighted .thg-chart-legend-label {
    font-weight: 700;
    color: #597D79;
}

.thg-chart-table-container {
    margin-top: 20px;
}

.thg-chart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.thg-chart-table thead {
    background-color: #265B92;
}

.thg-chart-table th {
    padding: 12px;
    text-align: left;
    color: #FFFFFF;
    font-weight: 600;
}

.thg-chart-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #E3E8E7;
    color: #212121;
}

.thg-chart-table tbody tr:last-child td {
    border-bottom: none;
}

.thg-chart-canvas-container {
    position: relative;
    height: 400px;
    width: 100%;
    overflow: visible;
}

.thg-chart-canvas-container canvas {
    max-height: 400px;
}

/* Filters & Price Alert Row */
.thg-filter-container {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
}

.thg-filter-buttons {
    display: inline-flex;
    background-color: #E3E8E7;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Modifier when no year filter buttons are shown */
.thg-filter-container.thg-filter-container--no-filters {
    justify-content: center;
}

/* Price Alert Button (pinned to right on desktop) */
.thg-price-alert-button {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background-color: #597D79;
    color: #FFFFFF;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .thg-filter-container {
        justify-content: center;
    }
    
    .thg-price-alert-button {
        position: absolute;
        right: 0;
    }

    /* Center price alert when there are no filter buttons */
    .thg-filter-container.thg-filter-container--no-filters .thg-price-alert-button {
        position: static;
        margin-top: 0;
    }
}

@media (max-width: 767px) {
    .thg-filter-container {
        flex-direction: column;
        align-items: center;
    }
    
    .thg-price-alert-button {
        margin-top: 4px;
    }
}

.thg-price-alert-button:hover {
    background-color: #405B57;
}

.thg-price-alert-button svg {
    stroke: currentColor;
    width: 16px;
    height: 16px;
}

.thg-filter-button {
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: #212121;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.thg-filter-button:hover {
    background-color: rgba(89, 125, 121, 0.1);
    color: #212121 !important;
}

.thg-filter-button.active {
    background-color: #597D79;
    color: #FFFFFF;
    font-weight: 600;
}
.thg-filter-button.active:hover {
    color: #FFFFFF !important;
}

/* Search Bar */
.thg-search-container {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    align-items: stretch;
}

.thg-search-input-container {
    flex: 1;
    display: flex;
    align-items: center;
    background-color: #E3E8E7;
    border: 1px solid #E3E8E7;
    border-radius: 8px;
    padding: 10px 12px;
    gap: 8px;
    min-height: 44px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.thg-search-icon {
    color: #597D79;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.thg-search-input {
    flex: 1;
    border: none !important;
    background-color: #E3E8E7 !important;
    font-size: 16px;
    color: #212121;
    outline: none !important;
    box-shadow: none !important;
    width: 100%;
}

.thg-search-input:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.thg-search-input::placeholder {
    color: #597D79;
}

.thg-clear-button {
    padding: 10px 16px;
    background-color: #E3E8E7;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #597D79;
    cursor: pointer;
    transition: background-color 0.2s;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.thg-clear-button:hover {
    background-color: #B0C1BE;
}

/* Price Alert Button Container - removed, button now in filter container */

/* Providers Table (Desktop) */
.thg-providers-table-container {
    display: none;
    overflow-x: auto;
}

@media (min-width: 768px) {
    .thg-providers-table-container {
        display: block;
    }
}

.thg-providers-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 20px;
    font-size: 14px;
    border: none;
}

.thg-providers-table thead {
    background-color: #212121;
}

.thg-providers-table thead tr th:first-child {
    border-radius: 8px 0 0 8px;
}

.thg-providers-table thead tr th:last-child {
    border-radius: 0 8px 8px 0;
}

.thg-providers-table th {
    padding: 8px 10px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #FFFFFF;
    white-space: nowrap;
    border: none;
}

.thg-providers-table th:last-child {
    text-align: center;
}

.thg-providers-table td {
    padding: 10px;
    vertical-align: middle;
    font-size: 13px;
    background-color: #FFFFFF;
    border: none;
}

/* Card-like row styling */
.thg-providers-table tbody tr {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.thg-providers-table tbody tr td:first-child {
    border-radius: 12px 0 0 12px;
}

.thg-providers-table tbody tr td:last-child {
    border-radius: 0 12px 12px 0;
}

.thg-providers-table tbody tr:hover td {
    background-color: #F6F8F7;
}

.thg-providers-table tbody tr.thg-sponsored-row td {
    background-color: #F0F8F0;
}

.thg-providers-table tbody tr.thg-sponsored-row .thg-price-badge {
    background-color: #FFFFFF;
}

.thg-provider-cell {
    min-width: 140px;
    max-width: 180px;
    position: relative;
}

.thg-provider-name-cell {
    display: flex;
    align-items: center;
}

.thg-provider-name-cell > span {
    font-weight: 600;
}

.thg-provider-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Logo Column */
.thg-logo-cell {
    vertical-align: middle;
    text-align: center;
}

.thg-provider-logo-small {
    width: 80px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.thg-logo-placeholder {
    width: 80px;
    background-color: #597D79;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: bold;
    margin: 0 auto;
}

/* Badges positioned absolutely on the row */
.thg-badges-cell {
    position: absolute;
    top: -10px;
    left: 16px;
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    z-index: 1;
}

.thg-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
}

.thg-badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.thg-sponsored-badge {
    background-color: #FF6B35;
    color: #FFFFFF;
}

.thg-sponsored-badge svg {
    stroke: #FFFFFF;
}

.thg-reminder-badge {
    background-color: #4C8F73;
    color: #FFFFFF;
}

.thg-reminder-badge svg {
    stroke: #FFFFFF;
}

.thg-price-cell {
    white-space: nowrap;
}

.thg-price-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    background-color: #F6F8F7;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
    color: #212121;
}

/* Rating column (table + modal) */
.thg-rating-cell {
    white-space: nowrap;
    vertical-align: middle;
}

.thg-rating-cell .thg-rating-inner {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.thg-rating-cell .thg-rating-stars {
    display: inline-flex;
    align-items: stretch;
    gap: 0;
}

.thg-rating-cell .thg-rating-star-box {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.thg-rating-cell .thg-rating-star-box .thg-rating-star-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.thg-rating-cell .thg-rating-value {
    font-size: 13px;
    font-weight: 600;
    color: #212121;
}

.thg-rating-cell .thg-rating-empty {
    color: #9e9e9e;
}

.thg-providers-table td[data-col="duration"] {
    max-width: 100px;
}

.thg-providers-table td[data-col="zusatzinfo"] {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.thg-actions-cell {
    vertical-align: middle;
}

.thg-actions-wrapper {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: end;
    width: 100%;
    height: 100%;
    white-space: nowrap;
}

.thg-action-link-button {
    width: 100%;
}

.thg-action-link-button,
.thg-action-details-button {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    text-align: center;
}

.thg-action-link-button {
    background-color: #212121;
    color: #FFFFFF;
}

.thg-action-link-button:hover {
    background-color: #405B57;
}

.thg-action-details-button {
    background-color: #597D79;
    color: #FFFFFF;
}

.thg-action-details-button:hover {
    background-color: #405B57;
}

/* Providers Cards (Mobile) */
.thg-providers-cards-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 768px) {
    .thg-providers-cards-container {
        display: none;
    }
}

.thg-provider-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.thg-provider-card.thg-sponsored-card {
    background-color: #F0F8F0;
}
.thg-provider-card.thg-sponsored-card .thg-price-badge {
    background-color: #FFFFFF;
}

.thg-card-badges {
    position: absolute;
    top: -8px;
    left: 16px;
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    z-index: 1;
}

.thg-card-main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.thg-card-left-section {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 12px;
}

.thg-card-logo {
    width: 85px;
    height: 60px;
    object-fit: contain;
}

.thg-card-logo-placeholder {
    width: 40px;
    height: 40px;
    background-color: #597D79;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: bold;
}

.thg-card-provider-name {
    font-size: 16px;
    font-weight: 600;
    color: #212121;
    flex: 1;
}

.thg-card-right-section {
    text-align: right;
}

.thg-card-price {
    font-size: 20px;
    font-weight: bold;
    color: #212121;
}

/* Price badge applies to both table and card views */
.thg-card-price.thg-price-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    background-color: #F6F8F7;
    border-radius: 20px;
    min-width: 80px;
    font-size: 18px;
    font-weight: bold;
    color: #212121;
}

.thg-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.thg-card-link-button,
.thg-card-details-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    gap: 8px;
}

.thg-card-link-button {
    background-color: #212121;
    color: #FFFFFF;
}

.thg-card-link-button:hover {
    background-color: #405B57;
}

.thg-card-details-button {
    background-color: #597D79;
    color: #FFFFFF;
}

.thg-card-details-button:hover {
    background-color: #405B57;
}

/* Empty State */
.thg-empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
    text-align: center;
}

.thg-empty-state.visible {
    display: flex;
}

.thg-empty-state svg {
    color: #597D79;
    margin-bottom: 16px;
    width: 48px;
    height: 48px;
}

.thg-empty-state p {
    font-size: 16px;
    color: #597D79;
    margin: 0;
}

/* Modal Overlay */
.thg-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 10000;
    overflow: hidden;
}

.thg-modal-overlay.visible {
    display: flex;
}

.thg-modal {
    background-color: #FFFFFF;
    border-radius: 16px;
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    position: relative;
    display: flex;
    flex-direction: column;
}

.thg-modal-wide {
    max-width: 800px;
}

.thg-modal-scroll {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px;
    flex: 1;
}

/* Two column layout for filter/provider selection */
.thg-selection-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.thg-selection-column {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.thg-selection-column > .thg-card {
    margin-bottom: 0;
}

.thg-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.thg-modal-title {
    font-size: 20px;
    font-weight: bold;
    color: #212121;
    flex: 1;
    margin: 0 16px 0 0;
}

.thg-modal-close {
    padding: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #597D79;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.thg-modal-close:hover {
    background-color: #E3E8E7;
    color: #212121;
}

.thg-modal-close svg {
    width: 24px;
    height: 24px;
}

.thg-modal-content {
    margin-bottom: 24px;
}

/* Info Cards */
.thg-info-card {
    display: flex;
    align-items: center;
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 12px;
    gap: 12px;
    background-color: #E3E8E7;
}

.thg-info-card.thg-active-info-card {
    background-color: rgba(76, 143, 115, 0.2);
}

.thg-info-card svg {
    color: #597D79;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.thg-info-card.thg-active-info-card svg {
    color: #4C8F73;
}

.thg-info-content {
    flex: 1;
}

.thg-info-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #212121;
}

.thg-info-card.thg-active-info-card .thg-info-title {
    color: #4C8F73;
}

.thg-info-subtitle {
    font-size: 14px;
    line-height: 20px;
    color: #597D79;
    margin: 0;
}

.thg-info-card.thg-active-info-card .thg-info-subtitle {
    color: #212121;
}

/* Cards in Modal */
.thg-card {
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 12px;
    background-color: #F6F8F7;
}

.thg-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.thg-card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #212121;
}

.thg-card-subtitle {
    font-size: 14px;
    line-height: 20px;
    color: #597D79;
    margin: 0 0 12px 0;
}

.thg-price-value {
    font-size: 24px;
    font-weight: bold;
    color: #212121;
}

/* Slider */
.thg-slider {
    width: 100%;
    height: 40px;
    margin: 8px 0;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

.thg-slider::-webkit-slider-runnable-track {
    background: #B0C1BE;
    height: 6px;
    border-radius: 3px;
}

.thg-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #597D79;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -9px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.thg-slider::-moz-range-track {
    background: #B0C1BE;
    height: 6px;
    border-radius: 3px;
}

.thg-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #597D79;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.thg-slider::-ms-track {
    background: #B0C1BE;
    height: 6px;
    border-radius: 3px;
    border: none;
    color: transparent;
}

.thg-slider::-ms-thumb {
    width: 24px;
    height: 24px;
    background: #597D79;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.thg-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #597D79;
}

/* Filter Selection in Modal */
.thg-filter-selection-list {
    display: flex;
    flex-direction: column;
}

.thg-filter-item {
    display: flex;
    align-items: center;
    padding: 0;
    border-bottom: 1px solid #E3E8E7;
}

.thg-filter-item:last-child {
    border-bottom: none;
}

.thg-filter-item-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 4px;
    cursor: pointer;
}

.thg-filter-item-label:hover {
    background-color: #F6F8F7;
}

.thg-filter-name-container {
    flex: 1;
    margin-right: 16px;
    font-size: 16px;
    font-weight: 500;
    color: #212121;
    cursor: pointer;
}

.thg-filter-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #597D79;
}

/* Provider Selection */
.thg-all-providers-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.thg-all-providers-text {
    flex: 1;
    margin-right: 16px;
}

.thg-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
}

.thg-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.thg-slider-switch {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #B0C1BE;
    transition: 0.3s;
    border-radius: 28px;
}

.thg-slider-switch:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: #FFFFFF;
    transition: 0.3s;
    border-radius: 50%;
}

.thg-switch input:checked + .thg-slider-switch {
    background-color: #597D79;
}

.thg-switch input:checked + .thg-slider-switch:before {
    transform: translateX(20px);
}

.thg-provider-selection-list {
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.thg-provider-selection-item {
    display: flex;
    align-items: center;
    padding: 0;
    border-bottom: 1px solid #F0F0F0;
}

.thg-provider-selection-item:last-child {
    border-bottom: none;
}

.thg-provider-selection-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 4px;
    padding-right: 12px;
    gap: 12px;
    cursor: pointer;
}

.thg-provider-selection-label:hover {
    background-color: #F6F8F7;
}

.thg-provider-selection-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.thg-provider-selection-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
}

.thg-provider-selection-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #597D79;
}

/* Email Input */
.thg-email-input-container {
    display: flex;
    align-items: center;
    background-color: #E3E8E7;
    border-radius: 8px;
    padding: 12px;
    margin-top: 12px;
    gap: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.thg-email-input-container svg {
    color: #597D79;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.thg-email-input {
    flex: 1;
    border: none !important;
    background: #E3E8E7 !important;
    background-color: #E3E8E7 !important;
    font-size: 16px;
    color: #212121;
    outline: none !important;
    box-shadow: none !important;
    min-width: 0;
    box-sizing: border-box;
}

.thg-email-input:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.thg-email-input::placeholder {
    color: #597D79;
}

/* Modal Actions */
.thg-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#thg-update-delete-buttons {
    display: none;
    gap: 12px;
}

#thg-update-delete-buttons.visible {
    display: flex !important;
}

#thg-update-delete-buttons .thg-action-button {
    flex: 1;
}

.thg-action-button {
    height: 48px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.thg-primary-button {
    background-color: #597D79;
    color: #FFFFFF;
}

.thg-primary-button:hover:not(:disabled) {
    background-color: #405B57;
}

.thg-secondary-button {
    background-color: #E3E8E7;
    color: #212121;
}

.thg-secondary-button:hover:not(:disabled) {
    background-color: #B0C1BE;
}

.thg-error-button {
    background-color: #D9534F;
    color: #FFFFFF;
}

.thg-error-button:hover:not(:disabled) {
    background-color: #C9302C;
}

.thg-action-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Reminder Modal Specific */
.thg-description {
    font-size: 14px;
    line-height: 20px;
    margin: 0 0 20px 0;
    color: #597D79;
}

.thg-input-container {
    margin-bottom: 16px;
}

.thg-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #212121;
}

.thg-input {
    width: 100%;
    height: 48px;
    border: none !important;
    border-radius: 8px !important;
    padding: 0 12px;
    font-size: 16px;
    color: #212121;
    background-color: #E3E8E7 !important;
    outline: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

.thg-input:focus {
    border: none !important;
    outline: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.thg-provider-text {
    font-size: 16px;
    font-weight: 500;
    color: #212121;
    margin: 0;
}

.thg-date-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.thg-date-input {
    flex: 1;
    height: 48px;
    border: none !important;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 16px;
    color: #212121;
    background-color: #E3E8E7 !important;
    outline: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.thg-date-input:focus {
    border: none !important;
    outline: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.thg-clear-date-button {
    width: 36px;
    height: 36px;
    border-radius: 18px;
    border: 1px solid #B0C1BE;
    background-color: #E3E8E7;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #597D79;
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1;
}

.thg-clear-date-button.visible {
    display: flex;
}

.thg-clear-date-button:hover {
    background-color: #B0C1BE;
}

.thg-hint-text {
    font-size: 12px;
    margin-top: 6px;
    font-style: italic;
    color: #597D79;
}

.thg-reminder-info-card {
    border: 1px solid #B0C1BE;
    border-radius: 10px;
    padding: 10px 12px;
    background-color: #F6F8F7;
}

.thg-info-card-label {
    font-size: 12px;
    margin: 0 0 4px 0;
    font-weight: 500;
    color: #597D79;
}

.thg-info-card-value {
    font-size: 16px;
    font-weight: 600;
    color: #212121;
    margin: 0;
}

.thg-feedback-container {
    margin-bottom: 16px;
    padding: 0 4px;
    text-align: center;
    font-size: 14px;
    line-height: 20px;
    display: none;
}

.thg-feedback-container.visible {
    display: block;
}

.thg-feedback-container.success {
    color: #4C8F73;
}

.thg-feedback-container.error {
    color: #D9534F;
}

/* Provider Details Modal */
.thg-details-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #E3E8E7;
}

.thg-details-logo {
    width: 60px;
    height: 45px;
    object-fit: contain;
    border-radius: 6px;
}

.thg-details-provider-name {
    font-size: 18px;
    font-weight: 600;
    color: #212121;
}

/* Provider rating (Trustpilot-style: square boxes, star inside, decimal-accurate) */
.thg-detail-row-rating .thg-detail-value-rating {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.thg-rating-stars {
    display: inline-flex;
    align-items: stretch;
    gap: 0;
}

.thg-rating-star-box {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.thg-rating-star-box .thg-rating-star-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.thg-rating-value {
    font-size: 14px;
    font-weight: 600;
    color: #212121;
}

.thg-details-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.thg-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.thg-detail-label {
    font-size: 14px;
    font-weight: 500;
    color: #597D79;
}

.thg-detail-value {
    flex: 1;
    font-size: 14px;
    font-weight: 400;
    text-align: right;
    color: #212121;
}

/* Hidden by filter (JS controlled) */
.thg-provider-row[data-hidden="true"],
.thg-provider-card[data-hidden="true"] {
    display: none !important;
}

/* Responsive */
@media (max-width: 767px) {
    .thg-container {
        padding: 0px;
        margin: 0px 0px !important;
    }

    .thg-logo {
        max-width: 100px;
    }

    .thg-app-download-notice {
        background-color: #F5F7F6 !important;
        margin: 16px 0 20px 0;
        padding: 12px;
    }

    .thg-app-download-text {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .thg-app-store-icon {
        height: 36px;
    }

    .thg-chart-dropdown-toggle {
        padding: 12px 16px;
        font-size: 14px;
    }

    .thg-chart-title {
        font-size: 20px;
    }

    .thg-chart-description {
        font-size: 13px;
    }

    .thg-chart-legends {
        gap: 16px;
        margin: 16px 0;
    }

    .thg-chart-legend-color {
        width: 16px;
        height: 16px;
    }

    .thg-chart-legend-label {
        font-size: 13px;
    }

    .thg-chart-canvas-container {
        height: 300px;
    }

    .thg-chart-canvas-container canvas {
        max-height: 300px;
    }

    .thg-search-container {
        flex-wrap: wrap;
    }
    
    .thg-card-badges {
        left: auto;
        right: 16px;
    }

    .thg-modal {
        padding: 16px;
        max-width: 99%;
        margin: 10px auto;
    }
    
    .thg-selection-row {
        flex-direction: column;
        margin-bottom: 16px;
    }
    
    .thg-selection-column {
        min-width: 100%;
    }
    
    .thg-selection-column > .thg-card {
        margin-bottom: 16px;
    }
    
    #thg-update-delete-buttons.visible {
        flex-direction: column;
    }
    
    #thg-update-delete-buttons .thg-action-button {
        width: 100%;
    }
    
    #thg-submit-reminder-button {
        font-size: 14px;
    }
}

/* Scrollbar Styling */
.thg-provider-selection-list::-webkit-scrollbar,
.thg-modal-scroll::-webkit-scrollbar {
    width: 8px;
}

.thg-provider-selection-list::-webkit-scrollbar-track,
.thg-modal-scroll::-webkit-scrollbar-track {
    background: #F0F0F0;
    border-radius: 4px;
}

.thg-provider-selection-list::-webkit-scrollbar-thumb,
.thg-modal-scroll::-webkit-scrollbar-thumb {
    background: #B0C1BE;
    border-radius: 4px;
}

.thg-provider-selection-list::-webkit-scrollbar-thumb:hover,
.thg-modal-scroll::-webkit-scrollbar-thumb:hover {
    background: #597D79;
}
