.vehicle-meta-box {
    margin-bottom: 20px;
}
.vehicle-meta-box label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}
.vehicle-meta-box input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.vehicle-meta-box img {
    max-width: 200px;
    margin-top: 10px;
}

/* Stylizacja przycisku eksportu */
.export-csv-button {
    background: #0073aa;
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    text-decoration: none;
    margin-left: 5px;
    vertical-align: middle;
    line-height: 2.2;
    display: inline-block;
}
.export-csv-button:hover {
    background: #006799;
    color: #fff;
}

/* Nadpisanie domyślnego stylu WordPress dla vertical-align */
.wp-core-ui .export-csv-button {
    vertical-align: middle !important;
}

.pzo-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.pzo-form-group {
    margin-bottom: 20px;
}

.pzo-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.pzo-form-group input[type="text"],
.pzo-form-group select,
.pzo-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.pzo-form-group input[type="text"]:focus,
.pzo-form-group select:focus,
.pzo-form-group textarea:focus {
    border-color: #007bff;
    outline: none;
}

.pzo-form-group input:invalid,
.pzo-form-group select:invalid {
    border-color: #dc3545;
}

.pzo-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.pzo-radio-group input[type="radio"] {
    display: none;
}

.pzo-radio-group label {
    display: inline-block;
    padding: 12px 20px;
    background: #e9ecef;
    border-radius: 4px;
    font-size: 16px;
    font-weight: normal;
    cursor: pointer;
    transition: background-color 0.3s;
    min-width: 60px;
    text-align: center;
}

.pzo-radio-group input[type="radio"]:checked + label {
    background: #007bff;
    color: white;
}

.pzo-image, .pzo-vehicle-photo {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.pzo-fuel-bar {
    height: 20px;
    width: 0%;
    background-color: gray;
    border-radius: 4px;
    transition: width 0.3s ease, background-color 0.3s ease;
    margin: 10px 0;
}

.pzo-submit {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, opacity 0.3s;
    position: relative;
}

.pzo-submit:hover {
    background-color: #0056b3;
}

.pzo-submit.pzo-loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.pzo-submit.pzo-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

.pzo-success {
    color: #28a745;
    font-weight: bold;
    text-align: center;
    margin: 10px 0;
    padding: 10px;
    background: #e6ffe6;
    border-radius: 4px;
    opacity: 1;
    transition: opacity 0.5s ease-out;
    display: none;
}

.pzo-error {
    color: #dc3545;
    font-weight: bold;
    text-align: center;
    margin: 10px 0;
    padding: 10px;
    background: #ffe6e6;
    border-radius: 4px;
    display: none;
}

.pzo-field-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 0;
    display: none;
}

/* Stylizacja listy autouzupełniania */
.ui-autocomplete {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000 !important;
    width: auto !important;
}

.ui-autocomplete li {
    padding: 8px;
    cursor: pointer;
}

.ui-autocomplete li:hover {
    background: #f0f0f0;
}

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

@media (max-width: 600px) {
    .pzo-form {
        padding: 15px;
    }
    .pzo-radio-group {
        flex-direction: column;
        gap: 10px;
    }
    .pzo-radio-group label {
        padding: 15px;
        font-size: 18px;
    }
}

.pzo-reg-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 0;
    display: none;
}