.gjrf-module {
    margin: 0 0 28px;
}

.gjrf-lock-scroll {
    overflow: hidden;
}

.gjrf-form {
    margin: 0;
}

.gjrf-bar {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.gjrf-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 4px;
}

.gjrf-search-wrap {
    flex: 0 0 auto;
    position: relative;
}

.gjrf-search {
    margin: 0;
}

.gjrf-search input,
.gjrf-mobile-search input {
    background: #fff;
    border: 1px solid #d7d7d7;
    border-radius: 5px;
    color: #3f3f3f;
    font-size: 16px;
    min-height: 44px;
    padding: 9px 12px;
    width: 100%;
}

.gjrf-desktop-groups {
    align-items: flex-start;
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 8px;
}

.gjrf-group {
    position: relative;
}

.gjrf-group summary {
    align-items: center;
    background: #fff;
    border: 1px solid #cfcfcf;
    border-radius: 5px;
    color: #4d4d4d;
    cursor: pointer;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    list-style: none;
    min-height: 44px;
    min-width: 132px;
    padding: 9px 12px;
}

.gjrf-group summary::-webkit-details-marker,
.gjrf-mobile-group summary::-webkit-details-marker {
    display: none;
}

.gjrf-group summary::after,
.gjrf-mobile-group summary::after {
    content: "+";
    font-weight: 700;
}

.gjrf-group[open] summary::after,
.gjrf-mobile-group[open] summary::after {
    content: "-";
}

.gjrf-pill {
    background: #9dc873;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    justify-content: center;
    min-width: 22px;
    padding: 2px 7px;
}

.gjrf-options {
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    left: 0;
    max-height: 360px;
    min-width: 240px;
    overflow: auto;
    padding: 8px;
    position: absolute;
    top: calc(100% + 6px);
    z-index: 50;
}

.gjrf-option {
    align-items: center;
    color: #4c4c4c;
    cursor: pointer;
    display: grid;
    gap: 8px;
    grid-template-columns: 18px 1fr auto;
    margin: 0;
    padding: 8px 6px;
}

.gjrf-option input {
    height: 17px;
    margin: 0;
    width: 17px;
}

.gjrf-option small {
    background: #f2f2f2;
    border-radius: 4px;
    color: #696969;
    min-width: 24px;
    padding: 2px 6px;
    text-align: center;
}

.gjrf-actions {
    align-items: flex-start;
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.gjrf-submit,
.gjrf-reset,
.gjrf-mobile-open,
.gjrf-search-toggle {
    align-items: center;
    border-radius: 5px;
    display: inline-flex;
    font-size: 16px;
    justify-content: center;
    min-height: 44px;
    padding: 9px 16px;
    text-decoration: none;
}

.gjrf-submit {
    background: #9dc873;
    border: 1px solid #9dc873;
    color: #fff;
}

.gjrf-reset {
    background: #fff;
    border: 1px solid #bfc7b6;
    color: #555;
}

.gjrf-mobile-open {
    background: #3f4b50;
    border: 1px solid #3f4b50;
    color: #fff;
    display: none;
    gap: 8px;
}

.gjrf-search-toggle {
    background: #fff;
    border: 1px solid #cfcfcf;
    color: #4d4d4d;
    gap: 8px;
    min-width: 92px;
}

.gjrf-search-toggle.is-active {
    border-color: #9dc873;
}

.gjrf-search-icon {
    border: 2px solid currentColor;
    border-radius: 999px;
    display: inline-block;
    height: 16px;
    position: relative;
    width: 16px;
}

.gjrf-search-icon::after {
    background: currentColor;
    content: "";
    height: 2px;
    position: absolute;
    right: -7px;
    top: 11px;
    transform: rotate(45deg);
    width: 9px;
}

.gjrf-search-popover {
    background: rgba(255, 255, 255, 0.98);
    border: 8px solid rgba(157, 200, 115, 0.42);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    padding: 10px;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: min(420px, 72vw);
    z-index: 80;
}

.gjrf-search-popover[hidden] {
    display: none;
}

.gjrf-icon {
    border: 2px solid currentColor;
    border-top: 0;
    display: inline-block;
    height: 10px;
    position: relative;
    transform: rotate(45deg);
    width: 10px;
}

.gjrf-active {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0 0;
}

.gjrf-chip {
    background: rgba(157, 200, 115, 0.16);
    border: 1px solid rgba(157, 200, 115, 0.55);
    border-radius: 999px;
    color: #4c5c3c;
    font-size: 14px;
    padding: 5px 10px;
}

.gjrf-result-summary {
    color: #555;
    font-size: 15px;
    margin: 18px 0 12px;
}

.gjrf-empty {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 18px;
}

.gjrf-results {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gjrf-card {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    min-height: 520px;
    overflow: hidden;
}

.gjrf-card-image {
    display: block;
    padding: 15px 15px 0;
}

.gjrf-card-image img {
    border-radius: 5px;
    display: block;
    height: auto;
    max-width: 100%;
    width: 100%;
}

.gjrf-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 18px 18px 20px;
    text-align: center;
}

.gjrf-card h3 {
    color: #595959;
    font-family: inherit;
    font-size: 24px;
    line-height: 1.2;
    margin: 0 0 16px;
    overflow-wrap: anywhere;
    text-transform: none;
}

.gjrf-card h3 a {
    color: inherit;
    text-decoration: none;
}

.gjrf-card p {
    color: #555;
    font-size: 16px;
    line-height: 1.55;
    margin: 0 0 16px;
}

.gjrf-category {
    color: #777;
    font-size: 14px;
    line-height: 1.4;
    margin: auto 0 16px;
}

.gjrf-readmore {
    align-self: center;
    background: #9dc873;
    border-radius: 5px;
    color: #fff;
    font-size: 17px;
    min-width: 140px;
    padding: 10px 18px;
    text-decoration: none;
}

.gjrf-offcanvas[hidden] {
    display: none;
}

.gjrf-offcanvas {
    inset: 0;
    position: fixed;
    z-index: 2147483000;
}

.gjrf-offcanvas-backdrop {
    background: rgba(0, 0, 0, 0.48);
    inset: 0;
    position: absolute;
}

.gjrf-offcanvas-panel {
    background: #fff;
    bottom: 0;
    box-shadow: -12px 0 30px rgba(0, 0, 0, 0.25);
    max-width: 420px;
    overflow: auto;
    padding: 22px;
    position: absolute;
    right: 0;
    top: 0;
    width: min(88vw, 420px);
}

.gjrf-offcanvas-head {
    align-items: center;
    display: flex;
    font-size: 22px;
    justify-content: space-between;
    margin: 0 0 20px;
}

.gjrf-close {
    background: transparent;
    border: 0;
    color: #222;
    font-size: 34px;
    line-height: 1;
    padding: 0;
}

.gjrf-mobile-search {
    display: block;
    margin: 0 0 18px;
}

.gjrf-mobile-group {
    border-top: 1px solid #e2e2e2;
    padding: 14px 0;
}

.gjrf-mobile-group summary {
    cursor: pointer;
    display: flex;
    font-size: 18px;
    font-weight: 700;
    justify-content: space-between;
    list-style: none;
}

.gjrf-mobile-options {
    padding: 12px 0 0;
}

.gjrf-offcanvas-actions {
    background: #fff;
    border-top: 1px solid #e5e5e5;
    bottom: 0;
    display: flex;
    gap: 8px;
    margin: 18px -22px -22px;
    padding: 14px 22px;
    position: sticky;
}

@media (max-width: 1100px) {
    .gjrf-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .gjrf-bar {
        align-items: flex-start;
    }

    .gjrf-search {
        width: 100%;
    }

    .gjrf-search-wrap {
        display: none;
    }

    .gjrf-desktop-groups {
        display: none;
    }

    .gjrf-mobile-open {
        display: inline-flex;
    }

    .gjrf-actions {
        flex: 1 1 auto;
        justify-content: flex-end;
    }

    .gjrf-actions .gjrf-submit {
        display: none;
    }

    .gjrf-results {
        gap: 14px;
        grid-template-columns: 1fr;
    }

    .gjrf-card {
        min-height: 0;
    }

    .gjrf-card h3 {
        font-size: 22px;
    }
}
