/* KVK Lookup Widget – standalone component */
.kvk-widget {
    max-width: 480px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
}

.kvk-widget-search {
    margin-bottom: 1rem;
}

.kvk-widget-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: #1e293b;
}

.kvk-widget-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
}

.kvk-widget-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.kvk-widget-input[readonly] {
    background: #f8fafc;
    color: #475569;
}

.kvk-widget-fields {
    margin-bottom: 1rem;
    padding: 1rem 0;
    border-top: 1px solid #e2e8f0;
}

.kvk-widget-row {
    display: block;
    margin-bottom: 0.75rem;
}

.kvk-widget-row span {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.2rem;
}

.kvk-widget-row input {
    width: 100%;
    padding: 0.4rem 0.6rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.kvk-widget-row-inline {
    display: flex;
    gap: 0.75rem;
}

.kvk-widget-row-inline label {
    flex: 1;
    min-width: 0;
}

.kvk-widget-sbi {
    padding: 0.5rem 0.75rem;
    background: #f1f5f9;
    border-radius: 6px;
    margin-top: 0.5rem;
}

.kvk-widget-sbi-label {
    font-weight: 600;
    color: #475569;
}

#kvk-widget-sbi-text {
    color: #334155;
}

.kvk-widget-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.kvk-widget-btn {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: #2563eb;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.kvk-widget-btn:hover:not(:disabled) {
    background: #1d4ed8;
}

.kvk-widget-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.kvk-widget-loader {
    display: none;
    font-size: 0.9rem;
    color: #64748b;
}

.kvk-widget-status {
    width: 100%;
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    color: #64748b;
}

.kvk-widget-status-error {
    color: #dc2626;
}

.kvk-widget-dropdown {
    margin-top: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    max-height: 240px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.kvk-widget-dropdown-item {
    padding: 0.6rem 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}

.kvk-widget-dropdown-item:last-child {
    border-bottom: none;
}

.kvk-widget-dropdown-item:hover {
    background: #f8fafc;
}
