.formatrica-builder {
    max-width: 1600px;
    margin-top: 20px;
    margin-right: 20px;
}

.formatrica-builder .fmt-builder input,
.formatrica-builder .fmt-builder textarea,
.formatrica-builder .fmt-builder select {
    border-radius: 6px;
    border: 1px solid #dcdcde;
    padding: 8px 10px;
    font-size: 14px;
}

.formatrica-builder .notice {
    margin: 0;
}

/* Unified close button for every modal + the field drawer (hexagon-letter-x). */
.fmt-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #dcdcde;
    border-radius: 50%;
    background: #fff;
    color: #50575e;
    cursor: pointer;
    transition: background-color 0.12s ease, border-color 0.12s ease;
}

.fmt-close-btn:hover {
    background: #f0f0f1;
    border-color: #c3c4c7;
}

.fmt-close-btn:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 1px;
}

.fmt-close-btn img {
    width: 20px;
    height: 20px;
    display: block;
    pointer-events: none;
}

/* Colour pickers: a small square swatch beside an inline hex field. A native
   colour input inside a settings row would otherwise stretch to full width. */
input[type="color"] {
    max-width: 60px;
    height: 30px;
    padding: 2px;
    cursor: pointer;
}

.fmt-color-field {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.fmt-color-field__swatch {
    width: 44px;
    min-width: 44px;
    height: 30px;
    padding: 2px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    flex: 0 0 auto;
}

.fmt-color-field__hex {
    width: 130px;
    font-family: monospace;
}
