.zip-finder {
    width: 100%;
    clear: both;
}

.zip-finder *,
.zip-finder *::before,
.zip-finder *::after {
    box-sizing: border-box;
}

.zip-finder-search {
    display: flex;
    align-items: stretch;
    margin: 0 auto 20px;
    max-width: 480px;
    border-radius: 6px;
    border: 5px solid var(--zip-finder-border-color, #c7d2fe);
    background: #ffffff;
    overflow: hidden;
}

.zip-finder-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px 15px;
    border: 0 !important;
    font-size: 1.05rem;
    background: #ffffff;
}

.zip-finder-input:focus {
    outline: none;
}

.zip-finder-button {
    flex: 0 0 64px;
    min-height: 48px;
    border: none;
    cursor: pointer;
    background-color: transparent;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 32px 32px;
    background-position: center;
}

.zip-finder-button:hover,
.zip-finder-button:active,
.zip-finder-button:focus {
    background-color: transparent;
}

.zip-finder-alert {
    display: none;
    color: #b91c1c;
    text-align: center;
    margin: 10px auto;
    max-width: 720px;
}

.zip-finder-map {
    width: 100%;
    min-height: 360px;
    margin: 0 0 22px;
    border-radius: 8px;
    overflow: hidden;
    background: #eef2ff;
}

.zip-finder-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.zip-finder-result-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 7px;
    background-color: #ffffff;
    color: #2d2d2e;
}

.zip-finder-result-wrap:nth-child(even) {
    background-color: #eef2ff;
}

.zip-finder-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.zip-finder-pin {
    flex: 0 0 24px;
    color: #1f2236;
    line-height: 1;
}

.zip-finder-content {
    min-width: 0;
}

.zip-finder-title {
    font-weight: 700;
    font-size: 1.08rem;
    line-height: 1.35;
}

.zip-finder-meta {
    margin-top: 4px;
    font-size: 0.94rem;
    opacity: 0.78;
    line-height: 1.35;
}

.zip-finder-detail-link {
    flex: 0 0 auto;
    font-weight: 700;
    text-decoration: none;
}

.zip-finder-pagination {
    clear: both;
    margin: 10px 0 25px;
    text-align: center;
}

.zip-finder-pagination-inner {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.zip-finder-pagination button {
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
}

.zip-finder-pagination button.zip-finder-page-control:not(:disabled) {
    background-color: var(--zip-finder-btn-bg);
    color: var(--zip-finder-btn-color);
}

.zip-finder-pagination button.zip-finder-page-number {
    color: var(--zip-finder-pagination-text-color, inherit);
}

.zip-finder-pagination button.is-active {
    font-weight: 700;
}

.zip-finder-pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.zip-finder-pagination-current,
.zip-finder-pagination-ellipsis {
    padding: 0 4px;
    color: var(--zip-finder-pagination-text-color, inherit);
}

.zip-finder-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media only screen and (max-width: 860px) {
    .zip-finder-results {
        grid-template-columns: 1fr;
    }

    .zip-finder-result-wrap {
        align-items: flex-start;
        flex-direction: column;
    }

    .zip-finder-search {
        max-width: 100%;
    }
}
