@layer fc.components {
.fc-button-group {
display: inline-flex;
align-items: stretch;
gap: 0;
--fc-btn-press-scale: 1;
min-inline-size: 0;
max-inline-size: 100%;
}
.fc-button-group__item {
flex: 1 1 auto;
min-inline-size: 0;
border-radius: var(--fc-joined-inner-radius, 0);
white-space: normal;
overflow-wrap: anywhere;
}
.fc-button-group__item:first-child {
border-start-start-radius: min(var(--fc-btn-radius, var(--fc-radius-lg)), var(--fc-btn-corner-limit, calc(var(--fc-size-target-comfortable) / 2)));
border-end-start-radius: min(var(--fc-btn-radius, var(--fc-radius-lg)), var(--fc-btn-corner-limit, calc(var(--fc-size-target-comfortable) / 2)));
}
.fc-button-group__item:last-child {
border-start-end-radius: min(var(--fc-btn-radius, var(--fc-radius-lg)), var(--fc-btn-corner-limit, calc(var(--fc-size-target-comfortable) / 2)));
border-end-end-radius: min(var(--fc-btn-radius, var(--fc-radius-lg)), var(--fc-btn-corner-limit, calc(var(--fc-size-target-comfortable) / 2)));
}
.fc-button-group__item[aria-pressed="true"] {
background-color: var(--fc-color-selected-bg);
color: var(--fc-color-selected-fg);
border-color: var(--fc-color-accent-border);
}
@media (hover: hover) {
.fc-button-group__item[aria-pressed="true"]:hover:not(:disabled, [aria-disabled="true"]) {
text-decoration: underline;
text-underline-offset: 0.2em;
}
}
.fc-button-group__item:disabled,
.fc-button-group__item[aria-disabled="true"] {
background-color: var(--fc-color-disabled-bg);
color: var(--fc-color-disabled-fg);
border-color: var(--fc-color-disabled-border);
cursor: not-allowed;
}
.fc-button-group__item:not(:first-child) {
margin-inline-start: calc(-1 * var(--fc-border-width-control, var(--fc-border-width-thin)));
}
.fc-button-group__item:focus-visible {
position: relative;
z-index: var(--fc-z-raised);
}
@media (forced-colors: active) {
.fc-button-group__item[aria-pressed="true"] {
background-color: Highlight;
color: HighlightText;
border-color: Highlight;
}
.fc-button-group__item:disabled,
.fc-button-group__item[aria-disabled="true"] {
background-color: ButtonFace;
color: GrayText;
border-color: GrayText;
}
}
}