/* =============================================================
   Arman_KentekenFinder - Stylesheet
   Huisstijl: banden-kopen.nl (navy / orange)
   ============================================================= */

/* -- Kentekenplaat ------------------------------------------- */
.kf-plate-wrapper {
    display: inline-flex;
    align-items: stretch;
    border: 2px solid #003082;
    border-radius: 4px;
    overflow: hidden;
    background: #ffd700;
}

.kf-plate-nl {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #003082;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 0 7px;
    letter-spacing: 0.5px;
    min-width: 26px;
    font-family: var(--bk-font-body, 'Barlow', 'Segoe UI', sans-serif);
}

.kf-plate-input {
    background: #ffd700;
    border: none;
    outline: none;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #111;
    padding: 6px 10px;
    width: 130px;
    font-family: var(--bk-font-display, 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif);
}

.kf-plate-input::placeholder {
    color: #999;
    font-weight: 400;
    letter-spacing: 1px;
}

/* -- Zoek knop ----------------------------------------------- */
.kf-btn-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bk-orange, #e8552a);
    color: #fff;
    border: 2px solid var(--bk-orange, #e8552a);
    border-radius: 4px;
    padding: 9px 20px;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: var(--bk-font-body, 'Barlow', 'Segoe UI', sans-serif);
    cursor: pointer;
    margin-left: 8px;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.kf-btn-search:hover {
    background: var(--bk-orange-dark, #c94220);
    border-color: var(--bk-orange-dark, #c94220);
}

.kf-btn-search:disabled {
    background: var(--bk-gray, #9aa5b4);
    border-color: var(--bk-gray, #9aa5b4);
    cursor: not-allowed;
}

.kf-btn-search-lg {
    padding: 11px 24px;
    font-size: 1rem;
}

/* -- Loader en fout ------------------------------------------ */
.kf-loader {
    margin-top: 10px;
    color: var(--bk-gray, #9aa5b4);
    font-size: 13px;
    font-style: italic;
}

.kf-error {
    margin-top: 10px;
    color: #922b21;
    font-size: 13px;
    background: #fdecea;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 8px 12px;
    width: 100%;
}

/* -- Maatknoppen --------------------------------------------- */
.kf-tire-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
}

.kf-tire-btn {
    background: transparent;
    color: var(--bk-navy, #1a2740);
    border: 2px solid var(--bk-navy, #1a2740);
    border-radius: 4px;
    padding: 7px 16px;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: var(--bk-font-body, 'Barlow', 'Segoe UI', sans-serif);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.kf-tire-btn:hover {
    background: var(--bk-navy, #1a2740);
    color: #fff;
}

.kf-tire-btn-large {
    padding: 10px 20px;
    font-size: 0.95rem;
}

/* Niet beschikbare maat - grayed out */
.kf-tire-btn--unavailable,
.kf-badge-maat--unavailable {
    opacity: 0.38;
    cursor: not-allowed;
    text-decoration: line-through;
}

.kf-tire-na,
.kf-badge-maat-na {
    font-size: 10px;
    font-weight: 600;
    opacity: 0.7;
    margin-left: 3px;
}

.kf-result-inner {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}

.kf-car-img {
    width: 160px;
    height: 104px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--bk-border, #e2e8f0);
    flex-shrink: 0;
    background: var(--bk-bg, #f4f6f8);
    display: block;
}

.kf-result-details {
    flex: 1;
    min-width: 0;
}

@media (max-width: 480px) {
    .kf-result-inner {
        flex-direction: column;
    }
    .kf-car-img {
        width: 100%;
        height: 120px;
    }
}

/* =============================================================
   Amfinder intro tekst (SEO + context)
   ============================================================= */
.kf-amfinder-intro {
    margin-bottom: 12px;
}

.kf-amfinder-intro-title {
    font-family: var(--bk-font-display, 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif);
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--bk-navy, #1a2740);
    margin: 0 0 4px;
    letter-spacing: 0.3px;
}

.kf-amfinder-intro-text {
    font-size: 0.825rem;
    color: var(--bk-text, #4a5568);
    line-height: 1.55;
    margin: 0;
    max-width: 680px;
}

/* =============================================================
   Amfinder banner (compact, bovenaan zoekresultaten)
   ============================================================= */
.kf-amfinder-banner {
    background: var(--bk-white, #fff);
    border: 2px solid var(--bk-border, #e2e8f0);
    border-left: 4px solid var(--bk-orange, #e8552a);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.kf-amfinder-label {
    font-family: var(--bk-font-display, 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif);
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--bk-navy, #1a2740);
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.kf-amfinder-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.kf-car-info {
    font-size: 13px;
    color: var(--bk-text, #4a5568);
    width: 100%;
}

.kf-car-info strong {
    color: var(--bk-navy, #1a2740);
    font-weight: 700;
}

.kf-tires-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--bk-gray, #9aa5b4);
    width: 100%;
}

/* =============================================================
   Standalone widget (CMS / homepage)
   ============================================================= */
.kf-widget-banner {
    background: var(--bk-bg, #f4f6f8);
    border: 2px solid var(--bk-border, #e2e8f0);
    border-radius: 10px;
    padding: 28px 32px;
    margin-bottom: 24px;
    max-width: 560px;
}

.kf-widget-title {
    font-family: var(--bk-font-display, 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif);
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--bk-navy, #1a2740);
    letter-spacing: -0.5px;
    line-height: 1;
    margin-bottom: 4px;
}

.kf-widget-title em {
    color: var(--bk-orange, #e8552a);
    font-style: normal;
}

.kf-widget-line {
    width: 36px;
    height: 3px;
    background: var(--bk-orange, #e8552a);
    border-radius: 2px;
    margin: 8px 0 12px;
}

.kf-widget-subtitle {
    font-size: 0.875rem;
    color: var(--bk-text, #4a5568);
    margin-bottom: 20px;
    line-height: 1.55;
}

.kf-widget-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.kf-result-large {
    margin-top: 16px;
}

/* =============================================================
   Badge balk (volledig breedte, gecentreerd onder header)
   ============================================================= */
.kf-badge-bar {
    background: var(--bk-navy, #1a2740);
    width: 100%;
    padding: 7px 24px;
}

.kf-badge-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.kf-badge-bar-icon {
    display: inline-block;
    width: 18px;
    height: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cpath fill='rgba(255,255,255,0.5)' d='M16.5 4L15 1H5L3.5 4H1a.5.5 0 000 1h.5v4a.5.5 0 001 0V9h15v.5a.5.5 0 001 0V5h.5a.5.5 0 000-1h-2zM4.5 4l1-2h9l1 2H4.5zM5 10a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm10 0a1.5 1.5 0 110-3 1.5 1.5 0 010 3z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    flex-shrink: 0;
}

.kf-badge-bar-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--bk-font-body, 'Barlow', 'Segoe UI', sans-serif);
}

.kf-badge-bar-text strong {
    color: #fff;
    font-weight: 700;
}

.kf-badge-bar-maat {
    background: var(--bk-orange, #e8552a);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    font-family: var(--bk-font-display, 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif);
    letter-spacing: 0.5px;
    margin-left: 4px;
}

/* -- Maat badge knoppen in de balk --------------------------- */
.kf-badge-maten {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.kf-badge-maat {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    padding: 2px 9px;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--bk-font-display, 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif);
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.kf-badge-maat:hover:not([disabled]) {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.kf-badge-maat--active {
    background: var(--bk-orange, #e8552a);
    color: #fff;
    border-color: var(--bk-orange, #e8552a);
}

.kf-badge-maat--active:hover {
    background: var(--bk-orange-dark, #c94220);
    border-color: var(--bk-orange-dark, #c94220);
}

.kf-badge-maat--unavailable {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* -- OEM link in de balk ------------------------------------- */
.kf-badge-oem-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    padding: 2px 9px 2px 6px;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--bk-font-body, 'Barlow', 'Segoe UI', sans-serif);
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}

.kf-badge-oem-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
}

.kf-badge-oem-logo {
    width: auto;
    height: 14px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    vertical-align: middle;
}

.kf-badge-oem-link:hover .kf-badge-oem-logo {
    opacity: 1;
}

/* -- Badge bar overige knoppen ------------------------------- */
.kf-badge-bar-change {
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--bk-font-body, 'Barlow', 'Segoe UI', sans-serif);
    transition: all 0.15s;
    white-space: nowrap;
}

.kf-badge-bar-change:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.kf-badge-bar-clear {
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    padding: 2px 6px;
    transition: color 0.15s;
}

.kf-badge-bar-clear:hover {
    color: #fff;
}

/* =============================================================
   Modal overlay + venster
   ============================================================= */
.kf-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 39, 64, 0.75);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.kf-modal {
    background: #fff;
    border-radius: 10px;
    width: 100%;
    max-width: 440px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.kf-modal-header {
    background: var(--bk-navy, #1a2740);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kf-modal-title {
    font-family: var(--bk-font-display, 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif);
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 0.5px;
}

.kf-modal-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 6px;
    line-height: 1;
    transition: color 0.15s;
}

.kf-modal-close:hover {
    color: #fff;
}

.kf-modal-body {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--bk-border, #e2e8f0);
}

.kf-modal-body .kf-btn-search {
    margin-left: 0;
}

.kf-modal-car {
    font-size: 14px;
    font-weight: 700;
    color: var(--bk-navy, #1a2740);
    padding: 12px 20px 4px;
    margin: 0;
}

#kf-modal-result {
    padding: 0 20px 20px;
}

#kf-modal-result .kf-tires-label {
    margin-bottom: 8px;
}

#kf-modal-error,
#kf-modal-loader {
    margin: 8px 20px;
}

/* =============================================================
   Fitcheck op productpagina
   ============================================================= */
.kf-fitcheck {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 4px;
    padding: 10px 16px;
    font-size: 0.875rem;
    font-family: var(--bk-font-body, 'Barlow', 'Segoe UI', sans-serif);
    border: 2px solid;
    margin-bottom: 14px;
}

.kf-fitcheck--fit {
    background: #eaf7ec;
    border-color: #a3d9aa;
    color: #1d6630;
}

.kf-fitcheck--nofit {
    background: #fdecea;
    border-color: #f5c6cb;
    color: #922b21;
}

.kf-fitcheck--unknown {
    background: #fdf6e3;
    border-color: #f0d58c;
    color: #7d6608;
}

.kf-fitcheck-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    flex-shrink: 0;
}

.kf-fitcheck--fit     .kf-fitcheck-icon { background: #1d6630; color: #fff; }
.kf-fitcheck--nofit   .kf-fitcheck-icon { background: #922b21; color: #fff; }
.kf-fitcheck--unknown .kf-fitcheck-icon { background: #7d6608; color: #fff; }

.kf-fitcheck-text strong {
    font-weight: 700;
}

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 768px) {
    .kf-amfinder-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 16px;
    }

    .kf-widget-banner {
        padding: 20px 18px;
    }

    .kf-plate-input {
        width: 110px;
        font-size: 15px;
    }

    .kf-btn-search {
        margin-left: 0;
    }

    .kf-badge {
        font-size: 11px;
        padding: 5px 10px;
        gap: 7px;
    }

    .kf-badge-maten {
        gap: 4px;
    }

    .kf-badge-oem-link {
        display: none; /* te druk op mobiel, verberg OEM link */
    }
}