.kkl-wrapper {
    --kkl-primary: #253068;
    --kkl-primary-hover: #1c254f;
    --kkl-bg: #f7f9fc;
    --kkl-border: #e2e8f0;
    --kkl-text-dark: #1f2937;
    --kkl-text-light: #64748b;
    --kkl-warning-red: #c62828;
    --kkl-success: #0f766e;
}

.kkl-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    align-items: start;
    margin-top: 20px;
    position: relative;
    overflow: visible !important;
}

.kkl-wrapper .kkl-sidebar {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--kkl-border);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    z-index: 10;
}

.kkl-wrapper .kkl-sidebar::-webkit-scrollbar {
    width: 4px;
}

.kkl-wrapper .kkl-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.kkl-wrapper .kkl-sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.kkl-wrapper .kkl-filter-group {
    margin-bottom: 22px;
}

.kkl-wrapper .kkl-filter-group label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--kkl-text-dark);
}

.kkl-wrapper .kkl-filter-value {
    color: var(--kkl-primary);
    white-space: nowrap;
}

.kkl-wrapper input[type=range] {
    width: 100%;
    cursor: pointer;
    accent-color: var(--kkl-primary);
}

.kkl-wrapper .kkl-filter-group select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--kkl-border);
    border-radius: 10px;
    background-color: #fff;
    color: var(--kkl-text-dark);
    font-size: 14px;
}

.kkl-wrapper .kkl-main-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.kkl-wrapper .kkl-match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 2px;
}

.kkl-wrapper .kkl-match-count {
    font-weight: 700;
    color: var(--kkl-text-dark);
    font-size: 16px;
}

.kkl-wrapper .kkl-mobile-tools {
    display: none;
}

.kkl-wrapper .kkl-mobile-filter-button {
    width: 100%;
    border: 0;
    background: var(--kkl-primary);
    color: #fff;
    padding: 13px 14px;
    border-radius: 14px;
    font-weight: 900;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    box-shadow: 0 8px 20px rgba(37, 48, 104, 0.20);
}

.kkl-wrapper .kkl-mobile-filter-button svg {
    flex: 0 0 auto;
}

.kkl-wrapper .kkl-mobile-mini-text {
    margin-top: 7px;
    font-size: 11px;
    line-height: 1.35;
    color: var(--kkl-text-light);
    text-align: center;
}

.kkl-wrapper .kkl-filter-overlay {
    display: none;
}

.kkl-wrapper .kkl-legal-warning {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 15px 18px;
    background-color: #fff;
    border: 1px solid var(--kkl-border);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.kkl-wrapper .kkl-warning-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    fill: var(--kkl-warning-red);
}

.kkl-wrapper .kkl-warning-text {
    font-size: 12px;
    line-height: 1.5;
    color: var(--kkl-text-dark);
    text-align: left;
}

.kkl-wrapper .kkl-warning-text strong {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    color: #111827;
}

.kkl-wrapper .kkl-warning-text a {
    color: var(--kkl-warning-red);
    text-decoration: underline;
    font-weight: 700;
}

.kkl-wrapper .kkl-warning-desktop {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 24px;
    padding: 15px;
}

.kkl-wrapper .kkl-warning-desktop .kkl-warning-text {
    text-align: center;
}

.kkl-wrapper .kkl-warning-mobile {
    margin-top: 20px;
    margin-bottom: 20px;
}

.kkl-wrapper .kkl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.kkl-wrapper .kkl-card {
    background: #fff;
    border: 2px solid transparent;
    border-radius: 18px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    align-self: start;
    min-height: 100%;
}

.kkl-wrapper .kkl-card:hover {
    border-color: var(--kkl-primary);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.10);
    transform: translateY(-3px);
}

.kkl-wrapper .kkl-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 5px 15px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.kkl-wrapper .kkl-badge--primary {
    background-color: #253068;
}

.kkl-wrapper .kkl-badge--muted {
    background-color: #4a5568;
}

.kkl-wrapper .kkl-logo {
    height: 72px;
    max-width: 92%;
    object-fit: contain;
    margin: 16px auto 11px auto;
    border-radius: 6px;
}

.kkl-wrapper .kkl-card-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--kkl-text-dark);
    margin-bottom: 18px;
    text-align: center;
    line-height: 1.3;
}

.kkl-wrapper .kkl-card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 10px;
    margin-bottom: 15px;
    text-align: left;
    font-size: 15px;
}

.kkl-wrapper .kkl-card-details div {
    display: flex;
    flex-direction: column;
}

.kkl-wrapper .kkl-card-details strong {
    font-size: 11px;
    color: var(--kkl-text-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kkl-wrapper .kkl-card-details span {
    font-weight: 800;
    color: var(--kkl-text-dark);
    font-size: 15px;
    margin-top: 3px;
}

.kkl-wrapper .kkl-toggle-details-btn {
    background: transparent;
    border: 1px solid var(--kkl-border);
    color: var(--kkl-text-dark);
    padding: 9px 15px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    margin: 0 auto 18px auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    width: 100%;
}

.kkl-wrapper .kkl-toggle-details-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.kkl-wrapper .kkl-toggle-details-btn svg {
    width: 14px;
    height: 14px;
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.kkl-wrapper .kkl-toggle-details-btn.active svg {
    transform: rotate(180deg);
}

.kkl-wrapper .kkl-extra-details {
    display: none;
    text-align: left;
    margin-bottom: 18px;
    padding-top: 15px;
    border-top: 1px solid var(--kkl-border);
    font-size: 13px;
    color: var(--kkl-text-dark);
}

.kkl-wrapper .kkl-extra-details.active {
    display: block;
    animation: kklFadeIn 0.25s ease;
}

.kkl-wrapper .kkl-extra-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px dashed #e5e7eb;
}

.kkl-wrapper .kkl-extra-row:last-child {
    border-bottom: none;
}

.kkl-wrapper .kkl-extra-row span:first-child {
    color: var(--kkl-text-light);
}

.kkl-wrapper .kkl-extra-row span:last-child {
    font-weight: 800;
    text-align: right;
}

@keyframes kklFadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.kkl-wrapper .kkl-mobile-apply {
    width: 100%;
    margin-top: 20px;
}

.kkl-wrapper .kkl-btn,
.kkl-sticky-cta .kkl-btn {
    display: block;
    background: var(--kkl-primary);
    color: #fff !important;
    padding: 15px 16px;
    border-radius: 10px;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    transition: background 0.2s, transform 0.1s;
    margin-bottom: 15px;
    border: none;
    cursor: pointer;
    text-align: center;
    line-height: 1.2;
}

.kkl-wrapper .kkl-btn:hover,
.kkl-sticky-cta .kkl-btn:hover {
    background: var(--kkl-primary-hover);
}

.kkl-wrapper .kkl-btn:active,
.kkl-sticky-cta .kkl-btn:active {
    transform: scale(0.98);
}

.kkl-wrapper .kkl-example-box {
    font-size: 10.5px;
    color: var(--kkl-text-light);
    background: #f8fafc;
    padding: 9px 10px;
    border-radius: 8px;
    text-align: left;
    line-height: 1.45;
    max-height: 62px;
    overflow-y: auto;
    border: 1px solid #eef2f7;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
    margin-top: auto;
}

.kkl-wrapper .kkl-example-box::-webkit-scrollbar {
    width: 4px;
}

.kkl-wrapper .kkl-example-box::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.kkl-wrapper .kkl-example-box::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.kkl-wrapper .kkl-mobile-header {
    display: none;
}

.kkl-wrapper .kkl-mobile-toggle-btn {
    width: 100%;
    background: var(--kkl-primary);
    color: #fff;
    padding: 15px;
    text-align: center;
    font-weight: 900;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
    transition: opacity 0.3s ease;
}

.kkl-sticky-cta {
    --kkl-primary: #253068;
    --kkl-primary-hover: #1c254f;
    --kkl-border: #e2e8f0;
    --kkl-text-dark: #1f2937;
    --kkl-text-light: #64748b;
    position: fixed;
    bottom: -170px;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -7px 28px rgba(15, 23, 42, 0.12);
    transition: bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999999;
    padding: 14px 20px;
    display: flex;
    justify-content: center;
    border-top: 2px solid var(--kkl-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.kkl-sticky-cta.kkl-cta-show {
    bottom: 0;
}

.kkl-sticky-cta .kkl-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 960px;
    width: 100%;
    gap: 20px;
}

.kkl-sticky-cta .kkl-cta-logo {
    height: 45px;
    max-width: 140px;
    object-fit: contain;
    background: #fff;
    padding: 5px;
    border-radius: 6px;
}

.kkl-sticky-cta .kkl-cta-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.kkl-sticky-cta .kkl-cta-title {
    color: var(--kkl-text-dark);
    font-weight: 900;
    font-size: 16px;
}

.kkl-sticky-cta .kkl-cta-desc {
    color: var(--kkl-text-light);
    font-size: 13px;
    margin-top: 3px;
}

.kkl-sticky-cta .kkl-cta-action {
    margin-bottom: 0;
    padding: 14px 28px;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .kkl-wrapper .kkl-warning-desktop {
        display: none;
    }

    .kkl-wrapper .kkl-warning-mobile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .kkl-wrapper .kkl-warning-mobile .kkl-warning-text {
        text-align: center;
    }

    .kkl-wrapper {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .kkl-wrapper .kkl-mobile-tools {
        display: block;
        position: -webkit-sticky;
        position: sticky;
        top: 10px;
        z-index: 60;
        margin-bottom: 2px;
    }

    .kkl-wrapper .kkl-mobile-header {
        display: none;
    }

    .kkl-wrapper .kkl-filter-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.48);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s ease;
        z-index: 99998;
    }

    .kkl-wrapper .kkl-filter-overlay.kkl-open {
        opacity: 1;
        pointer-events: auto;
    }

    .kkl-wrapper .kkl-sidebar {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: auto;
        bottom: 0;
        z-index: 99999;
        width: min(88vw, 380px);
        max-width: 380px;
        border-radius: 0 20px 20px 0;
        overflow-y: auto;
        padding: 26px 22px 90px;
        background: #fff;
        max-height: none;
        transform: translateX(-105%);
        visibility: hidden;
        transition: transform 0.26s ease, visibility 0.26s ease;
        box-shadow: 18px 0 40px rgba(15, 23, 42, 0.18);
    }

    .kkl-wrapper .kkl-sidebar.kkl-open {
        transform: translateX(0);
        visibility: visible;
    }

    .kkl-wrapper .kkl-sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 26px;
        padding-bottom: 14px;
        border-bottom: 1px solid var(--kkl-border);
    }

    .kkl-wrapper .kkl-sidebar-title {
        font-size: 20px;
        font-weight: 900;
        color: var(--kkl-text-dark);
    }

    .kkl-wrapper .kkl-sidebar-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 999px;
        background: #f1f5f9;
        font-size: 30px;
        cursor: pointer;
        line-height: 1;
        color: var(--kkl-text-light);
    }

    .kkl-wrapper .kkl-match-header {
        margin-top: 0;
    }

    .kkl-sticky-cta {
        padding: 12px 14px;
    }

    .kkl-sticky-cta .kkl-cta-inner {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 10px;
    }

    .kkl-sticky-cta .kkl-cta-text {
        display: none;
    }

    .kkl-sticky-cta .kkl-cta-action {
        width: 100%;
        padding: 12px;
    }

    .kkl-sticky-cta .kkl-cta-logo {
        height: 35px;
    }
}

@media (min-width: 901px) {
    .kkl-wrapper .kkl-sidebar-header {
        display: none;
    }

    .kkl-wrapper .kkl-warning-mobile {
        display: none;
    }
}
