.container.billing-help-admin {
    max-width: 70rem;
    margin-inline: auto;
}

.billing-help-admin form label {
    font-weight: 700;
}

.billing-help-admin .form-control,
.billing-help-admin .form-select,
.billing-help-admin .form-check-input {
    border-width: 2px;
    border-style: solid;
}

/* The site focus rule squares off .form-control and adds a second blue ring. */
.billing-help-form .form-control:focus,
.billing-help-form .form-select:focus {
    border-color: #006877;
    border-radius: var(--bs-border-radius, .375rem);
    outline: 2px solid transparent;
    box-shadow: 0 0 0 3px rgba(0, 104, 119, .22);
}

.billing-help-form .input-group:focus-within {
    outline: none;
}

.billing-help-form .form-check-input:focus {
    border-color: #006877;
    outline: 2px solid transparent;
    box-shadow: 0 0 0 3px rgba(0, 104, 119, .22);
}

.billing-root-cause-editor { position: relative; }
.billing-root-cause-editor > input { padding-inline-end: 2.75rem; }

.billing-root-cause-toggle {
    position: absolute;
    inset-block: 2px;
    inset-inline-end: 2px;
    width: 2.5rem;
    border: 0;
    border-radius: .375rem;
    background: transparent;
    color: #36555a;
    cursor: pointer;
}

.billing-root-cause-toggle::after {
    content: "";
    display: inline-block;
    width: .5rem;
    height: .5rem;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: translateY(-.15rem) rotate(45deg);
}

.billing-root-cause-menu {
    position: absolute;
    z-index: 1000;
    inset-inline: 0;
    top: calc(100% + .25rem);
    background: white;
    border: 1px solid #a4b7b9;
    border-radius: .375rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

.billing-root-cause-menu ul {
    margin: 0;
    padding: 0;
    max-height: min(16rem, 38vh);
    overflow-y: auto;
    list-style: none;
}

.billing-root-cause-menu [role="option"],
.billing-root-cause-empty {
    padding: .45rem .75rem;
    overflow-wrap: anywhere;
}

.billing-root-cause-menu [role="option"] { cursor: pointer; }
.billing-root-cause-menu [aria-selected="true"] { font-weight: 700; }
.billing-root-cause-menu [role="option"]:hover,
.billing-root-cause-menu .is-active { background: #e0f1f2; }

@media (forced-colors: active) {
    .billing-help-form .form-control:focus,
    .billing-help-form .form-select:focus,
    .billing-help-form .form-check-input:focus { outline: 2px solid Highlight; }
    .billing-root-cause-menu .is-active { outline: 2px solid Highlight; outline-offset: -2px; }
}
