/* Search form */
form.meeting-search {
    max-width: 1000px;
}

form.meeting-search .row {
    width: 100%;
    margin-bottom: 16px;
}

form.meeting-search .row.submit-reset {
    gap: 16px;
    margin-top: 48px;
}

form.meeting-search .row .column {
    width: 100%;
    margin-bottom: 20px;
}

@media screen and (min-width: 768px) {
    form.meeting-search .row {
        display: flex;
        gap: 32px;
        margin-bottom: 8px;
    }

    form.meeting-search .row .column {
        width: 50%;
        margin-bottom: 0;
    }
}

form.meeting-search .row.filter-time-of-day {
    max-width: 800px;
}

form.meeting-search span.text-input-label {
    display: inline-block;
    margin: 0px 0px 8px 0px;
}

form.meeting-search input,
form.meeting-search select {
    background-image: none;
}

form.meeting-search .multiselect-dropdown {
    width: 100% !important;
    padding: 13px 16px !important;
    display: flex;
    align-items: center;
    height: 50px;
}

form.meeting-search select:not(.has-label-bottom) {
    margin: 0px 0px 8px 0px;
}

form.meeting-search .multiselect-dropdown .placeholder {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #343434;
    margin: 0 !important;
    text-transform: capitalize;
}

form.meeting-search .multiselect-dropdown .multiselect-dropdown-list > div input {
    display: inline-block;
    height: 20px;
    width: auto;
}

form.meeting-search .multiselect-dropdown .multiselect-dropdown-list > div label {
    margin: 0;
    display: inline-block;
    vertical-align: top;
    line-height: 27px;
}

form.meeting-search .multiselect-dropdown .optext {
    width: auto;
    background-color: #e5decd;
    font-size: 14px;
    font-weight: 500;
}

form.meeting-search .multiselect-dropdown .optext .optdel {
    margin-top: 1px !important;
}

/* Checkbox fields */
form.meeting-search .row fieldset.checkboxes {
    display: flex;
    flex-wrap: wrap;
}

form.meeting-search .input-error {
    border: 1px solid #7e171b;
    background-color: #fffefb;
    padding: 4px;
}

form.meeting-search span.input-error-message {
    font-size: 14px;
    color: #7e171b;
    display: block; /* Needed for line height to take effect. */
    line-height: 20px;
}

form.meeting-search .row fieldset.checkboxes legend {
    width: 100%;
}

form.meeting-search .row fieldset.checkboxes .checkbox-field {
    position: relative;
    margin-right: 16px;
    margin-bottom: 16px;
}

form.meeting-search .row fieldset.checkboxes label {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    background: #f1eee7;
    border-radius: 34px;
    height: 48px;
    font-weight: 400;
    font-size: 16px;
    line-height: 148%;
    color: #343434;
    transition: all 0.3s ease;
    margin: 0;
    cursor: pointer;
}

form.meeting-search .row fieldset.checkboxes label::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    flex-grow: 0;
    border: 1px solid rgb(52, 52, 52);
    border-radius: 2px;
    margin-left: 16px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: auto;
    transition: all 0.3s ease;
}

form.meeting-search .row fieldset.checkboxes input[type="checkbox"] {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

form.meeting-search .row fieldset.checkboxes input[type="checkbox"]:checked + label {
    background: #958563;
    color: #fffefb;
}

form.meeting-search .row fieldset.checkboxes input[type="checkbox"]:checked + label::after {
    border-color: #fffefb;
    background-color: #fffefb;
    background-image: url("/wp-content/uploads/2023/01/meeting-checked-checkbox.svg");
}

form.meeting-search .row.filter-time-of-day .checkbox-field label {
    width: 280px;
    justify-content: space-between;
}

form.meeting-search span.label-bottom {
    font-size: 14px;
    font-weight: normal;
    line-height: 1;
}

a.show-search-options {
    position: relative;
    display: block;
    margin: 1rem 0;
    letter-spacing: 0.01em;
    font-weight: 500;
    font-size: 18px;
    line-height: 25px;
    color: #094ea4;
    padding: 0.4% 2.5% 0.4% 1.5%;
    box-shadow: 0px 3px 14px rgba(7, 7, 7, 0.39);
    border-radius: 6px;
}

a.show-search-options svg {
    position: absolute;
    top: 14px;
    right: 4px;
    transition: all 0.3s ease;
}

a.show-search-options.opened svg {
    transform: rotate(180deg);
}

form.meeting-search #additional-search-options.hide {
    display: none;
}

form.meeting-search .row.submit-reset input {
    margin-bottom: 10px;
}

/* Search results */
.meeting-tile {
    background-color: #fff;
    border-radius: 16px;
    padding: 12px;
    border: 2px solid #eee;
}

.meeting-tile:not(:last-child) {
    margin-bottom: 32px;
}

.meeting-tile .row {
    width: 100%;
}

.meeting-tile .row:not(.meeting-buttons):not(.admin-edit) .column:not(.hide-element) {
    margin-bottom: 10px;
}

.meeting-tile .row:not(.meeting-buttons):not(.admin-edit) {
    margin-bottom: 8px;
}

.meeting-tile .row.top {
    align-items: flex-start;
}

.meeting-tile .row.top .column {
    display: flex;
    align-items: center;
    padding: 0 4px;
}

.meeting-tile .row.top .column:not(.hide-element) {
}

.meeting-tile .row.top .column:first-child,
.meeting-tile .row.top .column:nth-child(2):not(.hide-element) {
    border-bottom: 2px solid #eee;
}

.meeting-tile .row.top .column:first-child {
    padding-bottom: 4px;
}

.meeting-tile .row.top .column:first-child .meeting-count {
    color: #7e171b;
    font-size: 34px;
    font-weight: 500;
    line-height: 1;
    padding: 10px;
    position: relative;
}

.meeting-tile .row.top .column:first-child .headings {
    margin-left: 20px;
    margin-right: 4px;
}

.meeting-tile .row.top .column:first-child .headings .day-time-heading {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.meeting-tile .row.top .column:first-child .headings .day-time-heading .meeting-show-additional-days-container {
    font-size: 14px;
    font-size: 0.875rem;
}

.meeting-tile .row.top .column:first-child .headings .day-time-heading a.meeting-show-additional-days {
    font-size: 14px;
    font-size: 0.875rem;
    color: #024caa;
}

.meeting-tile .row.top .column:first-child .headings .meeting-name-container {
    display: none;
}

.meeting-tile .row.top .column.meet-name-mobile {
    justify-content: center;
    text-align: center;
}

.meeting-tile .row.top .column.meet-name-mobile .meeting-name-container {
    text-align: center;
}

.meeting-tile .row.top .column.meet-name-mobile:not(.hide-element) h4 {
    padding-bottom: 8px;
    line-height: 1.2;
}

.meeting-tile .row.top .column:last-child {
    justify-content: space-evenly;
    align-items: stretch;
}

.meeting-tile .row.top .column:last-child div.icon-detail {
    width: 33.33%;
    position: relative;
    margin-left: 4px;
    margin-right: 4px;
    padding-left: 4px;
    padding-right: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.meeting-tile .row.top .column:first-child .meeting-count:after,
.meeting-tile .row.top .column:last-child div.icon-detail:not(:last-child):after {
    content: "";
    width: 2px;
    height: 80%;
    max-height: 70px;
    background-color: #eee;
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
}

.meeting-tile .row.top .column div.icon-detail p {
    text-align: center;
}

.meeting-tile .row.top .column div.icon-detail span {
    display: block;
}

.meeting-tile .row.top .column div.icon-detail span.dashicons {
    display: none;
}

.meeting-tile .meeting-alert-text-container {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: #f8eaea;
    border: 1px solid #ffdcd8;
    border-radius: 4px;
    margin-bottom: 8px;
    padding: 8px;
}

.meeting-tile .meeting-alert-text-container span.dashicons {
    height: 30px;
}

.meeting-tile .meeting-alert-text-container p {
    margin: 0;
}

.meeting-tile .row.cards .column {
    border: 2px solid #eee;
    border-radius: 4px;
    padding: 0.5rem;
}

.meeting-tile .row.cards .column > * {
    width: 100%;
}

.meeting-tile .row.cards .column .meeting-focus-type-container + .meeting-other-notes-container:not(.hide-element) {
    margin-top: 16px;
}

.meeting-tile .row.cards .column .card-icon-text {
    display: flex;
}

.meeting-tile .row.cards .column .card-icon-text .card-text {
    width: calc(100% - 40px);
}

.meeting-tile .row.cards .column .card-icon-text .card-text > *:last-child {
    margin-bottom: 0;
}
.meeting-tile span.dashicons {
    width: 30px;
    font-size: 30px;
    color: #7e171b;
}

.meeting-tile .row.cards .column .card-icon-text span.dashicons {
    margin-right: 10px;
}

.meeting-tile .row.cards .column span.highlight {
    font-weight: bold;
    display: inline-block;
    background-color: #eee;
    padding: 4px 8px;
    border-radius: 4px;
    margin-right: 4px;
    margin-top: 4px;
}

.meeting-tile h2 {
    font-size: 22px;
    font-size: 1.375rem;
    font-weight: 600;
    text-align: left;
    padding-bottom: 10px !important;
}

.meeting-tile .day-time-heading h2 {
    font-size: 18px;
    font-size: 1.125rem;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    line-height: 1;
}

.meeting-tile h2 span.meeting-time {
    text-transform: uppercase;
}

.meeting-tile h3 {
    font-size: 18px;
    font-size: 1.125rem;
}

.meeting-tile h3.column-title {
    color: #7e171b;
}

.meeting-tile h3.meeting-wsonumber-container {
    font-size: 16px;
    font-size: 1rem;
    padding-top: 4px;
    padding-bottom: 4px;
}

.meeting-tile h3.meeting-wsonumber-container .meeting-wsonumber {
    font-weight: 600;
}

.meeting-tile h4 {
    font-size: 16px;
    font-size: 1rem;
    padding-bottom: 4px;
}

.meeting-tile p,
.meeting-tile a,
.meeting-tile.wsom-tile .button,
.meeting-tile th,
.meeting-tile td,
.meeting-tile form.meeting-intergroup-form input[type="submit"],
.meeting-tile form.meeting-region-form input[type="submit"] {
    font-size: 14px;
}

.meeting-tile form.related-intergroup-form input[type="submit"],
.meeting-tile form.related-region-form input[type="submit"],
.meeting-tile a.underline {
    text-decoration: underline;
}

.meeting-tile form.related-intergroup-form input[type="submit"],
.meeting-tile form.related-region-form input[type="submit"] {
    color: #024caa;
}

.meeting-tile .row.meeting-buttons {
    margin-bottom: 10px;
    justify-content: space-between;
}

.meeting-tile .row.meeting-buttons .column {
    flex-wrap: wrap;
    align-items: center;
}

.meeting-tile .row.meeting-buttons form.button-form,
.meeting-tile .row.meeting-buttons .meeting-group-website-link-container,
.meeting-tile .row.meeting-buttons .button {
    width: 100%;
}

.meeting-tile .row.meeting-buttons span.dashicons {
    color: #fff;
    font-size: 20px;
    width: 20px;
    margin-top: 4px;
    margin-right: 4px;
}

.row.meeting-buttons .column.column:first-child > * {
    margin-right: 4px;
    margin-bottom: 8px;
}

.meeting-tile .row.admin-edit a[class*="admin-edit-link"] {
    color: #024caa;
    font-weight: 500;
}

.meeting-tile .row.admin-edit form {
    line-height: 0;
}

.meeting-tile .row.admin-edit .column:last-child input[type="submit"] {
    line-height: 1.2;
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    font-size: 0.875rem;
}

.meeting-tile p[class*="last-update-container"] {
    margin-bottom: 0;
    padding-top: 8px;
    font-size: 14px;
    font-size: 0.875rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.meeting-tile p[class*="last-update-container"].warning {
    background-color: #964347;
    color: #fff;
    padding: 4px 8px;
}

.meeting-tile p[class*="last-update-container"] span {
    width: 100%;
    text-align: center;
}

.meeting-tile p[class*="last-update-container"] [class*="update-warning-container"] {
    line-height: 1;
}

.meeting-tile p[class*="last-update-container"] [class*="update-warning-container"] svg {
    margin-bottom: -2px;
    fill: #fff;
    width: 16px;
    height: 16px;
}

.meeting-tile p.full-address,
.meeting-tile p.meeting-type {
    padding-bottom: 10px;
    display: flex;
    align-items: center;
}

.meeting-tile p.meeting-type::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 10.25px;
    background-image: url(/wp-content/uploads/2022/11/meetings-type-icon.svg);
}

.meeting-tile .meeting-notes,
.meeting-tile .meeting-location {
    word-break: break-word;
}

/* Classes are toggled with JS click functionality to show/hide long text. */
span.read-more-container span.read-more-content,
span.read-more-container a.read-less {
    display: none;
}

span.read-more-container.showing span.read-more-content {
    display: initial;
}

span.read-more-container.showing span.read-more-intro,
span.read-more-container.showing span.read-more-join,
span.read-more-container.showing a.read-more {
    display: none;
}

span.read-more-container.showing a.read-less {
    display: initial;
}

/* Classes are toggled with JS click functionality to show/hide rows on mobile. */
.meeting-tile .row:not(.top) .column {
    display: none;
}
.meeting-tile .row:not(.top) .column.location-address {
    display: flex;
}
.meeting-tile .row.mobile-show:not(.top) .column {
    display: block;
}

.meeting-tile .row.admin-edit {
    text-align: center;
}

.meeting-tile .row.admin-edit [class*="-container"]:not(.hide-element) {
    margin-top: 16px;
}

@media screen and (min-width: 570px) {
    .meeting-tile .row.top .column div.icon-detail p {
        text-align: left;
    }

    .meeting-tile .row.top .column div.icon-detail span.dashicons {
        display: block;
        margin-bottom: 16px;
    }
}

@media screen and (min-width: 1000px) {
    /* Display all columns on desktop. */
    .meeting-tile .row:not(.top) .column {
        display: block;
    }
    .meeting-tile .row:not(.meeting-buttons):not(.admin-edit) .column:not(.hide-element) {
        margin-bottom: 0;
    }

    .meeting-tile h2 {
        font-size: 24px;
    }

    .meeting-tile h3 {
        font-size: 20px;
        font-size: 1.25rem;
    }

    .meeting-tile h3.meeting-wsonumber-container {
        font-size: 20px;
        font-size: 1.25rem;
        padding-top: 0;
    }

    .meeting-tile a.mobile-show-more {
        display: none;
    }

    .meeting-tile p,
    .meeting-tile a,
    .meeting-tile.wsom-tile .button,
    .meeting-tile th,
    .meeting-tile td,
    .meeting-tile form.meeting-intergroup-form input[type="submit"],
    .meeting-tile form.meeting-region-form input[type="submit"] {
        font-size: 16px;
    }

    .meeting-tile .row {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .meeting-tile .row .column {
        margin-bottom: 0;
        width: auto;
    }

    .meeting-tile .row.top {
        margin-bottom: 4px;
        align-items: center;
    }

    .meeting-tile .row.top .column {
        width: 50%;

        .day-time-heading h2 {
            font-size: 22px;
            font-size: 1.375rem;
        }
    }

    .meeting-tile .row.top .column:first-child {
        border-bottom: none;
    }

    .meeting-tile .row.top .column:first-child .meeting-count {
        font-size: 56px;
        padding: 10px 16px;
    }

    .meeting-tile .row.top .column:first-child .headings {
        margin-left: 2rem;
    }

    .meeting-tile .row.top .column:first-child .headings .meeting-name-container {
        display: block;
    }

    .meeting-tile .row.top .column.meet-name-mobile {
        display: none;
    }

    .meeting-tile .row.cards {
        margin-bottom: 12px;
    }

    .meeting-tile .row.cards .column {
        width: 33.33%;
    }

    .meeting-tile .row.meeting-buttons {
        margin-bottom: 0;
        display: flex;
        align-items: flex-start;
    }

    .meeting-tile .row.meeting-buttons form.button-form,
    .meeting-tile .row.meeting-buttons .meeting-group-website-link-container,
    .meeting-tile .row.meeting-buttons .button {
        width: auto;
    }

    .meeting-tile .row.meeting-buttons form.button-form {
        display: inline-block;
    }

    .meeting-tile .row.meeting-buttons .button {
        font-size: 16px;
    }

    .meeting-tile .row.meeting-buttons .meeting-tile .row.meeting-buttons .column:first-child {
        width: 65%;
    }

    .meeting-tile .row.meeting-buttons .column:last-child {
        display: flex;
        justify-content: flex-end;
        width: 35%;
        padding-bottom: 8px;
    }

    .meeting-tile p[class*="last-update-container"] {
        padding-top: 4px;
    }

    .meeting-tile p[class*="last-update-container"] span {
        width: auto;
        text-align: left;
    }

    .meeting-tile p[class*="last-update-container"] [class*="update-warning-container"] {
        margin-left: 16px;
    }

    .meeting-tile .row.admin-edit [class*="-container"]:not(.hide-element) {
        display: inline-block;
        margin-top: 8px;
        margin-right: 8px;
    }
}

/*
 * Popup.
 */
.meeting-popup {
    display: none;
}

.meeting-popup.open {
    display: flex;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999999999;
    background-color: rgba(0, 0, 0, 0.3);
}

.meeting-popup-container {
    background-color: #fffefb;
    border-top: 6px solid #7e171b;
    border-radius: 4px;
    width: 90%;
    max-width: 1000px;
    height: 90%;
    max-height: 800px;
    overflow: auto;
    margin: auto;
    position: relative;
}

.meeting-popup-header {
    position: sticky;
    top: 0;
    padding: 20px;
    background-color: rgba(229, 222, 205, 0.9);
    display: flex;
    justify-content: space-between;
    padding-bottom: 20px;
    z-index: 1;
}

.meeting-popup-header h2 {
    font-size: 20px;
    padding: 0 !important;
}

.meeting-popup-header a.close-full-listing {
    text-decoration: none;
    display: inline-block;
    font-size: 42px;
    font-family: ETmodules !important;
    color: #7e171b;
    cursor: pointer;
}

.meeting-popup-content {
    padding: 20px;
    width: 100%;
    overflow-y: scroll;
}

.meeting-popup-content ul.meeting-popup-details {
    padding: 0;
}

.meeting-popup-content li {
    list-style: none;
    margin-bottom: 15px;
}

.meeting-popup-content li strong {
    font-weight: 500;
    font-size: 18px;
    color: #343434;
    letter-spacing: 0.01em;
}

.meeting-popup-content li span {
    font-weight: 400;
    font-size: 16px;
    color: #545456;
}

.meeting-popup-content li[class^="meeting-day"] {
    margin-bottom: 0;
}

@media screen and (min-width: 768px) {
    .meeting-popup-header h2 {
        font-size: 26px;
    }
}

/* This class is applied when the popup is open. */
body.fixed {
    overflow: hidden;
}

a.mobile-show-more {
    display: block;
    background-color: #7e171b;
    color: #fff;
    text-align: center;
    padding: 4px;
    border-radius: 4px;
}

a.mobile-show-more.active {
    margin-bottom: 8px;
}

a.mobile-show-more svg {
    transition: all 0.3s ease;
    margin-right: 4px;
}

a.mobile-show-more svg path {
    fill: #fff;
}

a.mobile-show-more.active svg {
    transform: rotate(180deg);
}

/*
Loading overlay - displays when a WSONumber to search for is provided as a URL parameter.
The overlay is removed with JS then the search results are loaded.
*/
.meeting-search-loading-container {
    z-index: 100;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(229, 222, 205, 0.9);
}
.meeting-search-loading {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 350px;
    width: 50px;
    padding: 8px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #7e171b;
    --_m: conic-gradient(#0000 10%, #000), linear-gradient(#000 0 0) content-box;
    -webkit-mask: var(--_m);
    mask: var(--_m);
    -webkit-mask-composite: source-out;
    mask-composite: subtract;
    animation: spin 1s infinite linear;
}
@keyframes spin {
    to {
        transform: rotate(1turn);
    }
}
