/* --- CSS til TV-Pakke Viser --- */
    .tv-pakker-container {
        --brand-green: #27ae60;
        --light-gray: #f7f8fa;
        --medium-gray: #e0e0e0;
        --dark-gray: #333;
        --text-color: #555;
        --border-radius: 8px;
        --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        padding: 0 15px;
    }
    .tv-pakker-container .card { background-color: #fff; border: 1px solid var(--medium-gray); border-radius: var(--border-radius); box-shadow: var(--card-shadow); padding: 16px; display: flex; flex-direction: column; gap: 12px; position: relative; }
    .tv-pakker-container .card-header { display: flex; align-items: flex-start; gap: 12px; }
    .tv-pakker-container .card-logo { width: 50px; height: 50px; object-fit: contain; border: 1px solid #eee; border-radius: var(--border-radius); padding: 5px; flex-shrink: 0; }
    .tv-pakker-container .card-title-section .card-title-text { font-size: 18px; color: var(--dark-gray); margin: 0 0 4px 0; font-weight: bold; }
    .tv-pakker-container .card-rating { font-size: 14px; color: #f39c12; display: flex; align-items: center; gap: 4px; }
    .tv-pakker-container .card-rating span { color: var(--text-color); }
    .tv-pakker-container .card-channels { font-size: 14px; margin-top: 4px; }
    .tv-pakker-container .card-channels .channel-link { color: #007bff; text-decoration: none; font-weight: 500; }
    .tv-pakker-container .card-channels .channel-link:hover { text-decoration: underline; }
    .tv-pakker-container .card-price-block { background-color: var(--light-gray); border-radius: var(--border-radius); padding: 12px; text-align: center; }
    .tv-pakker-container .card-price { font-size: 32px; font-weight: bold; color: var(--dark-gray); }
    .tv-pakker-container .card-price-sub { font-size: 13px; color: var(--text-color); margin-top: 2px; text-transform: capitalize; }
    .tv-pakker-container .card-features { list-style: none; padding: 0; margin: 0; font-size: 14px; display: flex; flex-direction: column; gap: 8px; }
    .tv-pakker-container .card-features li { display: flex; align-items: flex-start; gap: 8px; }
    .tv-pakker-container .card-features li::before { content: '✓'; color: var(--brand-green); font-weight: bold; line-height: 1.4; }
    .tv-pakker-container .card-streamers { background-color: var(--light-gray); border-radius: var(--border-radius); padding: 12px; }
    .tv-pakker-container .card-streamers .streamers-title { font-size: 11px; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 10px 0; }
    .tv-pakker-container .card-streamers-grid { display: flex; flex-wrap: wrap; gap: 6px; }
    .tv-pakker-container .streamer-pill { background-color: #fff; border: 1px solid #ddd; border-radius: 4px; padding: 4px 10px; font-size: 13px; font-weight: 500; }
    .tv-pakker-container .streamer-pill.more-btn { background-color: #eef3ff; color: #007bff; border-color: #ccd9ff; cursor: pointer; transition: all 0.2s; }
    .tv-pakker-container .streamer-pill.more-btn:hover { background-color: #dfe7ff; }
    .tv-pakker-container .streamer-empty { font-size: 13px; color: #999; font-style: italic; }
    .tv-pakker-container .card-tags { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; }
    .tv-pakker-container .info-tag { background-color: var(--light-gray); border-radius: 4px; padding: 4px 8px; display: flex; align-items: center; gap: 5px; }
    .tv-pakker-container .card-cta-button { margin-top: auto; display: block; width: 100%; background-color: var(--brand-green); color: white; text-align: center; padding: 12px 0; border-radius: var(--border-radius); font-weight: bold; font-size: 16px; text-decoration: none; transition: background-color 0.2s; box-sizing: border-box; }
    .tv-pakker-container .card-cta-button:hover { background-color: #219653; }
    .last-updated-text { font-size: 11px; color: #999; text-align: center; margin-top: 10px; font-weight: 400; }

    /* --- UI til Modals --- */
    :root {
        --filter-brand-color: #27ae60;
        --filter-primary-text: #333;
        --filter-secondary-text: #555;
        --filter-border-color: #e0e0e0;
        --filter-background-light: #f7f8fa;
        --filter-overlay-bg: rgba(0, 0, 0, 0.5);
    }
    .filter-sticky-header { 
        background-color: rgba(255, 255, 255, 0.95); 
        backdrop-filter: blur(10px); 
        position: sticky; 
        top: 0; 
        z-index: 5; /* FIX: Ændret fra 99 til 5 for at fixe dropdown */
        padding: 10px 15px; 
        border-bottom: 1px solid var(--filter-border-color); 
        margin-bottom: 20px; 
        display: flex; 
        justify-content: center; 
    }
    .filter-trigger-btn { display: inline-flex; align-items: center; gap: 8px; background-color: var(--filter-background-light); border: 1px solid var(--filter-border-color); padding: 10px 16px; border-radius: 50px; font-size: 15px; font-weight: 600; color: var(--filter-primary-text); cursor: pointer; transition: background-color 0.2s; }
    .filter-trigger-btn:hover { background-color: #f0f1f3; }
    .filter-count-badge { background-color: var(--filter-brand-color); color: white; font-size: 12px; font-weight: bold; border-radius: 50%; width: 22px; height: 22px; display: inline-flex; justify-content: center; align-items: center; margin-left: 4px; }
    
    #filter-modal-overlay, #streamer-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--filter-overlay-bg); z-index: 1000; display: flex; justify-content: center; align-items: flex-end; opacity: 0; visibility: hidden; transition: opacity 0.3s ease; }
    .hidden { display: none !important; }
    #filter-modal-overlay.active, #streamer-modal-overlay.active { opacity: 1; visibility: visible; }
    
    #filter-modal-content, #streamer-modal-content { background: #fff; width: 100%; max-width: 100%; max-height: 90vh; display: flex; flex-direction: column; border-top-left-radius: 16px; border-top-right-radius: 16px; transform: translateY(100%); transition: transform 0.3s ease-out; box-shadow: 0 -5px 20px rgba(0,0,0,0.1); }
    #filter-modal-overlay.active #filter-modal-content, #streamer-modal-overlay.active #streamer-modal-content { transform: translateY(0); }
    
    .filter-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--filter-border-color); flex-shrink: 0; }
    .filter-modal-header h3 { margin: 0; font-size: 18px; color: var(--filter-primary-text); }
    .close-btn { background: none; border: none; cursor: pointer; padding: 4px; color: var(--filter-secondary-text); }
    .filter-modal-body { overflow-y: auto; padding: 20px; }
    .filter-section { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid #f0f0f0; }
    .filter-section:last-child { border-bottom: none; margin-bottom: 0; }
    .filter-section-title { font-weight: bold; margin-bottom: 12px; font-size: 16px; display: block; }
    .filter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
    .filter-list { display: flex; flex-direction: column; gap: 10px; }
    .filter-grid label, .filter-list label { display: flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; padding: 8px; border-radius: 6px; transition: background-color 0.2s; }
    .filter-grid label:hover, .filter-list label:hover { background-color: var(--filter-background-light); }
    input[type="checkbox"] { width: 1.2em; height: 1.2em; accent-color: var(--filter-brand-color); }
    .select-wrapper { position: relative; }
    .sort-control select { width: 100%; padding: 12px 15px; font-size: 16px; border-radius: 8px; border: 1px solid var(--filter-border-color); background-color: #fff; }
    .filter-modal-footer { display: flex; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--filter-border-color); background-color: #fff; flex-shrink: 0; }
    .primary-btn { background-color: var(--filter-brand-color); color: white; }
    .primary-btn:hover { background-color: #219653; }
    .secondary-btn { background-color: var(--filter-background-light); color: var(--filter-primary-text); border: 1px solid var(--filter-border-color); }
    .secondary-btn:hover { background-color: #e9eaec; }
    .filter-modal-footer button { flex-grow: 1; padding: 14px; font-size: 16px; font-weight: bold; border-radius: 8px; border: none; cursor: pointer; transition: background-color 0.2s; }

    @media (min-width: 768px) {
        .tv-pakker-container { padding: 0 25px; }
        #filter-modal-overlay, #streamer-modal-overlay { align-items: center; }
        #filter-modal-content, #streamer-modal-content { transform: translateY(0) scale(0.9); opacity: 0; transition: transform 0.3s ease, opacity 0.3s ease; border-radius: 12px; max-width: 600px; max-height: 80vh; }
        #filter-modal-overlay.active #filter-modal-content, #streamer-modal-overlay.active #streamer-modal-content { transform: translateY(0) scale(1); opacity: 1; }
    }

/* --- Plugin wrapper + ekstra felter fra shortcode --- */
.tv-pakker-wrapper { width: 100%; }
.tv-pakker-wrapper .card { position: relative; }
.tv-pakker-wrapper .topvalg-card {
    border: 2px solid #16a34a;
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.14);
}
.tv-pakker-wrapper .topvalg-badge {
    position: absolute;
    top: -13px;
    right: 18px;
    background: #16a34a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    padding: 8px 12px;
    border-radius: 999px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}
.tv-pakker-wrapper .card-minimum-price {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 7px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.2;
}
.tv-pakker-wrapper .card-minimum-price strong {
    color: #111827;
    font-weight: 700;
}

/* Samme modal-design som før, men med class selectors så flere shortcodes ikke konflikter. */
.filter-modal-overlay, .streamer-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--filter-overlay-bg); z-index: 1000; display: flex; justify-content: center; align-items: flex-end; opacity: 0; visibility: hidden; transition: opacity 0.3s ease; }
.filter-modal-overlay.active, .streamer-modal-overlay.active { opacity: 1; visibility: visible; }
.filter-modal-content, .streamer-modal-content { background: #fff; width: 100%; max-width: 100%; max-height: 90vh; display: flex; flex-direction: column; border-top-left-radius: 16px; border-top-right-radius: 16px; transform: translateY(100%); transition: transform 0.3s ease-out; box-shadow: 0 -5px 20px rgba(0,0,0,0.1); }
.filter-modal-overlay.active .filter-modal-content, .streamer-modal-overlay.active .streamer-modal-content { transform: translateY(0); }
.tv-pakker-wrapper input[type="checkbox"] { width: 1.2em; height: 1.2em; accent-color: var(--filter-brand-color); }
.tv-pakker-wrapper .filter-grid label, .tv-pakker-wrapper .filter-list label { margin: 0; }
.tv-pakker-wrapper button.streamer-pill { cursor: pointer; font-family: inherit; }
.tv-pakker-wrapper .filter-modal-footer button { font-family: inherit; }
.tv-pakker-wrapper .card-streamers-grid:empty::after { content: "Ingen tjenester inkluderet"; font-size: 13px; color: #999; font-style: italic; }
@media (min-width: 768px) {
    .filter-modal-overlay, .streamer-modal-overlay { align-items: center; }
    .filter-modal-content, .streamer-modal-content { transform: translateY(0) scale(0.9); opacity: 0; transition: transform 0.3s ease, opacity 0.3s ease; border-radius: 12px; max-width: 600px; max-height: 80vh; }
    .filter-modal-overlay.active .filter-modal-content, .streamer-modal-overlay.active .streamer-modal-content { transform: translateY(0) scale(1); opacity: 1; }
}
