html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3Lm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiBmaWxsPSIjZmZmIj48cGF0aCBkPSJNMTIgMmExMCAxMCAwIDEgMCAwIDIwIDEwIDEwIDAgMCAwIDAtMjB6bTEgMTVoLTJ2LTJoMnYyem0wLTRoLTJWN2gydjZ6Ii8+PC9zdmc+) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder {
    text-align: start;
}

#blazor-error-ui {
    display: none;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2000;
    padding: 0.6rem 1.25rem 0.7rem;
    background: #fff3cd;
    color: #664d03;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.2);
}

    #blazor-error-ui .reload {
        margin-left: 0.4rem;
    }

    #blazor-error-ui .dismiss {
        position: absolute;
        top: 0.45rem;
        right: 0.75rem;
        cursor: pointer;
    }

.rrf-change-alert-email {
    margin-left: 0.45rem;
    color: #d5a348;
    font-size: 0.88em;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.rrf-change-alert-email:hover,
.rrf-change-alert-email:focus {
    color: #f0c66f;
}

html.rrf-installed #rrf-install-callout,
html.rrf-installed #install-app-button {
    display: none !important;
}

.rrf-install-callout {
    padding: 0.55rem 0;
    background: #f6f4ef;
}

.rrf-install-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(213, 163, 72, 0.42);
    border-radius: 0.8rem;
    background: #fff;
    box-shadow: 0 5px 16px rgba(17, 17, 17, 0.06);
}

.rrf-install-copy {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.rrf-install-badge {
    flex: 0 0 auto;
    padding: 0.2rem 0.44rem;
    border-radius: 999px;
    background: #d5a348;
    color: #111;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.rrf-install-copy strong {
    display: block;
    color: #171717;
    font-size: 0.95rem;
    line-height: 1.15;
}

.rrf-install-copy p {
    margin: 0.12rem 0 0;
    color: #6a655d;
    font-size: 0.82rem;
    line-height: 1.15;
}

.rrf-install-title-mobile,
.rrf-install-copy-mobile {
    display: none !important;
}

.rrf-home-install-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 0.4rem;
    min-height: 36px;
    padding: 0.4rem 0.7rem;
    border: 1px solid rgba(213, 163, 72, 0.65);
    border-radius: 0.5rem;
    background: rgba(213, 163, 72, 0.1);
    color: #9b6812;
    font-size: 0.84rem;
    font-weight: 800;
    white-space: nowrap;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.rrf-home-install-button:hover,
.rrf-home-install-button:focus {
    border-color: #d5a348;
    background: rgba(213, 163, 72, 0.2);
    color: #68450a;
}

@media (max-width: 700px) {
    .rrf-install-callout {
        padding: 0.3rem 0;
    }

    .rrf-install-card {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.45rem;
        margin: 0 0.55rem;
        padding: 0.55rem 0.6rem;
        border-radius: 0.7rem;
    }

    .rrf-install-copy {
        display: contents;
    }

    .rrf-install-badge {
        grid-column: 1;
        padding: 0.16rem 0.36rem;
        font-size: 0.58rem;
    }

    .rrf-install-text {
        grid-column: 2;
        min-width: 0;
    }

    .rrf-install-title-desktop,
    .rrf-install-copy-desktop {
        display: none !important;
    }

    .rrf-install-title-mobile {
        display: block !important;
    }

    .rrf-install-copy-mobile {
        display: none !important;
    }

    .rrf-install-copy strong {
        font-size: 0.82rem;
        line-height: 1.1;
    }

    .rrf-install-copy p {
        display: none;
    }

    .rrf-home-install-button {
        grid-column: 3;
        width: auto;
        min-height: 38px;
        padding: 0.42rem 0.6rem;
        gap: 0.3rem;
        border: 0;
        border-radius: 0.55rem;
        background: #111;
        color: #fff;
        font-size: 0.76rem;
    }

    .rrf-home-install-button:hover,
    .rrf-home-install-button:focus {
        background: #2a2419;
        color: #fff;
    }
}
