body:has(#location-modal:not([hidden])) {
    overflow: hidden;
}

.location-modal[hidden] {
    display: none;
}

.location-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.45);
}

.location-modal__content {
    width: 100%;
    max-width: 52rem;
    padding: 28px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.location-modal__content h3 {
    margin: 0 0 1.2rem;
    font-size: 2.4rem;
}

.location-modal__content p {
    margin: 0 0 2.4rem;
    line-height: 1.5;
    font-size: 1.6rem;
}

.location-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.location-modal__actions button {
    padding: 10px 18px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
}

#location-change {
    color: #fff;
    background: #3273dc;
    border-color: #3273dc;
}