#wcfp-apm-selector {
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    margin-top: 10px;
    border-radius: 5px;
}

.wcfp-selection-info {
    padding: 10px;
    background-color: #eef7ff;
    border: 1px solid #b3d7f5;
    border-radius: 3px;
    margin-bottom: 15px;
}

#wcfp-selected-apm-name {
    font-style: italic;
    color: #005a9c;
}

#wcfp-search-input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
}

.wcfp-list-container {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #eee;
    margin-top: 10px;
}

.wcfp-list-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.wcfp-list-item:hover {
    background-color: #f0f0f0;
}

.wcfp-list-item.selected {
    background-color: #d1e7fd;
    font-weight: bold;
}

.wcfp-list-item h5 {
    margin: 0 0 5px 0;
    font-size: 14px;
}

.wcfp-list-item p {
    margin: 0;
    font-size: 12px;
    color: #555;
}

/* Leaflet map popup style */
.leaflet-popup-content-wrapper {
    border-radius: 3px;
}

.leaflet-popup-content .select-button {
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

/* Add this to the end of assets/css/checkout.css */

#wcfp-load-terminals-btn.loading {
    cursor: wait;
    opacity: 0.7;
}

#wcfp-apm-selector-wrapper {
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    margin-top: 10px;
    border-radius: 5px;
    display: none; /* Hidden by default */
}

/* === FoxPost Checkout Modal Styles === */

/* Alapszintű container */
.wcfp-selector-main-content {
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    margin-top: 10px;
    border-radius: 5px;
}

/* Kiválasztott automata megjelenítése */
.wcfp-selection-info {
    padding: 15px;
    background-color: #eef7ff;
    border: 1px solid #b3d7f5;
    border-radius: 5px;
    margin-bottom: 15px;
}

.wcfp-selected-details {
    margin: 10px 0;
}

#wcfp-selected-apm-name {
    font-weight: bold;
    color: #005a9c;
}

#wcfp-selected-apm-address {
    color: #666;
}

/* Modal overlay */
.wcfp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal content */
.wcfp-modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Modal header */
.wcfp-modal-header {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.wcfp-modal-header h3 {
    margin: 0;
    color: #333;
}

.wcfp-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wcfp-modal-close:hover {
    color: #000;
}

/* Modal body */
.wcfp-modal-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    min-height: 400px;
}

/* Keresés */
.wcfp-search-container {
    margin-bottom: 20px;
}

#wcfp-search-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

#wcfp-search-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.wcfp-search-status {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    min-height: 20px;
}

.wcfp-search-status.loading {
    color: #0073aa;
}

.wcfp-search-status.error {
    color: #d63638;
}

/* Eredmények */
.wcfp-no-search {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* Térkép */
#wcfp-map {
    height: 300px;
    width: 100%;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Lista */
.wcfp-list-container {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 5px;
}

.wcfp-list-item {
    padding: 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.wcfp-list-item:last-child {
    border-bottom: none;
}

.wcfp-list-item:hover {
    background-color: #f0f8ff;
}

.wcfp-list-item.selected {
    background-color: #d1e7fd;
    font-weight: bold;
}

.wcfp-list-item h5 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
}

.wcfp-list-item p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Modal footer */
.wcfp-modal-footer {
    padding: 20px;
    border-top: 1px solid #ddd;
    text-align: right;
    background-color: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

/* Leaflet popup custom styling */
.leaflet-popup-content-wrapper {
    border-radius: 5px;
}

.leaflet-popup-content .select-button {
    width: 100%;
    text-align: center;
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.leaflet-popup-content .select-button:hover {
    background-color: #005a87;
}

/* Responsive design */
@media (max-width: 768px) {
    .wcfp-modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .wcfp-modal-header,
    .wcfp-modal-body,
    .wcfp-modal-footer {
        padding: 15px;
    }
    
    #wcfp-map {
        height: 250px;
    }
    
    .wcfp-list-container {
        max-height: 200px;
    }
}

/* Loading states */
.wcfp-loading {
    opacity: 0.7;
    pointer-events: none;
}

.wcfp-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === Mapbox Modal Styles === */
.wcfp-map-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wcfp-map-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
}

.wcfp-map-modal-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 900px;
    height: 80vh;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}

.wcfp-map-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wcfp-map-modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.wcfp-map-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #888;
}
.wcfp-map-modal-close:hover {
    color: #000;
}

.wcfp-map-modal-body {
    flex-grow: 1;
    padding: 0;
    position: relative;
}

/* Mapbox UI felülírások, ha szükséges */
.mapboxgl-popup {
    z-index: 10;
}
.mapboxgl-popup-content {
    padding: 15px;
    border-radius: 5px;
}