.hide {
    display: none;
}

body {
    font-family: helvetica;
}

.ui-sortable {
    margin-top: 15px;
}

.ui-sortable-handle {
    padding: 10px 10px;
    cursor: move;
    border: 1px solid var(--w-color-grey-150);
    font-size: 16px;
    background: var(--w-color-white);
    border-radius: .3125rem;
}

.ui-sortable-handle:hover,
.ui-sortable-handle:focus-within {
    border-color: var(--w-color-grey-200) !important;
}

.ui-icon-trash:hover.ui-icon-trash:before {
    color: var(--w-color-critical-200);
}

.ui-icon {
    margin-right: 10px;
}

.unchosen .action-choose {
    text-overflow: ellipsis;
    max-width: 25rem;
}

.login-logo {
    display: none;
}

.w-panel__wrapper.w-panel--nested div[data-contentpath] {
    border-radius: 10px;
    padding: 2px;
}

.w-panel__wrapper.w-panel--nested div[data-contentpath]:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Link block  */
.field.new_window_link_field {
    display: none;
}

/* Struct Block: Row */
.struct-block.struct-block--row {
    align-items: stretch;
    display: flex;
    gap: 20px;
}

.struct-block.struct-block--row > * {
    flex: 1
}

/* Title panel after a help panel */
/* Wagtail styles a title panel in the first two children as the page heading (.w-panel.title:nth-child(-n+2)),
   hiding its header and enlarging its input. Restore the regular title panel when a help panel comes first. */
.w-panel:not(.title) + .w-panel.title .w-panel__header {
    clip: auto;
    height: auto;
    margin: 0 0 .125rem;
    margin-inline-start: -1.25rem;
    overflow: visible;
    position: static;
    white-space: normal;
    width: auto;
}

@media screen and (min-width: 50em) {
    .w-panel:not(.title) + .w-panel.title .w-panel__header {
        margin-inline-start: calc((2 * 1.5rem + var(--header-gap)) * -1);
    }
}

.w-panel:not(.title) + .w-panel.title .w-panel__header :is(.w-panel__anchor, .w-panel__toggle) {
    display: inline-grid;
}

.w-panel:not(.title) + .w-panel.title .w-field {
    display: block;
}

.w-panel:not(.title) + .w-panel.title :is(input, textarea, .Draftail-Editor .public-DraftEditor-content),
.w-density-snug .w-panel:not(.title) + .w-panel.title :is(input, textarea, .Draftail-Editor .public-DraftEditor-content) {
    font-size: 1.5rem;
    font-weight: 700;
    margin-inline-start: 0;
    padding-inline-start: 1.25rem;
}

.w-panel:not(.title) + .w-panel.title :is(input, textarea, .Draftail-Editor .public-DraftEditor-content):not(:hover, :focus, :placeholder-shown, [aria-invalid=true]) {
    border-color: var(--w-color-border-field-default);
}
