/* Akasse Denmark Comparison frontend styles */
:root {
            --akf-primary: #1D346F; 
            --akf-primary-hover: #122147; 
            --akf-promo-bg: #E60309; 
            --akf-bg: #f9fbfd;
            --akf-border: #e2e8f0;
            --akf-text-dark: #2d3748;
            --akf-text-light: #718096;
            --akf-promo-text: #ffffff;
            --akf-badge-bg: #f1f5f9;
            --akf-star: #fbbf24;
            --akf-success: #16a34a;
        }
        
        .akf-wrapper {
            display: grid; grid-template-columns: 260px 1fr; gap: 30px;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            align-items: start; margin-top: 20px;
        }
        
        .akf-sidebar { background: #fff; padding: 25px; border-radius: 8px; border: 1px solid var(--akf-border); box-shadow: 0 2px 4px rgba(0,0,0,0.02); position: -webkit-sticky; position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; z-index: 10; }
        .akf-sidebar-title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--akf-text-dark); margin-bottom: 15px; border-bottom: 2px solid var(--akf-border); padding-bottom: 5px; }
        .akf-filter-group { margin-bottom: 30px; }
        
        .akf-checkbox-list { display: flex; flex-direction: column; gap: 10px; }
        .akf-checkbox-item { display: flex; align-items: center; cursor: pointer; font-size: 14px; color: var(--akf-text-dark); }
        .akf-checkbox-item input { margin-right: 10px; cursor: pointer; width: 16px; height: 16px; accent-color: var(--akf-primary); }
        
        .akf-top-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 20px; font-size: 14px; color: var(--akf-text-light); gap: 15px; }
        .akf-top-bar strong { color: var(--akf-text-dark); }
        .akf-sort-select { padding: 8px 15px; border: 1px solid var(--akf-border); border-radius: 6px; background: #fff; color: var(--akf-text-dark); cursor: pointer; font-size: 14px; }

        .akf-list { display: flex; flex-direction: column; gap: 20px; }
        .akf-card { background: #fff; border: 1px solid var(--akf-border); border-radius: 8px; padding: 25px 20px 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.03); display: grid; grid-template-columns: 180px 1fr 220px; gap: 25px; align-items: stretch; transition: all 0.2s ease; position: relative; }
        .akf-card:hover { border-color: var(--akf-primary); box-shadow: 0 6px 16px rgba(0,0,0,0.06); transform: translateY(-2px); }
        
        .akf-ribbon { position: absolute; top: -1px; left: 20px; background: var(--akf-promo-bg); color: var(--akf-promo-text); padding: 4px 12px; font-size: 11px; font-weight: 700; border-radius: 0 0 4px 4px; text-transform: uppercase; letter-spacing: 0.5px; }
        .akf-card-logo-col { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; }
        .akf-card-logo { max-width: 140px; max-height: 50px; object-fit: contain; }
        .akf-card-info-col { display: flex; flex-direction: column; justify-content: center; }
        .akf-title { font-size: 20px; font-weight: 800; color: var(--akf-text-dark); margin: 0 0 12px 0; }
        
        .akf-data-grid { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; font-size: 13px; color: var(--akf-text-dark); }
        .akf-data-label { font-weight: 600; color: var(--akf-text-light); }
        .akf-success-text { color: var(--akf-success); font-weight: 600; }
        
        .akf-tooltip-wrap { position: relative; display: inline-flex; align-items: center; gap: 4px; color: var(--akf-primary); font-weight: 600; cursor: pointer; border-bottom: 1px dashed var(--akf-primary); }
        .akf-tooltip-wrap:hover .akf-tooltip-text, .akf-tooltip-wrap:focus .akf-tooltip-text { visibility: visible; opacity: 1; transform: translateX(-50%) translateY(0); }
        .akf-tooltip-text { visibility: hidden; opacity: 0; width: 220px; max-width: 80vw; background-color: #1e293b; color: #fff; text-align: center; border-radius: 6px; padding: 10px 14px; position: absolute; z-index: 100; bottom: 130%; left: 50%; transform: translateX(-50%) translateY(5px); transition: opacity 0.2s, transform 0.2s; font-size: 12px; font-weight: 400; line-height: 1.4; box-shadow: 0 4px 10px rgba(0,0,0,0.15); white-space: normal; pointer-events: none; }
        .akf-tooltip-text::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -6px; border-width: 6px; border-style: solid; border-color: #1e293b transparent transparent transparent; }
        
        .akf-action-col { border-left: 1px solid var(--akf-border); padding-left: 25px; text-align: right; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; }
        .akf-price-label { font-size: 11px; text-transform: uppercase; color: var(--akf-text-light); letter-spacing: 0.5px; margin-bottom: 4px; }
        .akf-price-wrap { margin-bottom: 8px; }
        .akf-price-new { font-size: 32px; font-weight: 900; color: var(--akf-text-dark); line-height: 1; }
        .akf-price-unit { font-size: 14px; font-weight: 600; color: var(--akf-text-dark); }
        .akf-price-sub { font-size: 12px; font-weight: 600; color: var(--akf-text-dark); margin-bottom: 15px; }
        
        .akf-btn { display: block; width: 100%; background: var(--akf-primary); color: #fff !important; padding: 14px 10px; border-radius: 6px; font-weight: 800; text-decoration: none; text-transform: uppercase; letter-spacing: 0.5px; font-size: 15px; text-align: center; transition: opacity 0.2s; border: none; cursor: pointer; }
        .akf-btn:hover { background: var(--akf-primary-hover); opacity: 0.9; }
        .akf-btn-outline { background: transparent; color: var(--akf-primary) !important; border: 2px solid var(--akf-primary); margin-top: 15px;}
        .akf-btn-outline:hover { background: var(--akf-primary); color: #fff !important; }
        .akf-ad-label { font-size: 10px; color: var(--akf-text-light); margin-top: 6px; text-transform: uppercase; letter-spacing: 1px; }
        
        .akf-show-all-wrap { text-align: center; margin-top: 20px; }

        .akf-mobile-header { display: none; }
        @media (max-width: 992px) {
            .akf-wrapper { grid-template-columns: 1fr; gap: 20px;}
            .akf-card { grid-template-columns: 1fr; gap: 15px; padding: 35px 20px 20px; }
            .akf-ribbon { left: auto; right: 20px; border-radius: 0 0 4px 4px; }
            .akf-card-logo-col { border-bottom: 1px solid var(--akf-border); padding-bottom: 15px; flex-direction: row; justify-content: space-between; }
            .akf-action-col { border-left: none; padding-left: 0; align-items: center; text-align: center; border-top: 1px solid var(--akf-border); padding-top: 20px; margin-top: 5px; }
            .akf-top-bar { align-items: flex-start; flex-direction: column; }
            .akf-top-bar-controls { width: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
            .akf-mobile-header { display: block; position: sticky; bottom: 20px; z-index: 999; }
            .akf-mobile-toggle { width: 100%; background: var(--akf-text-dark); color: #fff; padding: 15px; text-align: center; font-weight: bold; border-radius: 8px; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.25); }
            .akf-sidebar { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 99999; border-radius: 0; padding: 30px; max-height: 100vh; }
            .akf-sidebar.is-open { display: block; }
            .akf-sidebar-close { font-size: 32px; cursor: pointer; line-height: 1; float: right; margin-top: -10px; color: var(--akf-text-dark); }
        }
.akf-table-container { width: 100%; overflow-x: auto; margin: 30px 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; box-shadow: 0 4px 12px rgba(0,0,0,0.05); border-radius: 8px; }
        .akf-table { width: 100%; min-width: 900px; border-collapse: collapse; background: #fff; text-align: left; }
        .akf-table th { background: #1D346F; color: #fff; padding: 16px; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
        .akf-table td { padding: 16px; border-bottom: 1px solid #e2e8f0; vertical-align: middle; font-size: 14px; color: #2d3748; }
        .akf-table tbody tr:hover { background-color: #f8fafc; }
        .akf-table-logo { max-width: 100px; max-height: 40px; object-fit: contain; display: block; }
        .akf-table-btn { background: #1D346F; color: #fff !important; padding: 8px 16px; border-radius: 4px; text-decoration: none; font-weight: 600; font-size: 13px; display: inline-block; transition: 0.2s; text-transform: uppercase; white-space: nowrap; }
        .akf-table-btn:hover { background: #122147; }
        .akf-table-bold { font-weight: 700; }
        .akf-table-success { color: #16a34a; font-weight: bold; }
.akf-single-card-wrap {
            --akf-primary: #1D346F; 
            --akf-primary-hover: #122147; 
            --akf-promo-bg: #E60309; 
            --akf-border: #e2e8f0;
            --akf-text-dark: #2d3748;
            --akf-text-light: #718096;
            --akf-promo-text: #ffffff;
            --akf-success: #16a34a;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            width: 100%; /* SIKRER FULD BREDDE */
            display: block; /* SIKRER FULD BREDDE */
            margin: 30px 0;
        }
        
        .akf-single-card-wrap .akf-card { background: #fff; border: 1px solid var(--akf-border); border-radius: 8px; padding: 25px 20px 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); display: grid; grid-template-columns: 180px 1fr 220px; gap: 25px; align-items: stretch; position: relative; }
        .akf-single-card-wrap .akf-ribbon { position: absolute; top: -1px; left: 20px; background: var(--akf-promo-bg); color: var(--akf-promo-text); padding: 4px 12px; font-size: 11px; font-weight: 700; border-radius: 0 0 4px 4px; text-transform: uppercase; letter-spacing: 0.5px; }
        .akf-single-card-wrap .akf-card-logo-col { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; }
        .akf-single-card-wrap .akf-card-logo { max-width: 140px; max-height: 50px; object-fit: contain; }
        .akf-single-card-wrap .akf-card-info-col { display: flex; flex-direction: column; justify-content: center; }
        .akf-single-card-wrap .akf-title { font-size: 20px; font-weight: 800; color: var(--akf-text-dark); margin: 0 0 12px 0; }
        .akf-single-card-wrap .akf-data-grid { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; font-size: 13px; color: var(--akf-text-dark); }
        .akf-single-card-wrap .akf-data-label { font-weight: 600; color: var(--akf-text-light); }
        .akf-single-card-wrap .akf-success-text { color: var(--akf-success); font-weight: 600; }
        
        .akf-single-card-wrap .akf-tooltip-wrap { position: relative; display: inline-flex; align-items: center; gap: 4px; color: var(--akf-primary); font-weight: 600; cursor: pointer; border-bottom: 1px dashed var(--akf-primary); }
        .akf-single-card-wrap .akf-tooltip-wrap:hover .akf-tooltip-text { visibility: visible; opacity: 1; transform: translateX(-50%) translateY(0); }
        .akf-single-card-wrap .akf-tooltip-text { visibility: hidden; opacity: 0; width: 220px; max-width: 80vw; background-color: #1e293b; color: #fff; text-align: center; border-radius: 6px; padding: 10px 14px; position: absolute; z-index: 100; bottom: 130%; left: 50%; transform: translateX(-50%) translateY(5px); transition: opacity 0.2s, transform 0.2s; font-size: 12px; font-weight: 400; line-height: 1.4; box-shadow: 0 4px 10px rgba(0,0,0,0.15); white-space: normal; pointer-events: none; }
        .akf-single-card-wrap .akf-tooltip-text::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -6px; border-width: 6px; border-style: solid; border-color: #1e293b transparent transparent transparent; }

        .akf-single-card-wrap .akf-action-col { border-left: 1px solid var(--akf-border); padding-left: 25px; text-align: right; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; }
        .akf-single-card-wrap .akf-price-label { font-size: 11px; text-transform: uppercase; color: var(--akf-text-light); letter-spacing: 0.5px; margin-bottom: 4px; }
        .akf-single-card-wrap .akf-price-wrap { margin-bottom: 8px; }
        .akf-single-card-wrap .akf-price-new { font-size: 32px; font-weight: 900; color: var(--akf-text-dark); line-height: 1; }
        .akf-single-card-wrap .akf-price-unit { font-size: 14px; font-weight: 600; color: var(--akf-text-dark); }
        .akf-single-card-wrap .akf-price-sub { font-size: 12px; font-weight: 600; color: var(--akf-text-dark); margin-bottom: 15px; }
        
        .akf-single-card-wrap .akf-btn { display: block; width: 100%; background: var(--akf-primary); color: #fff !important; padding: 14px 10px; border-radius: 6px; font-weight: 800; text-decoration: none; text-transform: uppercase; letter-spacing: 0.5px; font-size: 15px; text-align: center; transition: opacity 0.2s; border: none; }
        .akf-single-card-wrap .akf-btn:hover { background: var(--akf-primary-hover); opacity: 0.9; }
        .akf-single-card-wrap .akf-ad-label { font-size: 10px; color: var(--akf-text-light); margin-top: 6px; text-transform: uppercase; letter-spacing: 1px; }

        @media (max-width: 768px) {
            .akf-single-card-wrap .akf-card { grid-template-columns: 1fr; gap: 15px; padding: 35px 20px 20px; }
            .akf-single-card-wrap .akf-ribbon { left: auto; right: 20px; border-radius: 0 0 4px 4px; }
            .akf-single-card-wrap .akf-card-logo-col { border-bottom: 1px solid var(--akf-border); padding-bottom: 15px; flex-direction: row; justify-content: space-between; }
            .akf-single-card-wrap .akf-action-col { border-left: none; padding-left: 0; align-items: center; text-align: center; border-top: 1px solid var(--akf-border); padding-top: 20px; margin-top: 5px; }
        }

/* Sticky CTA */
.tvcta-bar {
  position: fixed; 
  bottom: 0; 
  left: 0; 
  width: 100%; /* Mere skudsikkert på mobil end inset */
  box-sizing: border-box;
  z-index: 99999; /* Hævet lidt for at undgå konflikter med WP mobile menuer */
  display: flex; 
  align-items: center; 
  gap: 12px;
  padding: 10px 14px 24px 14px; /* Samlet padding */
  background: rgba(15, 23, 42, .92); /* semitransparent mørk */
  backdrop-filter: saturate(120%) blur(2px);
  -webkit-backdrop-filter: saturate(120%) blur(2px); /* Vigtigt for iOS Safari */
  color: #fff; 
  font: 14px/1.35 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  box-shadow: 0 -4px 28px rgba(2, 6, 23, .18); /* Skyggen vendt, så den ses i toppen */
  transform: translateY(110%); 
  opacity: 0; 
  transition: transform .35s ease, opacity .35s ease;
}

.tvcta-bar.tvcta-show { 
  transform: translateY(0); 
  opacity: 1; 
}

.tvcta-logo { 
  width: 40px; 
  height: auto; 
  flex: 0 0 auto; 
  border-radius: 6px; 
  background: #fff; 
  padding: 3px; 
}

.tvcta-copy { 
  min-width: 0; 
  display: flex; 
  flex-direction: column; 
  gap: 2px; 
}

.tvcta-title { 
  font-weight: 700; 
  font-size: 15px; 
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis; 
}

.tvcta-sub { 
  font-weight: 600; 
  opacity: .9; 
  font-size: 13px; 
}

.tvcta-action {
  margin-left: auto;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.tvcta-btn {
  flex: 0 0 auto; 
  text-decoration: none; 
  font-weight: 700;
  padding: 9px 12px; 
  border-radius: 10px; 
  background: #14a44d; 
  color: #fff;
  box-shadow: 0 4px 14px rgba(20, 164, 77, .35);
  position: relative;
}

.tvcta-btn:focus { 
  outline: 2px solid rgba(255, 255, 255, 0.3); 
  outline-offset: 2px; 
}

.tvcta-ad-label {
  font-size: 10px;
  line-height: 1;
  color: #fff;
  opacity: .75;
  letter-spacing: .5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.tvcta-close {
  border: 0; 
  background: transparent; 
  color: #fff; 
  opacity: .75;
  font-size: 20px; 
  line-height: 1; 
  cursor: pointer; 
  padding: 6px;
  margin-left: 8px; 
  flex: 0 0 auto;
}

.tvcta-close:hover { 
  opacity: 1; 
}

@media (min-width: 860px) {
  .tvcta-bar {
    bottom: 16px; 
    left: 50%; 
    width: min(980px, calc(100vw - 32px)); 
    border-radius: 14px;
    transform: translate(-50%, 110%);
  }
  .tvcta-bar.tvcta-show { 
    transform: translate(-50%, 0); 
  }
}

@media (prefers-reduced-motion: reduce) {
  .tvcta-bar { 
    transition: none; 
  }
}