/* Wrapper inputa NIP — flexbox żeby przycisk był w jednej linii z inputem */
.wgi-nip-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    flex-wrap: nowrap;
}

.wgi-nip-row .input-text,
.wgi-nip-row input[type="text"] {
    flex: 1;
    min-width: 0;
}

.wgi-fetch-button {
    display: inline-block;
    background-color: #0073aa;
    color: #ffffff !important;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.4;
    text-decoration: none !important;
    user-select: none;
    box-sizing: border-box;
}

.wgi-fetch-button:hover {
    background-color: #005a87;
    color: #ffffff !important;
}

.wgi-fetch-button.wgi-disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    pointer-events: none;
}

.wgi-loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: wgi-spin 1s linear infinite;
    flex-shrink: 0;
}

@keyframes wgi-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.wgi-message {
    margin-top: 10px;
}

.wgi-message .woocommerce-message {
    background-color: #e5f5e5;
    border-left: 4px solid #4caf50;
    padding: 10px;
    margin: 10px 0;
    color: #333333 !important;
    font-weight: 500;
}

.wgi-message .woocommerce-error {
    background-color: #ffe5e5;
    border-left: 4px solid #f44336;
    padding: 10px;
    margin: 10px 0;
    color: #333333 !important;
    font-weight: 500;
}
