/**
 * E-Bike Rental Manager - Frontend stílusok
 */

.ebike-rental-form {
    background: #f9f9f9;
    padding: 25px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ebike-rental-form h3 {
    margin-top: 0;
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
}

.ebike-rental-booking-form .form-group {
    margin-bottom: 20px;
}

.ebike-rental-booking-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
}

.ebike-rental-booking-form input[type="text"],
.ebike-rental-booking-form input[type="time"],
.ebike-rental-booking-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.ebike-rental-booking-form input[type="text"]:focus,
.ebike-rental-booking-form input[type="time"]:focus,
.ebike-rental-booking-form select:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

.ebike-rental-booking-form input[type="text"].ebike-datepicker {
    background: white;
    cursor: pointer;
}

.ebike-rental-booking-form input[type="time"] {
    margin-top: 8px;
}

/* Kiegészítők */
.ebike-accessories {
    background: white;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.accessory-item {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.accessory-item:last-child {
    border-bottom: none;
}

.accessory-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
    font-weight: normal;
}

.accessory-item input[type="checkbox"] {
    margin-right: 10px;
    width: auto;
}

/* Ár összesítő */
.ebike-price-summary {
    background: white;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
    border: 2px solid #4CAF50;
}

.price-loading {
    text-align: center;
    color: #777;
    font-style: italic;
}

.price-details .price-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.price-details .price-row:last-child {
    border-bottom: none;
}

.price-details .price-row.total {
    font-size: 18px;
    font-weight: 700;
    color: #4CAF50;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid #4CAF50;
}

.price-details .price-row span:last-child {
    font-weight: 600;
}

/* Kosárba tétel gomb */
.ebike-add-to-cart {
    text-align: center;
    margin-top: 20px;
}

.ebike-book-button {
    background: #4CAF50;
    color: white;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    text-transform: uppercase;
}

.ebike-book-button:hover:not(:disabled) {
    background: #45a049;
}

.ebike-book-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Elérhetőség üzenet */
.ebike-availability-message {
    text-align: center;
    margin-top: 15px;
    font-weight: 600;
}

.ebike-availability-message .available {
    color: #4CAF50;
}

.ebike-availability-message .unavailable {
    color: #f44336;
}

/* jQuery UI Datepicker testreszabás */
.ui-datepicker {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ui-datepicker-header {
    background: #4CAF50;
    color: white;
    border-radius: 8px 8px 0 0;
}

.ui-datepicker .ui-state-active {
    background: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

.ui-datepicker .ui-state-disabled {
    opacity: 0.3;
}

/* Kosár megjelenítés */
.woocommerce-cart .ebike-booking-details {
    background: #f0f8ff;
    padding: 10px;
    margin: 10px 0;
    border-left: 4px solid #2196F3;
}

.woocommerce-cart .ebike-booking-details dt {
    font-weight: 600;
    margin-top: 5px;
}

.woocommerce-cart .ebike-booking-details dd {
    margin-left: 0;
    margin-bottom: 5px;
}

/* Reszponzív dizájn */
@media (max-width: 768px) {
    .ebike-rental-form {
        padding: 15px;
    }

    .ebike-rental-form h3 {
        font-size: 20px;
    }

    .ebike-book-button {
        width: 100%;
        padding: 12px;
    }

    .price-details .price-row {
        font-size: 14px;
    }
}
