.mtgr-nearest { margin: 1rem 0; text-align: left; }
.mtgr-nearest [hidden] { display: none !important; }
.mtgr-nearest [data-mtgr-nearest-find] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    box-sizing: border-box;
    margin: 0;
    max-width: 100%;
    min-height: 56px;
    padding: .8rem 1.35rem;
    border: 2px solid #c2410c;
    border-radius: 14px;
    background: #c2410c;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .02em;
    text-transform: none;
    text-shadow: none;
    white-space: normal;
    box-shadow: 0 5px 14px rgba(154, 52, 18, .24);
    cursor: pointer;
}
/* Decorative CSS icon survives the existing JS text updates without changing the button name. */
.mtgr-nearest [data-mtgr-nearest-find]::before {
    content: "";
    display: block;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' fill-rule='evenodd' d='M12 2a8 8 0 0 0-8 8c0 6 8 12 8 12s8-6 8-12a8 8 0 0 0-8-8zm0 5a3 3 0 1 1 0 6 3 3 0 0 1 0-6z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' fill-rule='evenodd' d='M12 2a8 8 0 0 0-8 8c0 6 8 12 8 12s8-6 8-12a8 8 0 0 0-8-8zm0 5a3 3 0 1 1 0 6 3 3 0 0 1 0-6z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.mtgr-nearest [data-mtgr-nearest-find]:hover:not(:disabled),
.mtgr-nearest [data-mtgr-nearest-find]:active:not(:disabled) { background: #9a3412; border-color: #9a3412; color: #fff; }
.mtgr-nearest [data-mtgr-nearest-find]:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 4px; }
.mtgr-nearest [data-mtgr-nearest-find]:disabled { opacity: 1; background: #9a3412; border-color: #9a3412; color: #fff; cursor: wait; box-shadow: none; }
.mtgr-nearest[aria-busy="true"] [data-mtgr-nearest-find]::before {
    box-sizing: border-box;
    -webkit-mask: none;
    mask: none;
    background: none;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: mtgr-nearest-spin .8s linear infinite;
}
@keyframes mtgr-nearest-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .mtgr-nearest[aria-busy="true"] [data-mtgr-nearest-find]::before { animation: none; }
}
.mtgr-nearest [data-mtgr-nearest-status] { margin: .5rem 0; font-size: .95em; line-height: 1.5; }
.mtgr-nearest [data-mtgr-nearest-results] { display: grid; gap: .65rem; }
.mtgr-nearest__card { display: grid; gap: .4rem; padding: .85rem; border: 1px solid #ddd; border-radius: 6px; overflow-wrap: anywhere; }
.mtgr-nearest__card h3 { margin: 0; font-size: 1.1rem; line-height: 1.4; }
.mtgr-nearest__card p { margin: 0; line-height: 1.5; }
.mtgr-nearest__go { justify-self: start; display: inline-flex; align-items: center; padding: .4rem .9rem; border: 1px solid currentColor; border-radius: 4px; line-height: 1.5; text-decoration: none; }
.mtgr-nearest a:focus-visible, .mtgr-nearest button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.mtgr-nearest .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 480px) {
    .mtgr-nearest [data-mtgr-nearest-find] { width: 100%; padding-inline: .85rem; }
    .mtgr-nearest__card { padding: .65rem; }
}
