/**
 * Usage
 *
 * <fieldset class="form__fieldset">
 *     <legend class="form__legend">Group</legend>
 *     <p class="form__group">
 *         <label class="form__label">
 *             <input type="hidden" name="name" value="0" />
 *             <input class="form__checkbox" type="checkbox" name="name" value="1" />
 *             Label
 *         </label>
 *     </p>
 *     <p class="form__group">
 *         <label class="form__label">
 *             <input type="hidden" name="name" value="0" />
 *             <input class="form__checkbox" type="checkbox" name="name" value="1"/>
 *             Label
 *         </label>
 *     </p>
 * </fieldset>
 */

.form__fieldset {
    background-color: var(--fieldset-bg);
    border: var(--fieldset-border);
    border-radius: var(--fieldset-border-radius);
    color: var(--fieldset-fg);
    font-size: 14px;
    font-weight: normal;
    max-width: 100%;
    outline: none;
    padding: 6px 12px 12px 12px;
    width: 100%;
    height: 100%;
}

/* Firefox/Chrome don't seem to let you use `resize` on a fieldset element, so this has to be used instead */
.form__fieldset-checkbox-container {
    margin: -6px -12px -12px -12px;
    padding: 6px 12px 12px 12px;
    height: 160px;
    overflow-y: auto;
    resize: vertical;
}

.form__fieldset-checkbox-container--shrink {
    margin: -6px -12px -12px -12px;
    padding: 6px 12px 12px 12px;
    max-height: 160px;
    overflow-y: auto;
    resize: vertical;
}
