/**
 * AK Product Set - Checkout NIP & Company Autofill Styling
 */

.ak-nip-row {
    position: relative;
    margin-bottom: 12px;
}

.ak-company-data-row {
    display: none;
    margin-top: 8px;
    margin-bottom: 14px;
}

.ak-company-data-row.ak-visible {
    display: block !important;
}

.ak-company-data-row textarea {
    min-height: 75px;
    resize: vertical;
    width: 100%;
    box-sizing: border-box;
}

.ak-nip-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.ak-nip-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    border-radius: 4px;
    border: 1px solid #2271b1;
    background: #f0f6fc;
    color: #2271b1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ak-nip-btn:hover {
    background: #2271b1;
    color: #ffffff;
}

.ak-nip-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f0f0f1;
    border-color: #c3c4c7;
    color: #8c8f94;
}

.ak-nip-status {
    font-size: 12px;
    line-height: 1.4;
}

.ak-nip-status.ak-success {
    color: #007017;
    font-weight: 500;
}

.ak-nip-status.ak-error {
    color: #d63638;
}

.ak-nip-status.ak-loading {
    color: #646970;
}

.ak-nip-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: ak-nip-spin 0.8s linear infinite;
}

@keyframes ak-nip-spin {
    to { transform: rotate(360deg); }
}

/* Smooth transition when fields are highlighted after autofill */
.ak-field-highlight {
    animation: ak-field-pulse 1.2s ease-out;
}

@keyframes ak-field-pulse {
    0% { background-color: #f0fdf4; border-color: #22c55e; }
    100% { background-color: transparent; }
}
