/* Keep filled primary controls on the exact brand color in both themes. */
.fi-btn.fi-color-primary:not(.fi-outlined) {
    --bg: #ffdb2a;
    --dark-bg: #ffdb2a;
    --hover-bg: #ffe04a;
    --dark-hover-bg: #ffe04a;
    --text: #000;
    --dark-text: #000;
    --hover-text: #000;
    --dark-hover-text: #000;
}

.fi-toggle.fi-color-primary {
    --bg: #ffdb2a;
    --dark-bg: #ffdb2a;
}

.fi-toggle.fi-color-primary.fi-toggle-on > :first-child {
    background-color: #000;
}

.fi-toggle.fi-color-primary.fi-toggle-on .fi-icon {
    color: #ffdb2a;
}

input[type='checkbox'].fi-checkbox-input:not(.fi-invalid):not(:disabled):checked,
input[type='checkbox'].fi-checkbox-input:not(.fi-invalid):not(:disabled):indeterminate {
    background-color: #ffdb2a;
}

input[type='radio'].fi-radio-input:not(.fi-invalid):not(:disabled):checked {
    background-color: #ffdb2a;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23000' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E");
}

input[type='checkbox'].fi-checkbox-input:not(.fi-invalid):not(:disabled):checked {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23000' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E");
}

input[type='checkbox'].fi-checkbox-input:not(.fi-invalid):not(:disabled):indeterminate {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23000' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.5 6.75a1.25 1.25 0 0 0 0 2.5h7a1.25 1.25 0 0 0 0-2.5h-7z'/%3E%3C/svg%3E");
}
