/* Visual hierarchy for page content editing. */
.cms-page-sections .fi-fo-field-label-content {
    font-weight: 600;
}

.cms-page-sections .fi-fo-builder-item-header-label {
    font-size: 1.0625rem;
    font-weight: 800;
    line-height: 1.5rem;
    letter-spacing: -0.0125em;
}

.cms-content-group {
    margin-top: 0.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgb(229 231 235);
}

.dark .cms-content-group {
    border-top-color: rgb(255 255 255 / 0.12);
}

.cms-content-group > .fi-fo-field-label-col .fi-fo-field-label-content {
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.5rem;
    letter-spacing: -0.01em;
}

.cms-content-group > .fi-fo-field-content-col > .fi-fo-repeater > .fi-fo-repeater-actions .fi-link {
    font-weight: 600;
}

.cms-button-group {
    border-color: rgb(209 213 219);
    background: rgb(249 250 251 / 0.55);
}

.dark .cms-button-group {
    border-color: rgb(255 255 255 / 0.14);
    background: rgb(255 255 255 / 0.025);
}

.cms-button-group > legend {
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.5rem;
    letter-spacing: -0.01em;
}

.cms-page-sections .fi-fo-repeater-item-header-label {
    font-weight: 650;
}

.cms-image-preview {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 5rem;
    padding: 0.5rem;
    border: 1px solid rgb(209 213 219);
    border-radius: 0.75rem;
    background: rgb(249 250 251 / 0.7);
    color: rgb(22 163 74);
    font-size: 0.8125rem;
    font-weight: 600;
}

.cms-image-preview img {
    width: 7rem;
    height: 4.5rem;
    border-radius: 0.5rem;
    object-fit: contain;
    background: rgb(255 255 255 / 0.8);
}

.cms-image-preview--empty {
    color: rgb(107 114 128);
    font-weight: 500;
}

.dark .cms-image-preview {
    border-color: rgb(255 255 255 / 0.14);
    background: rgb(255 255 255 / 0.035);
    color: rgb(74 222 128);
}

.dark .cms-image-preview img {
    background: rgb(255 255 255 / 0.06);
}

.dark .cms-image-preview--empty {
    color: rgb(156 163 175);
}

.cms-gallery-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
    gap: 0.625rem;
    width: 100%;
}

.cms-gallery-preview a {
    position: relative;
    display: block;
    min-width: 0;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid rgb(209 213 219);
    border-radius: 0.625rem;
    background: rgb(249 250 251 / 0.7);
}

.cms-gallery-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cms-gallery-preview span {
    position: absolute;
    right: 0.3rem;
    bottom: 0.3rem;
    display: grid;
    place-items: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: rgb(0 0 0 / 0.72);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
}

.dark .cms-gallery-preview a {
    border-color: rgb(255 255 255 / 0.14);
    background: rgb(255 255 255 / 0.04);
}
