/* Wrapper for the "More" button */
.springgds-more-wrapper {
    margin-top: 8px;
    display: flex;
    justify-content: center;
}

/* Smaller, centered button with similar styling */
.springgds-more-button {
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid #ddd;
    background: #fafafa;
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s ease;
}

.springgds-more-button:hover {
    border-color: #888;
    background: #f0f0f0;
}

/* Modal backdrop */
.springgds-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* phpcs:ignore */
.springgds-locations-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.springgds-location-box {
    border: 1px solid #ddd;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Carrier at the top in bold */
.springgds-carrier {
    font-weight: bold;
    margin-bottom: 3px;
}

/* Name under carrier */
.springgds-name {
    font-size: 15px;
    margin-bottom: 6px;
}

/* Address */
.springgds-address {
    color: #555;
    font-size: 14px;
}

/* Distance right-aligned */
.springgds-distance {
    position: absolute;
    right: 14px;
    top: 14px;
    font-weight: bold;
}

.springgds-location-box {
    border: 1px solid #ddd;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    transition: 0.2s ease;
}

.springgds-location-box:hover {
    border-color: #888;
}

.springgds-location-box.selected {
    border-color: #0073aa;
    background: #e6f4ff;
}
/* Modal content */
.springgds-modal {
    background: #ffffff;
    border-radius: 8px;
    padding: 16px 18px;
    max-width: 520px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Modal header */
.springgds-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.springgds-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.springgds-modal-close {
    border: none;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

/* Search input */
.springgds-search-input {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Scrollable list inside modal */
.springgds-modal-list {
    overflow-y: auto;
    max-height: 60vh;
    padding-right: 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Reuse location box style inside modal */
.springgds-location-box--modal {
    cursor: pointer;
}


/* Fix search field overflowing */
.springgds-search-input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;

    display: block;
    flex: 0 0 auto;

    /* optional: make it visually cleaner */
    padding: 8px 10px;
    margin-bottom: 12px;
}

/* Ensure the modal layout never squeezes the input */
.springgds-modal {
    width: 90%;
    max-width: 520px;
    box-sizing: border-box;
    overflow: hidden;
}