/* ==========================================================================
   BKK Credit Compare - Frontend v1.1.0
   Tre stilar: editorial, magazine, compact + related-grid
   Färgschema: Klassisk fintech (bästa-kreditkortet.se)
   ========================================================================== */

.bkkc-listing {
    --bkkc-primary: var(--bkk-primary, #062946);
    --bkkc-primary-dark: var(--bkk-primary-dark, #03182b);
    --bkkc-accent: var(--bkk-accent, #1968b8);
    --bkkc-accent-dark: var(--bkk-accent-dark, #134e8c);
    --bkkc-green: var(--bkk-green, #0d7d4f);
    --bkkc-amber: var(--bkk-amber, #b45309);
    --bkkc-amber-light: var(--bkk-amber-light, #fdf6e7);
    --bkkc-bg: var(--bkk-bg, #ffffff);
    --bkkc-bg-soft: var(--bkk-bg-soft, #f7f9fc);
    --bkkc-bg-warm: var(--bkk-bg-warm, #eef2f8);
    --bkkc-border: var(--bkk-border, #dce3ed);
    --bkkc-text: var(--bkk-text, #1a1f2e);
    --bkkc-text-soft: var(--bkk-text-soft, #5a6275);
    --bkkc-text-strong: var(--bkk-text-strong, #062946);
    --bkkc-radius: 8px;
    --bkkc-radius-lg: 12px;
    --bkkc-shadow: 0 1px 3px rgba(6, 41, 70, 0.08), 0 1px 2px rgba(6, 41, 70, 0.04);
    --bkkc-shadow-hover: 0 8px 24px rgba(6, 41, 70, 0.12);
    font-family: inherit;
}

/* Disclosure */
.bkkc-disclosure {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--bkkc-bg-warm);
    border-left: 3px solid var(--bkkc-accent);
    padding: 12px 16px;
    margin: 0 0 1.8em;
    border-radius: 0 var(--bkkc-radius) var(--bkkc-radius) 0;
    font-size: 0.92em;
    color: var(--bkkc-text);
    line-height: 1.5;
}
.bkkc-disclosure .bkkc-icon {
    flex-shrink: 0;
    color: var(--bkkc-accent);
    margin-top: 2px;
}

.bkkc-cards {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.bkkc-empty {
    text-align: center;
    color: var(--bkkc-text-soft);
    padding: 2em;
    background: var(--bkkc-bg-soft);
    border-radius: var(--bkkc-radius);
}

/* Stars - delade mellan alla stilar */
.bkkc-stars {
    display: inline-flex;
    gap: 3px;
    line-height: 1;
}
.bkkc-stars .bkkc-star {
    color: #d4d4d4;
    flex-shrink: 0;
    display: inline-flex;
    line-height: 0;
}
.bkkc-stars .bkkc-star svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}
.bkkc-stars .bkkc-star.is-on {
    color: var(--bkkc-accent);
}
.bkkc-stars .bkkc-star.is-half {
    position: relative;
    color: #d4d4d4;
}
.bkkc-stars .bkkc-star.is-half::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 50%;
    overflow: hidden;
    color: var(--bkkc-accent);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23b8935a'><path d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/></svg>");
    background-size: 32px 16px;
    background-position: left center;
    background-repeat: no-repeat;
}

/* ==========================================================================
   STIL A: EDITORIAL — mörk navy-panel + redaktionellt innehåll
   ========================================================================== */

.bkkc-ed {
    background: var(--bkkc-bg);
    border: 1px solid var(--bkkc-border);
    border-radius: var(--bkkc-radius-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 280px 1fr;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
}
.bkkc-ed:hover {
    box-shadow: var(--bkkc-shadow-hover);
    transform: translateY(-2px);
}

.bkkc-ed-rank {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--bkkc-accent);
    color: #fff;
    padding: 7px 16px 7px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom-right-radius: 8px;
    z-index: 2;
    line-height: 1.2;
}

.bkkc-ed-left {
    background: linear-gradient(135deg, var(--bkkc-primary) 0%, var(--bkkc-primary-dark) 100%);
    padding: 32px 24px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.bkkc-ed-logo-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 18px;
    width: 100%;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bkkc-ed-logo-box a {
    display: block;
    width: 100%;
}
.bkkc-ed-logo-box img {
    max-width: 100%;
    max-height: 70px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}
.bkkc-ed-score-circle {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(184, 147, 90, 0.15);
    border: 2px solid var(--bkkc-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 8px;
}
.bkkc-ed-score-num {
    font-size: 24px;
    font-weight: 800;
    color: var(--bkkc-accent);
    line-height: 1;
}
.bkkc-ed-score-max {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
    margin-top: 2px;
}
.bkkc-ed-score-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.bkkc-ed-right {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.bkkc-ed-cat {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--bkkc-accent);
    margin: 0 0 4px;
}
.bkkc-ed-title {
    font-family: Georgia, "Merriweather", serif;
    font-size: 1.5em;
    font-weight: 700;
    color: var(--bkkc-text-strong);
    margin: 0 0 8px;
    line-height: 1.2;
}
.bkkc-ed-tagline {
    font-size: 0.92em;
    color: var(--bkkc-text-soft);
    margin: 0 0 18px;
    line-height: 1.5;
    font-style: italic;
}

.bkkc-ed-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0;
    border-top: 1px solid var(--bkkc-border);
    border-bottom: 1px solid var(--bkkc-border);
    padding: 14px 0;
    margin: 0 0 18px;
}
.bkkc-ed-stat {
    padding: 0 14px;
    border-right: 1px solid var(--bkkc-border);
    min-width: 0;
}
.bkkc-ed-stat:first-child { padding-left: 0; }
.bkkc-ed-stat:last-child { border-right: none; padding-right: 0; }
.bkkc-ed-stat-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--bkkc-text-soft);
    margin-bottom: 4px;
}
.bkkc-ed-stat-val {
    font-size: 1em;
    font-weight: 700;
    color: var(--bkkc-text-strong);
    line-height: 1.2;
}

.bkkc-ed-pros {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 6px 18px;
    margin: 0 0 22px;
}
.bkkc-ed-pro {
    display: flex;
    gap: 8px;
    font-size: 0.9em;
    line-height: 1.5;
    color: var(--bkkc-text);
    min-width: 0;
}
.bkkc-ed-pro-check {
    color: var(--bkkc-green);
    font-weight: 700;
    flex-shrink: 0;
}

.bkkc-ed-cta-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: auto;
}
.bkkc-ed-btn {
    background: var(--bkkc-primary);
    color: #fff !important;
    padding: 14px 24px;
    border-radius: var(--bkkc-radius);
    text-decoration: none !important;
    font-weight: 700;
    font-size: 0.95em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid var(--bkkc-primary);
    flex: 1 1 auto;
    transition: all 0.15s;
    box-shadow: 0 1px 2px rgba(15, 26, 42, 0.08);
    text-align: center;
    line-height: 1.2;
}
.bkkc-ed-btn:hover, .bkkc-ed-btn:focus {
    background: var(--bkkc-primary-dark);
    border-color: var(--bkkc-primary-dark);
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}
.bkkc-ed-btn-out {
    background: transparent;
    color: var(--bkkc-primary) !important;
    border: 2px solid var(--bkkc-border);
    padding: 13px 20px;
    border-radius: var(--bkkc-radius);
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.15s;
    white-space: nowrap;
}
.bkkc-ed-btn-out:hover {
    border-color: var(--bkkc-primary);
    background: var(--bkkc-bg-soft);
    text-decoration: none !important;
}

/* "Annons"-badge fungerar för alla stilar */
.bkkc-ad-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.65em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 3px;
    line-height: 1;
}

@media (max-width: 800px) {
    .bkkc-ed {
        grid-template-columns: 1fr;
    }
    .bkkc-ed-left {
        padding: 24px 20px 20px;
        flex-direction: row;
        gap: 20px;
        text-align: left;
    }
    .bkkc-ed-logo-box {
        margin-bottom: 0;
        flex: 1;
        min-height: 80px;
    }
    .bkkc-ed-score-circle {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    .bkkc-ed-score-label {
        display: none;
    }
    .bkkc-ed-right {
        padding: 24px 20px;
    }
}
@media (max-width: 500px) {
    .bkkc-ed-left { flex-direction: column; align-items: center; text-align: center; }
    .bkkc-ed-cta-row { flex-direction: column; }
    .bkkc-ed-btn, .bkkc-ed-btn-out { width: 100%; box-sizing: border-box; }
    .bkkc-ed-stats { grid-template-columns: 1fr 1fr; }
    .bkkc-ed-stat:nth-child(2n) { border-right: none; padding-right: 0; }
    .bkkc-ed-stat:nth-child(2n+1) { padding-left: 0; }
}

/* ==========================================================================
   STIL B: MAGAZINE — visuell kortmockup + stora typografiska siffror
   ========================================================================== */

.bkkc-mag {
    background: var(--bkkc-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--bkkc-border);
    display: grid;
    grid-template-columns: 1fr 280px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.bkkc-mag:hover {
    box-shadow: var(--bkkc-shadow-hover);
    transform: translateY(-2px);
}

.bkkc-mag-main {
    padding: 32px;
    position: relative;
    min-width: 0;
}
.bkkc-mag-rank {
    display: inline-block;
    background: var(--bkkc-primary-dark);
    color: var(--bkkc-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
    margin: 0 0 14px;
    border: 1px solid var(--bkkc-accent);
    line-height: 1.2;
}
.bkkc-mag-title {
    font-family: Georgia, "Merriweather", serif;
    font-size: 1.85em;
    font-weight: 700;
    color: var(--bkkc-text-strong);
    margin: 0 0 8px;
    line-height: 1.1;
    letter-spacing: -0.5px;
}
.bkkc-mag-tagline {
    font-size: 0.95em;
    color: var(--bkkc-text-soft);
    margin: 0 0 24px;
    line-height: 1.5;
    max-width: 480px;
}

.bkkc-mag-stats {
    display: flex;
    gap: 32px;
    margin: 0 0 24px;
    flex-wrap: wrap;
}
.bkkc-mag-stat-item {
    flex: 0 0 auto;
    min-width: 0;
}
.bkkc-mag-stat-val {
    font-family: Georgia, "Merriweather", serif;
    font-size: 1.85em;
    font-weight: 700;
    color: var(--bkkc-text-strong);
    line-height: 1;
}
.bkkc-mag-stat-unit {
    font-size: 0.85em;
    color: var(--bkkc-text-soft);
    font-weight: 400;
    font-family: inherit;
}
.bkkc-mag-stat-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--bkkc-text-soft);
    margin-top: 6px;
}

.bkkc-mag-pros-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--bkkc-accent);
    margin: 0 0 10px;
}
.bkkc-mag-pros {
    list-style: none;
    padding: 0;
    margin: 0;
}
.bkkc-mag-pros li {
    padding: 9px 0 9px 28px;
    position: relative;
    font-size: 0.92em;
    line-height: 1.5;
    color: var(--bkkc-text);
    border-bottom: 1px dashed var(--bkkc-border);
}
.bkkc-mag-pros li:last-child {
    border-bottom: none;
}
.bkkc-mag-pros li:before {
    content: "→";
    position: absolute;
    left: 4px;
    top: 9px;
    color: var(--bkkc-accent);
    font-weight: 700;
}

.bkkc-mag-side {
    background: linear-gradient(180deg, var(--bkkc-primary) 0%, var(--bkkc-primary-dark) 100%);
    color: #fff;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
}
.bkkc-mag-card-visual {
    width: 100%;
    aspect-ratio: 1.586;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    color: #fff;
}
.bkkc-mag-card-visual::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}
.bkkc-mag-card-img {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}
.bkkc-mag-card-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0;
}
.bkkc-mag-card-brand {
    color: #fff;
    font-weight: 800;
    font-size: 1.15em;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}
.bkkc-mag-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: end;
    position: relative;
    z-index: 1;
}
.bkkc-mag-card-num {
    color: rgba(255, 255, 255, 0.85);
    font-family: monospace;
    font-size: 11px;
    letter-spacing: 1px;
}
.bkkc-mag-card-mc {
    display: flex;
}
.bkkc-mag-card-mc div {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}
.bkkc-mag-card-mc .r { background: #eb001b; }
.bkkc-mag-card-mc .y { background: #f79e1b; margin-left: -8px; opacity: 0.92; }

.bkkc-mag-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
    gap: 4px;
}
.bkkc-mag-score .bkkc-stars { gap: 2px; }
.bkkc-mag-score .bkkc-stars .bkkc-star svg { width: 18px; height: 18px; }
.bkkc-mag-score-num {
    font-family: Georgia, "Merriweather", serif;
    font-size: 2em;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-top: 4px;
}
.bkkc-mag-score-out {
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.6);
}

.bkkc-mag-btn {
    background: var(--bkkc-accent) !important;
    color: var(--bkkc-primary-dark) !important;
    padding: 14px 24px;
    border-radius: var(--bkkc-radius);
    text-decoration: none !important;
    font-weight: 700;
    font-size: 0.95em;
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    border: 2px solid var(--bkkc-accent);
    transition: all 0.15s;
    line-height: 1.2;
}
.bkkc-mag-btn:hover {
    background: var(--bkkc-accent-dark) !important;
    border-color: var(--bkkc-accent-dark) !important;
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}
.bkkc-mag-readmore {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.82em;
    text-decoration: none !important;
    margin-top: 12px;
    display: inline-block;
}
.bkkc-mag-readmore:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

@media (max-width: 800px) {
    .bkkc-mag {
        grid-template-columns: 1fr;
    }
    .bkkc-mag-side {
        order: -1;
        padding: 24px 20px;
    }
    .bkkc-mag-card-visual {
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }
    .bkkc-mag-main {
        padding: 24px 20px;
    }
}
@media (max-width: 500px) {
    .bkkc-mag-title { font-size: 1.5em; }
    .bkkc-mag-stats { gap: 20px; }
    .bkkc-mag-stat-val { font-size: 1.5em; }
}

/* ==========================================================================
   STIL C: COMPACT — rankningsbar + tät listvy
   ========================================================================== */

.bkkc-cmp {
    background: var(--bkkc-bg);
    border: 1px solid var(--bkkc-border);
    border-radius: 10px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 60px 240px 1fr 200px;
    align-items: stretch;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.bkkc-cmp:hover {
    border-color: var(--bkkc-accent);
    box-shadow: var(--bkkc-shadow);
}

.bkkc-cmp-rank-bar {
    background: var(--bkkc-primary);
    color: var(--bkkc-accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
}
.bkkc-cmp-rank-num {
    font-family: Georgia, "Merriweather", serif;
    font-size: 1.9em;
    font-weight: 700;
    line-height: 1;
}
.bkkc-cmp-rank-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
    line-height: 1;
}

.bkkc-cmp-info {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--bkkc-border);
    min-width: 0;
}
.bkkc-cmp-issuer {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--bkkc-text-soft);
    margin-bottom: 4px;
}
.bkkc-cmp-title {
    font-family: Georgia, "Merriweather", serif;
    font-size: 1.05em;
    font-weight: 700;
    color: var(--bkkc-text-strong);
    margin: 0 0 8px;
    line-height: 1.2;
}
.bkkc-cmp-title a {
    color: inherit !important;
    text-decoration: none !important;
}
.bkkc-cmp-title a:hover {
    color: var(--bkkc-accent-dark) !important;
}

.bkkc-cmp-score-line {
    display: flex;
    align-items: center;
    gap: 6px;
}
.bkkc-cmp-score-bar {
    width: 60px;
    height: 6px;
    background: var(--bkkc-border);
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
}
.bkkc-cmp-score-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--bkkc-accent) 0%, #3b8bd9 100%);
    border-radius: 3px;
}
.bkkc-cmp-score-text {
    font-size: 0.78em;
    font-weight: 700;
    color: var(--bkkc-text-strong);
}
.bkkc-cmp-score-out {
    font-size: 0.72em;
    color: var(--bkkc-text-soft);
}

.bkkc-cmp-stats {
    padding: 18px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 14px 24px;
    border-right: 1px solid var(--bkkc-border);
    align-items: center;
    min-width: 0;
}
.bkkc-cmp-stat-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--bkkc-text-soft);
    margin-bottom: 2px;
}
.bkkc-cmp-stat-val {
    font-size: 0.95em;
    font-weight: 700;
    color: var(--bkkc-text-strong);
    line-height: 1.2;
}
.bkkc-cmp-stat-green {
    color: var(--bkkc-green);
}
.bkkc-cmp-stat-amber {
    color: var(--bkkc-accent);
}

.bkkc-cmp-cta-col {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}
.bkkc-cmp-btn {
    background: var(--bkkc-primary);
    color: #fff !important;
    padding: 11px 14px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 2px solid var(--bkkc-primary);
    transition: all 0.15s;
    text-align: center;
    line-height: 1.2;
}
.bkkc-cmp-btn:hover {
    background: var(--bkkc-primary-dark) !important;
    border-color: var(--bkkc-primary-dark) !important;
    color: #fff !important;
    text-decoration: none !important;
}
.bkkc-cmp-btn .bkkc-ad-badge {
    font-size: 0.62em;
    padding: 1px 4px;
}
.bkkc-cmp-readmore {
    font-size: 0.78em;
    color: var(--bkkc-text-soft) !important;
    text-decoration: none !important;
    text-align: center;
}
.bkkc-cmp-readmore:hover {
    color: var(--bkkc-primary) !important;
    text-decoration: underline !important;
}

@media (max-width: 900px) {
    .bkkc-cmp {
        grid-template-columns: 50px 1fr;
        grid-template-areas:
            "rank info"
            "rank stats"
            "cta cta";
    }
    .bkkc-cmp-rank-bar { grid-area: rank; }
    .bkkc-cmp-info { grid-area: info; border-right: none; border-bottom: 1px solid var(--bkkc-border); }
    .bkkc-cmp-stats { grid-area: stats; border-right: none; }
    .bkkc-cmp-cta-col {
        grid-area: cta;
        flex-direction: row;
        gap: 12px;
        padding: 14px 20px;
        border-top: 1px solid var(--bkkc-border);
        background: var(--bkkc-bg-soft);
    }
    .bkkc-cmp-btn { flex: 1; }
}
@media (max-width: 500px) {
    .bkkc-cmp { grid-template-columns: 44px 1fr; }
    .bkkc-cmp-stats { grid-template-columns: 1fr 1fr; }
    .bkkc-cmp-cta-col { flex-direction: column; }
}

/* ==========================================================================
   Single-sida (orörd från tidigare)
   ========================================================================== */

.bkkc-single-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 16px;
}
.bkkc-single-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--bkk-border, #dce3ed);
}
.bkkc-single-title {
    margin: 0 0 16px;
    font-size: 2em;
    font-weight: 700;
    color: var(--bkk-text-strong, #062946);
}
.bkkc-single-logo { margin: 0 auto 16px; max-width: 400px; }
.bkkc-single-logo img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.bkkc-single-rating { display: flex; justify-content: center; margin-bottom: 16px; }
.bkkc-single-cta { margin-top: 16px; }

/* [cc-stats] */
.bkkc-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0;
}
.bkkc-stat {
    background: var(--bkk-bg-warm, #eef2f8);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}
.bkkc-stat-label { display: block; font-size: 0.85em; color: var(--bkk-text-soft, #5a6275); margin-bottom: 4px; }
.bkkc-stat-value { display: block; font-size: 1.25em; font-weight: 700; color: var(--bkk-text-strong, #062946); }

/* [cc-info] */
.bkkc-info-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin: 32px 0;
}
.bkkc-info-col h2 { margin: 0 0 12px; font-size: 1.3em; color: var(--bkk-text-strong, #062946); }
.bkkc-fordelar { list-style: none; padding: 0; margin: 0; }
.bkkc-fordelar li {
    position: relative; padding-left: 26px; margin-bottom: 8px; line-height: 1.5;
}
.bkkc-fordelar li:before {
    content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px;
    background: var(--bkk-green, #0d7d4f); border-radius: 50%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M6.5 11L3 7.5l1-1L6.5 9l5.5-5.5 1 1z" fill="white"/></svg>');
    background-position: center; background-repeat: no-repeat; background-size: 14px;
}

.bkkc-related { margin-top: 48px; }
.bkkc-related h2 { margin: 0 0 20px; }

/* ===== RELATED CARDS GRID (för "Liknande kreditkort" på single-sida) ===== */
.bkkc-cards-related {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.bkkc-related-card {
    list-style: none;
    background: var(--bkkc-bg, #ffffff);
    border: 1px solid var(--bkkc-border, #dce3ed);
    border-radius: var(--bkkc-radius-lg, 12px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--bkkc-shadow);
    transition: transform 0.15s, box-shadow 0.15s;
}
.bkkc-related-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--bkkc-shadow-hover);
}
.bkkc-related-card-img {
    display: block;
    background: var(--bkkc-bg-warm, #eef2f8);
    padding: 18px;
    aspect-ratio: 16 / 10;
    text-align: center;
}
.bkkc-related-card-img img {
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    border-radius: 6px;
}
.bkkc-related-card-body {
    padding: 14px 16px 8px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}
.bkkc-related-card-title {
    margin: 0 0 6px !important;
    font-size: 1em !important;
    font-weight: 700;
    line-height: 1.3;
    padding: 0 !important;
    border: none !important;
}
.bkkc-related-card-title a {
    color: var(--bkkc-text-strong, #062946);
    text-decoration: none;
}
.bkkc-related-card-title a:hover {
    color: var(--bkkc-primary, #062946);
}
.bkkc-related-card-rating {
    margin: 0 0 10px;
    font-size: 0.92em;
}
.bkkc-related-card-stats {
    margin: 0 !important;
    padding: 0 !important;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px 12px;
    font-size: 0.9em;
}
.bkkc-related-card-stats > div {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    border-bottom: 1px dashed var(--bkkc-border, #dce3ed);
    padding-bottom: 4px;
}
.bkkc-related-card-stats > div:last-child {
    border-bottom: none;
}
.bkkc-related-card-stats dt {
    color: var(--bkkc-text-soft, #5a6275);
    font-weight: 500;
    margin: 0;
    padding: 0;
}
.bkkc-related-card-stats dd {
    color: var(--bkkc-text-strong, #062946);
    font-weight: 700;
    margin: 0;
    padding: 0;
    text-align: right;
}
.bkkc-related-card-cta {
    padding: 12px 16px 16px;
}
.bkkc-related-card-cta .bkkc-btn,
.bkkc-related-card-cta .bkkc-cta-inactive {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}
.bkkc-btn-sm {
    padding: 10px 16px;
    font-size: 0.92em;
}

/* Inaktivt företag - disabled CTA */
.bkkc-cta-inactive {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--bkkc-bg-soft, #f7f9fc) !important;
    color: var(--bkkc-text-soft, #5a6275) !important;
    padding: 13px 22px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 0.98em;
    border: 2px dashed var(--bkkc-border, #dce3ed);
    line-height: 1.2;
    cursor: not-allowed;
    position: relative;
}
.bkkc-cta-inactive:before {
    content: "✕";
    font-size: 0.9em;
    color: var(--bkkc-text-soft, #5a6275);
    opacity: 0.6;
}
.bkkc-related-card-inactive {
    opacity: 0.7;
}
.bkkc-related-card-inactive .bkkc-related-card-img {
    filter: grayscale(0.5);
}

@media (max-width: 900px) {
    .bkkc-cards-related {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 600px) {
    .bkkc-cards-related {
        grid-template-columns: 1fr;
    }
}

/* CTA-knappens .bkkc-btn för single-sidan (gammal klass) */
.bkkc-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--bkkc-primary, #062946); color: #fff !important;
    padding: 13px 22px; border-radius: 8px; text-decoration: none !important;
    font-weight: 700; font-size: 0.98em;
    border: 2px solid var(--bkkc-primary, #062946); transition: all 0.15s;
    line-height: 1.2;
}
.bkkc-btn:hover { background: var(--bkkc-primary-dark, #03182b); border-color: var(--bkkc-primary-dark, #03182b); transform: translateY(-1px); }
.bkkc-btn-lg { padding: 15px 28px; font-size: 1.05em; }

@media (max-width: 600px) {
    .bkkc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bkkc-info-wrapper { grid-template-columns: 1fr; gap: 24px; }
    .bkkc-single-title { font-size: 1.5em; }
}
