/* Nearby locator: the button, what it says while it waits, and what it offers when the
   position does not come. The notice and its buttons are plain Bootstrap (.alert, .btn):
   only layout and the button itself are styled here. */

/* A Bootstrap .btn sets display itself and would win over the [hidden] attribute the
   script toggles. */
.nearby-locator [hidden] {
    display: none !important;
}

/* The site sets its own font on every <p>; inside the widget the text follows the
   container, so the message, the steps and the buttons read as one block. */
.nearby-locator p {
    font-family: inherit;
}

.nearby-button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    margin-top: 16px;
    background-color: #f9fafb;
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 600;
    text-align: left;
    transition: border 0.2s ease;
}

.nearby-button svg {
    flex: 0 0 auto;
}

.nearby-button .text-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 1 auto;
    line-height: 1.2;
}

.nearby-button .muted.small {
    font-weight: 400;
    font-size: 13px;
    color: #6b7280;
}

.nearby-button:hover,
.nearby-button:focus-visible {
    border-color: #0d7ff2;
    cursor: pointer;
}

.nearby-button.loading {
    opacity: .75;
    cursor: progress;
}

.nearby-button .nearby-spinner {
    display: none;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border: 2px solid #911351;
    border-top-color: transparent;
    border-radius: 50%;
    animation: nearby-locator-spin .8s linear infinite;
}

.nearby-button.loading .nearby-spinner {
    display: inline-block;
}

@keyframes nearby-locator-spin {
    0% { transform: rotate(0); }
    100% { transform: rotate(360deg); }
}

.nearby-status p {
    margin: 10px 2px 0;
    font-size: 14px;
    color: #4b5563;
}

.nearby-status .btn {
    margin: 8px 0 0;
    display: block;
}

.nearby-notice {
    margin: 12px 0 0;
    text-align: left;
}

.nearby-notice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.nearby-help {
    margin-top: 12px;
    font-size: 14px;
}

.nearby-help summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

.nearby-help summary::-webkit-details-marker {
    display: none;
}

/* The site's reset turns <summary> into a plain block, which removes the native
   triangle: without a marker of its own nothing says the line can be opened. */
.nearby-help summary::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-right: 8px;
    border-style: solid;
    border-width: 5px 0 5px 7px;
    border-color: transparent transparent transparent currentColor;
    transition: transform .15s ease;
}

.nearby-help[open] summary::before {
    transform: rotate(90deg);
}

.nearby-help ol {
    margin: 8px 0 0;
    padding-left: 20px;
}

.nearby-help li + li {
    margin-top: 4px;
}

@media (max-width: 767px) {
    /* Two full-width targets are easier to hit with a thumb than two side by side. */
    .nearby-notice-actions .btn {
        flex: 1 1 100%;
    }
}
