.hover-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    pointer-events: none;
    display: none;
}


.dropdown-label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}

.hover-dropdown .dropdown-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: #ffffff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    z-index: 100;
    border-radius: 4px;
    margin: 0;
    padding: 12px 0;
    list-style: none;
}

.hover-dropdown:hover .dropdown-menu,
.dropdown-trigger:checked ~ .dropdown-menu {
    display: block !important;
    text-align: left;
}

.dropdown-menu li {
    padding: 6px 12px;
}

.dropdown-menu li:hover {
    background-color: var(--zest-dark-green);
}

.dropdown-menu li:hover a {
    color: white !important;
}

.hover-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
    display: none;
}

.hover-dropdown:hover::after {
    display: block;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 16px;
    height: 12px;
}

.menu-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    border-radius: 2px;
    transition: all 0.2s ease-in-out;
}

.blog-content {
    max-width: 750px;
    margin: 0 auto;
    padding: 16px;
}

.blog-grid {
    display: grid;
}

.blog-categories a {
    color: var(--zest-dark-green);
}

.blog-category-bar .button {
    padding: 16px;
    height: auto;
}

.banner > div {
    min-height: 392px;
}

.banner::after {
    opacity: 0;
}

.blog-grid > article:first-child span.blog-categories.extra-small-font a,
.blog-grid > article:last-child span.blog-categories.extra-small-font a {
    color: white;
}

article p {
    margin-bottom: 32px;
}

article.blog-tile p {
    margin-bottom: 0;
}

article img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

article ul {
    margin-left: 24px;
    margin-bottom: 24px;
}

form.blog-search {
    display: flex;
    align-items: stretch;
    height: 40px;
}

form.blog-search label {
    display: block;
    flex-grow: 1;
    height: 100%;
}

form.blog-search input[type="search"] {
    width: 100%;
    height: 100% !important;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 4px 0 0 4px;
    box-sizing: border-box;
    outline: 0;
}

form.blog-search button {
    height: 100% !important;
    padding: 0 16px;
    background-color: #2ecc71;
    color: #000000;
    border: 1px solid #2ecc71;
    border-radius: 0 4px 4px 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

ul.comments-list,
ul.comments-list ul.children {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.comments-list {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

ul.comments-list .comment-body {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 0.5rem;
}

ul.comments-list li.even > .comment-body {
    background-color: #fafafa;
}

ul.comments-list ul.children {
    position: relative;
    padding-left: 1.5rem;
    margin-left: 0.5rem;
    border-left: 2px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

ul.comments-list ul.children .comment-body {
    background-color: #f8fafc !important;
    border-color: #cbd5e0;
}

.comment-header {
    margin-bottom: 0.75rem;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 0.5rem;
}

.comment-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.comment-author {
    font-weight: 700;
    color: #2d294b;
    font-size: 1rem;
}

ul.comments-list ul.children .comment-author {
    font-size: 0.95rem;
}

.comment-date {
    font-size: 0.85rem;
    color: #718096;
    text-decoration: none;
}

.comment-date:hover {
    text-decoration: underline;
}

.comment-content {
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    word-break: break-word;
}

ul.comments-list ul.children .comment-content {
    font-size: 0.9rem;
}

.comment-controls {
    display: flex;
    justify-content: flex-end;
}

.comment-reply-link {
    display: inline-block;
    background-color: #f7fafc;
    border: 1px solid #cbd5e0;
    color: #4a5568;
    padding: 4px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

ul.comments-list ul.children .comment-reply-link {
    background-color: #ffffff;
}

.comment-reply-link:hover {
    background-color: #2ecc71;
    border-color: #2ecc71;
    color: #ffffff;
}

.input-container {
    display: block !important;
    position: relative;
    margin-bottom: 20px;
}

.input-container span {
    display: block !important;
    font-size: 14px;
    font-weight: bold;
    position: static !important;
}

.input-container textarea,
.input-container input {
    display: block !important;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.table {
    width: 100%;
    margin-top: 16px;
    font-size: 14px;
    text-align: left;
}

thead {
    background-color: var(--zest-green);
}

.table thead.force_single_line th {
    white-space: nowrap;
}

.table tr.typePending {
    opacity: 0.6;
}

.table th {
    padding: 15px 21px 11px 21px;
    background-color: var(--brand-lime);
    color: var(--brand-navy);
    font-size: 14px;
    line-height: 21px;
}

.table td {
    vertical-align: top;
    padding: 18px 21px;
    border-bottom: 2px solid var(--grey-light);
}

.table td p {
    margin: 0;
    line-height: 18px;
}

.table td a {
    display: inline-block;
    color: var(--brand-navy);
    line-height: 18px;
    text-decoration: underline;
}

.table td a:hover {
    text-decoration: none;
}

.table td a + a {
    margin-top: 10px;
}

.table td ul {
    list-style: none;
}

.table td ul li {
    margin-top: 10px;
}

.table td ul li:first-child {
    margin-top: 0;
}

.table td .status {
    display: block;
    padding: 7px 12px;
    color: var(--white);
    line-height: 17px;
    text-align: center;
}

.table td .status.status--confirmed {
    background-color: var(--status-confirmed);
}

.table td .status.status--pending {
    background-color: var(--status-awaiting-confirmation);
}

.table td .status.status--declined {
    background-color: var(--status-declined);
}

.table td .status.status--cancelled {
    background-color: var(--status-cancelled);
}

.table td .icon {
    display: block;
    margin: auto;
}

.table.table--is_dense th {
    padding: 13px 15px 9px 15px;
}

.table.table--is_dense td {
    padding: 12px 15px;
}

.table.table--is_rounded th:first-child {
    border-radius: 5px 0 0 0;
}

.table.table--is_rounded th:last-child {
    border-radius: 0 5px 0 0;
}

.table.table--is_striped tbody tr:nth-child(odd) {
    background-color: var(--grey-light);
}

@media (min-width: 768px) {
    .blog-grid > article:first-child,
    .blog-grid > article:last-child {
        grid-column: span 2;
    }
}

@media screen and (max-width: 896px) {
    .table {
        display: block;
    }

    .table thead {
        display: none;
    }

    .table tbody {
        display: block;
    }

    .table tr {
        position: relative;
        z-index: 1;
        display: block;
        padding-top: 10px;
        padding-bottom: 10px;
        border-bottom: 2px solid var(--grey-light);
    }

    .table tr::before {
        content: '';
        position: absolute;
        z-index: -1;
        top: 0;
        left: 0;
        display: block;
        width: 25%;
        height: 100%;
        background-color: var(--grey-superlight);
    }

    .table tr:first-child {
        border-top: 2px solid var(--grey-light);
    }

    .table th {
        display: block;
    }

    .table td {
        position: relative;
        display: block;
        padding-top: 10px;
        padding-bottom: 10px;
        padding-left: calc(25% + 21px);
        border-bottom: none;
    }

    .table td .status {
        display: inline-block;
    }

    .table td::before {
        content: attr(data-title);
        position: absolute;
        top: 0;
        left: 0;
        display: block;
        width: 25%;
        height: 100%;
        padding: 11px 21px 0 21px;
        color: var(--brand-navy-dark);
        font-size: 13px;
        text-align: right;
    }

    .table.table--skip_tablet tr,
    .table tr:nth-child(odd) {
        border-bottom: none;
    }

    .table.table--skip_tablet tr:first-child {
        border-top: none;
    }

    .table.table--skip_tablet tr:nth-child(odd) {
        background-color: var(--grey-light);
    }

    .table.table--skip_tablet tr:nth-child(even):last-child {
        border-bottom: 2px solid var(--grey-light);
    }

    .table.table--skip_tablet tr::before {
        display: none;
    }

    .table.table--skip_tablet td {
        padding-right: 15px;
        padding-left: 15px;
    }

    .table.table--skip_tablet td::before {
        position: static;
        width: 100%;
        padding-top: 4px;
        padding-bottom: 4px;
        padding-left: 0;
        text-align: left;
    }
}

@media screen and (max-width: 768px) {
    .blog-category-bar {
        flex-direction: column;
        grid-gap: 8px;
    }

    .table tr::before,
    .table td::before {
        width: 35%;
    }

    .table td {
        padding-left: calc(35% + 21px);
    }
}

@media (max-width: 600px) {
    ul.comments-list ul.children {
        padding-left: 0.75rem;
        margin-left: 0.25rem;
    }
}

@media screen and (max-width: 512px) {
    .table tr::before,
    .table td::before {
        width: 40%;
    }

    .table td {
        padding-left: calc(40% + 21px);
    }
}

@media screen and (max-width: 448px) {
    .table tr {
        border-bottom: none;
    }

    .table tr:first-child {
        border-top: none;
    }

    .table tr:nth-child(odd) {
        background-color: var(--grey-light);
    }

    .table tr:nth-child(even):last-child {
        border-bottom: 2px solid var(--grey-light);
    }

    .table tr::before {
        display: none;
    }

    .table td {
        padding-right: 15px;
        padding-left: 15px;
    }

    .table td::before {
        position: static;
        width: 100%;
        padding-top: 4px;
        padding-bottom: 4px;
        padding-left: 0;
        text-align: left;
    }
}