html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    color: #17212b;
    background: #eef3f6;
    font-family: Arial, Helvetica, sans-serif;
    -webkit-text-size-adjust: 100%;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

[hidden] {
    display: none !important;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.gps-app {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #dce6ec;
}

.gps-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    z-index: 30;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    background: #fbfcfd;
    border-bottom: 1px solid #c9d5dc;
    box-sizing: border-box;
    padding: 7px 8px 7px 12px;
}

.gps-heading {
    min-width: 0;
    padding-right: 8px;
}

.gps-title {
    font-size: 18px;
    line-height: 20px;
    font-weight: 700;
    color: #102033;
}

.gps-meta {
    margin-top: 2px;
    max-width: 68vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #536879;
    font-size: 12px;
    line-height: 15px;
}

.gps-menu-button {
    min-width: 70px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #9cafbd;
    border-radius: 7px;
    background: #ffffff;
    color: #102033;
    font-weight: 700;
}

.gps-menu-button:active,
.gps-menu button:active,
.gps-menu a:active {
    background: #e8f0f5;
}

.gps-menu {
    position: absolute;
    top: 50px;
    right: 8px;
    width: 250px;
    max-width: 92vw;
    z-index: 40;
    background: #ffffff;
    border: 1px solid #bccbd5;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 32, 45, 0.20);
    overflow: hidden;
}

.gps-menu button,
.gps-menu a {
    display: block;
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    padding: 11px 14px;
    border: 0;
    border-bottom: 1px solid #edf2f5;
    background: #ffffff;
    color: #17212b;
    text-align: left;
    text-decoration: none;
    line-height: 20px;
}

.gps-menu button:last-child,
.gps-menu a:last-child {
    border-bottom: 0;
}

.gps-map {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: #d8e2e8;
}

.gps-map-message {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    padding: 10px 14px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.94);
    color: #344958;
    font-size: 14px;
    text-align: center;
}

.gps-status {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 20;
    box-sizing: border-box;
    min-height: 32px;
    padding: 8px 10px;
    border-radius: 7px;
    background: rgba(18, 29, 39, 0.88);
    color: #ffffff;
    font-size: 13px;
    line-height: 16px;
    text-align: center;
}

.gps-status.gps-status-quiet {
    opacity: 0.84;
}

.gps-permission-prompt {
    position: absolute;
    top: 64px;
    left: 8px;
    right: 8px;
    bottom: auto;
    z-index: 21;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    box-sizing: border-box;
    padding: 8px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #bbc9d2;
    box-shadow: 0 4px 14px rgba(15, 32, 45, 0.18);
    color: #17212b;
}

.gps-permission-prompt span {
    min-width: 0;
    padding-right: 8px;
    font-size: 13px;
    line-height: 17px;
}

.gps-permission-prompt button,
.gps-primary-button {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #116149;
    border-radius: 7px;
    background: #14775a;
    color: #ffffff;
    font-weight: 700;
    white-space: nowrap;
}

.gps-secondary-button {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #9cafbd;
    border-radius: 7px;
    background: #ffffff;
    color: #17212b;
    font-weight: 700;
}

.gps-user-marker {
    position: absolute;
    width: 140px;
    height: 60px;
    margin-left: -70px;
    margin-top: -60px;
    text-align: center;
    pointer-events: none;
}

.gps-marker-pin {
    position: absolute;
    left: 50%;
    bottom: 5px;
    width: 22px;
    height: 22px;
    margin: 0 0 0 -13px;
    border: 2px solid #ffffff;
    border-radius: 50% 50% 50% 0;
    background: #1f6fb2;
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.28);
}

.gps-marker-pin span {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
}

.gps-marker-label {
    display: inline-block;
    position: absolute;
    left: 50%;
    bottom: 35px;
    max-width: 132px;
    box-sizing: border-box;
    margin: 0;
    padding: 3px 6px;
    border: 1px solid #91a3af;
    border-radius: 5px;
    background: #ffffff;
    color: #152230;
    font-size: 12px;
    line-height: 15px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
}

.gps-user-marker-local .gps-marker-pin {
    background: #14775a;
}

.gps-user-marker-local .gps-marker-label {
    border-color: #14775a;
}

.gps-modal-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    background: rgba(15, 25, 34, 0.50);
}

.gps-modal-panel {
    width: 100%;
    max-height: 88%;
    box-sizing: border-box;
    background: #ffffff;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    overflow: hidden;
}

.gps-modal-header {
    height: 52px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    box-sizing: border-box;
    padding: 0 10px 0 14px;
    border-bottom: 1px solid #e2e8ec;
}

.gps-modal-header h2 {
    margin: 0;
    color: #102033;
    font-size: 17px;
    line-height: 22px;
}

.gps-modal-close {
    width: 38px;
    height: 38px;
    border: 1px solid #9cafbd;
    border-radius: 7px;
    background: #ffffff;
    color: #17212b;
    font-weight: 700;
}

.gps-modal-body {
    box-sizing: border-box;
    max-height: 60vh;
    overflow: auto;
    padding: 14px;
    color: #17212b;
}

.gps-modal-actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    box-sizing: border-box;
    padding: 10px 14px 14px;
    border-top: 1px solid #e2e8ec;
}

.gps-modal-actions button {
    margin-left: 8px;
}

.gps-field-label {
    display: block;
    margin-bottom: 6px;
    color: #344958;
    font-size: 13px;
    line-height: 17px;
    font-weight: 700;
}

.gps-input,
.gps-share-url {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #9cafbd;
    border-radius: 7px;
    background: #ffffff;
    color: #17212b;
}

.gps-input {
    height: 42px;
    padding: 0 10px;
}

.gps-share-url {
    min-height: 66px;
    margin-top: 12px;
    padding: 8px;
    resize: none;
    font-size: 12px;
    line-height: 16px;
}

.gps-qr {
    width: 256px;
    max-width: 100%;
    margin: 4px auto 0;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #d7e0e6;
    border-radius: 8px;
    background: #ffffff;
}

.gps-qr img,
.gps-qr canvas {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.gps-data-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.gps-data-item {
    padding: 10px 0;
    border-bottom: 1px solid #e5ecef;
}

.gps-data-item:last-child {
    border-bottom: 0;
}

.gps-data-name {
    margin-bottom: 6px;
    color: #102033;
    font-weight: 700;
    line-height: 20px;
}

.gps-data-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 2px 0;
    color: #344958;
    font-size: 12px;
    line-height: 16px;
}

.gps-data-row span:first-child {
    padding-right: 12px;
    color: #607484;
}

.gps-data-row span:last-child {
    max-width: 62%;
    overflow-wrap: break-word;
    text-align: right;
    color: #17212b;
}

@media (min-width: 700px) {
    .gps-modal-backdrop {
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }

    .gps-modal-panel {
        max-width: 540px;
        border-radius: 8px;
    }

    .gps-status {
        left: 50%;
        right: auto;
        width: 480px;
        margin-left: -240px;
    }

    .gps-permission-prompt {
        top: 64px;
        left: 50%;
        right: auto;
        width: 480px;
        margin-left: -240px;
    }
}
