/* ------------------------------------------------
   Compatibility Checker  –  [pf_compatibility_checker]
   ------------------------------------------------ */

.pf-cc {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin: 20px 0;
    overflow: visible;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* --- header --- */
.pf-cc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.pf-cc-icon {
    flex-shrink: 0;
    line-height: 0;
}

.pf-cc-header-text {
    display: flex;
    flex-direction: column;
}

.pf-cc-header-text strong {
    font-size: 15px;
    color: #1f2937;
    line-height: 1.3;
}

.pf-cc-header-text small {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

/* --- body / form row --- */
.pf-cc-body {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 16px 20px;
    flex-wrap: wrap;
    overflow: visible;
    position: relative;
}

.pf-cc-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.pf-cc-field--brand {
    flex: 0 0 170px;
    position: relative;
    z-index: 10000;
}

.pf-cc-field--model {
    flex: 1 1 200px;
    position: relative;
    z-index: 9999;
}

.pf-cc-field--action {
    flex: 0 0 auto;
}

.pf-cc-brand,
.pf-cc-brand-input,
.pf-cc-model-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #1f2937;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}

.pf-cc-brand:focus,
.pf-cc-brand-input:focus,
.pf-cc-model-input:focus {
    outline: none;
    border-color: #e99128;
    box-shadow: 0 0 0 3px rgba(233, 145, 40, .12);
}

.pf-cc-model-input:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

/* --- suggestions dropdown --- */
.pf-cc-brand-wrap,
.pf-cc-model-wrap {
    position: relative;
    z-index: 9999;
}

.pf-cc-brand-suggestions,
.pf-cc-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e99128;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 99999;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}

.pf-cc-suggestion {
    padding: 10px 12px;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    color: #1f2937;
}

.pf-cc-suggestion:last-child {
    border-bottom: none;
}

.pf-cc-suggestion:hover,
.pf-cc-suggestion.active {
    background: #fef3e2;
}

.pf-cc-suggestion strong {
    background: rgba(233, 145, 40, .12);
    color: #d4821f;
    padding: 0 2px;
    border-radius: 2px;
}

/* --- check button --- */
.pf-cc-check-btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #5bae6e;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
    line-height: 1.4;
}

.pf-cc-check-btn:hover {
    background: #4a9d5d;
}

.pf-cc-check-btn:disabled {
    background: #9ec9a7;
    cursor: not-allowed;
}

/* --- result messages --- */
.pf-cc-result {
    padding: 0 20px 16px;
}

.pf-cc-msg {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.pf-cc-msg svg {
    flex-shrink: 0;
}

.pf-cc-msg--yes {
    background: #ecfdf5;
    border: 1px solid #86efac;
    color: #166534;
}

.pf-cc-msg--no {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.pf-cc-msg--error {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
}

/* --- responsive --- */
@media (max-width: 600px) {
    .pf-cc-body {
        flex-direction: column;
        align-items: stretch;
    }

    .pf-cc-field--brand {
        flex: 1 1 auto;
        z-index: 10000;
    }

    .pf-cc-check-btn {
        width: 100%;
    }
}
