/* **************************************** */
/* * FULL WIDTH TOOL LAYOUT */
/* **************************************** */
#zipCodeTool {
    padding: 18px 24px 40px;
    width: 100%;
}

#zipCodeTool .map-card {
    margin-top: 0;
}

#zipCodeTool .tool-hero {
    background: none;
    border: 0;
    grid-template-columns: minmax(0, 1fr) minmax(440px, 1fr);
    margin-bottom: 18px;
    padding: 0;
}

#zipMapStatus {
    color: var(--muted);
    margin: 0 0 14px;
}

#zipCodeMap {
    background: #eaf0f5;
    border: 1px solid var(--line);
    border-radius: 8px;
    height: 68vh;
    min-height: 420px;
    width: 100%;
    z-index: 0;
}

.zip-area-swatch {
    background: transparent;
    border: 2px solid #9f2424;
}

.zip-selected-swatch {
    background: transparent;
    border: 4px solid #92400e;
}

/* **************************************** */
/* * SEARCH AND MAP CONTROLS */
/* **************************************** */
#zipCodeSearch {
    justify-self: end;
    max-width: 440px;
    width: 100%;
}

#zipCodeSearch label {
    color: var(--navy);
    display: block;
    font-weight: 750;
    margin-bottom: 8px;
}

.zip-search-controls {
    display: grid;
    gap: 9px;
    grid-template-columns: minmax(0, 1fr) auto auto;
}

#zipCode {
    background: var(--white);
    border: 1px solid #9fb1c5;
    border-radius: 7px;
    color: var(--ink);
    font: inherit;
    min-height: 50px;
    padding: 0 14px;
    width: 100%;
}

#zipCodeSearchButton,
#resetZipMap {
    background: var(--blue);
    border: 0;
    border-radius: 7px;
    color: var(--white);
    cursor: pointer;
    font: inherit;
    font-weight: 750;
    min-height: 44px;
    padding: 10px 18px;
}

#zipCodeSearchButton:hover,
#resetZipMap:hover {
    background: var(--blue-dark);
}

#zipCode:focus-visible,
#zipCodeSearchButton:focus-visible,
#resetZipMap:focus-visible {
    outline: 3px solid var(--navy);
    outline-offset: 3px;
}

#zipCodeSearchButton:disabled,
#resetZipMap:disabled {
    cursor: wait;
    opacity: .65;
}

/* **************************************** */
/* * MOBILE LAYOUT */
/* **************************************** */
@media (max-width: 900px) {
    #zipCodeTool .tool-hero {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 680px) {
    #zipCodeTool {
        padding: 14px 12px 30px;
    }

    .zip-search-controls {
        grid-template-columns: minmax(0, 1fr);
    }

    #zipCodeMap {
        height: 65vh;
        min-height: 360px;
    }
}
