:root {
    --bs-warning: #FC6858;
    --bs-warning-rgb: 252, 104, 88;
    --cm-theme-primary: #13A1A3;
    --cm-theme-secondary: #AED045;
    --cm-focus-colour: var(--cm-theme-primary);
    --cm-focus-ring: 0 0 0 0.25rem color-mix(in srgb, var(--cm-focus-colour) 25%, transparent);
}

a:focus-visible,
.nav-link:focus-visible,
.btn:focus-visible,
.btn-check:focus-visible + .btn,
.dropdown-item:focus,
.form-control:focus,
.form-check-input:focus,
.form-select:focus {
    outline: 0;
    border-color: var(--cm-focus-colour);
    box-shadow: var(--cm-focus-ring);
}

.form-check-input:checked {
    background-color: var(--cm-theme-primary);
    border-color: var(--cm-theme-primary);
}

.dropdown-item:active {
    background-color: var(--cm-theme-primary);
    color: var(--bs-dropdown-link-active-color);
}

.btn-primary {
    --bs-btn-bg: var(--cm-theme-primary);
    --bs-btn-focus-box-shadow: var(--cm-focus-ring);
    --bs-btn-border-color: var(--cm-theme-secondary);
    --bs-btn-hover-bg: color-mix(in srgb, var(--cm-theme-primary) 90%, black);
    --bs-btn-hover-border-color: var(--cm-theme-secondary);
    --bs-btn-active-bg: color-mix(in srgb, var(--cm-theme-primary) 80%, black);
    --bs-btn-active-border-color: var(--cm-theme-secondary);
    --bs-btn-disabled-bg: var(--cm-theme-primary);
    --bs-btn-disabled-border-color: var(--cm-theme-secondary);
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.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, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.turbo-progress-bar {
    visibility: hidden;
}

.uds-list {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.25rem 0 0;
    scrollbar-width: thin;
}

.uds-list::-webkit-scrollbar {
    height: 0.5rem;
}

.uds-button {
    flex: 0 0 auto;
    max-width: min(22rem, calc(100vw - 8rem));
}

.uds-button:focus,
.uds-button:active:focus {
    box-shadow: none;
}

.uds-label {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 2rem), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 2rem), transparent 100%);
}

.active-uds-summary {
    min-width: 0;
}

.active-uds-details {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}
