/* Shared public/login controls; WordPress admin and its toolbar keep their own styles. */
body:not(.wp-admin) select:not([multiple]):is(:not([size]),[size="0"],[size="1"]):not(:where(#wpadminbar,#wpadminbar *)) {
    -webkit-appearance:none;
    appearance:none;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23667185' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat:no-repeat;
    background-position:right 12px center;
    background-size:16px 16px;
    padding-inline-end:38px;
}

/* Native marks include checked, mixed and disabled states. Hour tiles use an invisible overlay. */
body:not(.wp-admin) input[type="checkbox"]:not(:where(#wpadminbar,#wpadminbar *,.tx-hours input)) {
    -webkit-appearance:auto;
    appearance:auto;
    accent-color:#dc2635;
    box-sizing:border-box;
    width:16px;
    height:16px;
    min-width:16px;
    min-height:16px;
    flex:0 0 16px;
    margin:0;
    padding:0;
    vertical-align:middle;
}

body:not(.wp-admin) :is(a,button,summary,select,input[type="checkbox"],input[type="radio"],input[type="submit"],input[type="button"],input[type="reset"],[role="button"]):not(:where(#wpadminbar,#wpadminbar *,.tx-hours input)) {
    -webkit-tap-highlight-color:transparent;
}
body:not(.wp-admin) :is(a,button,summary,select,input[type="checkbox"],input[type="radio"],input[type="submit"],input[type="button"],input[type="reset"],[role="button"]):not(:where(#wpadminbar,#wpadminbar *,.tx-hours input)):focus:not(:focus-visible) {
    outline:none;
    box-shadow:none;
}
body:not(.wp-admin) :is(a,button,summary,select,input[type="checkbox"],input[type="radio"],input[type="submit"],input[type="button"],input[type="reset"],[role="button"]):not(:where(#wpadminbar,#wpadminbar *,.tx-hours input)):focus-visible {
    outline:2px solid #dc2635;
    outline-offset:3px;
}

/* Primary action text stays readable in every pointer and keyboard state. */
.tx-app .tx-primary,
.tx-app .tx-primary:is(:link,:visited,:hover,:focus,:focus-visible,:active) {
    color:#fff!important;
}

.tx-app .tx-shell-sidebar-bottom .tx-cabinet-credit {
    margin:0;
    padding:0;
    color:inherit;
    font:inherit;
    text-align:left;
    overflow-wrap:anywhere;
}
.tx-app .tx-shell-sidebar-bottom .tx-cabinet-credit a {
    color:inherit;
    text-decoration:none;
}
.tx-app .tx-shell-sidebar-bottom .tx-cabinet-credit a:hover {
    color:#b92334;
    text-decoration:underline;
}

/* Keep the field's thin focus border without the surrounding glow. */
body:not(.wp-admin) .tx-shell-search:focus-within,
body:not(.wp-admin) .tx-search:focus-within {
    box-shadow:none;
}

@media (forced-colors:active) {
    body:not(.wp-admin) select:not([multiple]):is(:not([size]),[size="0"],[size="1"]):not(:where(#wpadminbar,#wpadminbar *)) {
        -webkit-appearance:auto;
        appearance:auto;
        background-image:none;
    }
}
