html.modal-open {
    overflow: hidden;
    height: 100dvh;
}

:root {
    --trends_color_blue1: #08349B;
    --trends_color_blue2: rgba(49, 53, 63, 0.20);
    --trends_color_blue3: rgba(49, 53, 63, 0.10);
    --trends_color_grey_icon: rgba(49, 53, 63, 0.5);
    --trends_chart_font_size: 16px;
}

#trends-dashboard {
    display: flex;
    overflow: hidden; /* resizing seems to intermittently cause horiz. scrolling, possibly related to charts? */
}

* {
    box-sizing: border-box;
}

html, body {
    width: 100%;
}

.side-body {
    flex: 1 0 0;
}

.side-body--left {
    background: rgba(98, 107, 127, 0.05);
}

.middle-body {
    display: flex;
    align-items: flex-start;
    align-self: stretch;
    flex: 0 1 100%;
    max-width: 1440px;
}

.trends-hero {
    transition: none;
    height: 440px;
    background: #001546 url('../images/hero.webp') min(calc(50% + 400px), 100%) 0 no-repeat;
    background-blend-mode: luminosity;
}

.trends-hero .container {
    display: flex;
    height: 100%;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    align-items: center;

}

.trends-hero .left {
    display: flex;
    width: 55%;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding-left: 80px;
}

.trends-hero .left .text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    align-self: stretch;
}

.trends-hero .left .text .mobile-title {
    display: none;
}

.trends-hero .left .text h1 {
    color: #FFF;
    font-size: 60px;
    font-style: normal;
    font-weight: 492;
    line-height: 68px; /* 113.333% */
}

.trends-hero .left .text h2 {
    color: #FFF;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 150% */
    opacity: 0.8;
}

/*sidebar styling starts here*/
.trends-sidebar {
    display: flex;
    padding: 64px 36px 8px 48px;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    align-self: stretch;
    border-right: 0.5px solid rgba(49, 53, 63, 0.16);
    background: rgba(98, 107, 127, 0.05);
    height: auto; /*changed to extend sidebar down to footer */
    flex: 0 0 390px;
}

.trends-sidebar .container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 24px;
}

.trends-sidebar .container .block {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.trends-sidebar .exit-sidebar {
    display: none;
}

.trends-sidebar .title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}

.trends-sidebar h2 {
    color: var(--black);
    font-size: 18px;
    font-style: normal;
    font-weight: 492;
    line-height: 28px; /* 155.556% */
}


.trends-sidebar .block .sliders .slider-range .text h3 {
    opacity: 0.8;
    font-weight: 400;
    font-size: 14px;
}

.trends-sidebar .title h2 {
    color: var(--black);
    font-size: 18px;
    font-style: normal;
    font-weight: 492;
    line-height: 28px; /* 155.556% */
}

.trends-sidebar .title svg {
    width: 20px;
    height: 20px;
    fill: var(--trends_color_grey_icon);
    display: block;
}

.trends-sidebar .block .sliders {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    align-self: stretch;
}


.trends-sidebar .sliders .full-slider {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    align-self: stretch;
}

/*Slider css */
.range_container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.sliders_control {
    position: relative;
    margin-bottom: var(--spacer_height);
}

.trends-sidebar .sliders .full-slider .text {
    display: flex;
    justify-content: space-between;
}


input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: all;
    width: 20px;
    height: 20px;
    background-color: var(--brand-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 1px #c6c6c6;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    pointer-events: all;
    width: 20px;
    height: 20px;
    background-color: var(--brand-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 1px #c6c6c6;
    cursor: pointer;
}

#fromSlider::-webkit-slider-thumb,
#fromSliderE::-webkit-slider-thumb {
    margin-top: 10px;
}

#fromSlider::-moz-range-thumb,
#fromSliderE::-moz-range-thumb {
    margin-top: 10px;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--brand-primary);
}

input[type="range"]::-webkit-slider-thumb:active {
    box-shadow: inset 0 0 3px #387bbe, 0 0 9px #387bbe;
    -webkit-box-shadow: inset 0 0 3px #387bbe, 0 0 9px #387bbe;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 10px;
    width: 100%;
    position: absolute;
    pointer-events: none;
    border-radius: 100px;
}

#fromSlider,
#fromSliderE {
    height: 0;
    z-index: 1;
}

.trends-sidebar .sliders .full-slider .text h3 {
    opacity: 0.8;
    font-weight: 400;
    font-size: 14px;
}

.trends-sidebar .sliders .ebitda {
    margin-top: -10px;
}

.trends-sidebar .sliders .ebitda {
    margin-top: -10px;
}

.trends-sidebar .sliders .full-slider .title h3 {
    align-self: stretch;
    color: var(--black);
    font-size: 14px;
    font-style: normal;
    font-weight: 492;
    line-height: 20px; /* 142.857% */
    margin-bottom: 5px;
}

.trends-sidebar .container .separating-line {
    width: 100%;
    height: 0.5px;
    background: var(--trends_color_blue2);
    margin-top: 15px;
}

.trends-sidebar .container .separation-line {
    width: 100%;
    height: 0.5px;
    background: var(--trends_color_blue2);
}


/*geography filter block styling starts here*/
.trends-sidebar .block .title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    margin-top: -3px;
}

.trends-sidebar .block .list {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    align-self: stretch;
    gap: 4px;
}

.trends-sidebar .block .list .list-items {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.trends-sidebar .block .list .list-item {
    display: flex;
    padding: 6px 16px;
    align-items: center;
    gap: 8px;
    border-radius: 100px;
    background: rgba(50, 108, 244, 0.10);
    border: none;
}

.trends-sidebar .block .list .list-item span {
    color: var(--brand-primary);
    font-size: 14px;
    font-style: normal;
    font-weight: 584;
    line-height: 20px; /* 142.857% */
}

.trends-sidebar .block .list .list-item button {
    display: block;
    margin: -5px;
    padding: 5px;
    border: 0;
    background: none;
}

.trends-sidebar .block .list .list-item button:hover {
    cursor: pointer;
}

.trends-sidebar .block .list .list-item button:hover svg {
    fill: var(--brand-primary);
}

.trends-sidebar .block .list .list-item svg {
    width: 12px;
    height: 12px;
    fill: #31353F;
    opacity: 0.6;
    display: block;
}

.trends-sidebar .block .list .right {
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    padding: 4px 0;
    border: 0;
}

.trends-sidebar .block .list .right:hover {
    cursor: pointer;
}

.trends-sidebar .block .list .right:hover span {
    color: var(--blue-700);
}

.trends-sidebar .block .list .right:hover svg {
    fill: var(--blue-700);
}

.trends-sidebar .block .list .right svg {
    width: 18px;
    height: 18px;
    fill: var(--brand-primary);
}

.trends-sidebar .block .list .right span {
    color: var(--brand-primary);
    font-size: 16px;
    font-style: normal;
    font-weight: 492;
    line-height: 24px; /* 150% */
}

.industry-tag {
    background: #e6f0ff;
    border: 1px solid #326CF4;
    border-radius: 16px;
    padding: 4px 12px;
    font-size: 14px;
    color: #326CF4;
    display: flex;
    align-items: center;
    cursor: default;
    text-transform: capitalize;
    font-style: normal;
    font-weight: 584;
    line-height: 20px;
}

.industry-tag .remove-x {
    font-weight: bold;
    color: #326CF4;
}

/* time period filter styling starts here */
.trends-sidebar .block .title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    margin-bottom: 0px;
}

.trends-sidebar .block .checklist {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    gap: 12px;
    /*styling for the text within the checklist */
    color: var(--black);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.trends-sidebar .block .checklist input {
    width: 22px;
    height: 22px;
    aspect-ratio: 1/1;
    border-radius: 4px;
    border: 0.5px solid rgba(49, 53, 63, 0.50);
    background: var(--white);
    margin-bottom: 5px;
}


.trends-sidebar .block .checklist input:checked {
    background: var(--brand-primary);
}

.trends-sidebar .block .checklist .check-item {
    display: block;
    gap: 4px;
}

.trends-sidebar .block .checklist .custom-date-label {
    display: block;
    gap: 4px;
    align-self: stretch;
}

.trends-sidebar .block .separation {
    transform: translate(0px, -3px);
    width: 100%;
    height: 0.5px;
    background: var(--trends_color_blue2);
}

/*reset button styling start here */
.trends-sidebar .reset-button {
    align-self: stretch;
}

/*activity-page styling starts here*/
.activity-page {
    padding-bottom: 0px;
    flex: 1 1 100%;
    max-width: 100vw;
}

.activity-page .nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    border-bottom: 0.5px solid rgba(49, 53, 63, 0.16);
    background: #F7F8F9;
}

.activity-page .nav-bar .selected {
    background: #31353F;
}

.activity-page .nav-bar .unselected {
    background-color: #F7F8F9;
    color: inherit;
}

.activity-page .nav-bar .unselected:hover {
    border-color: #D0D4DB;
    background: #EFF1F3;
    color: var(--brand-primary);
    cursor: pointer;
}

.activity-page .nav-bar .bar {
    display: flex;
    min-width: 100px;
    height: 56px;
    justify-content: center;
    align-items: center;
    border: none;
    gap: 8px;
    flex: 1 0 0;
    border-right: 0.5px solid var(--trends_color_blue3);
    border-left: 0.5px solid var(--trends_color_blue3);
    border-bottom: 0.5px solid var(--trends_color_blue3);
}

.activity-page .nav-bar .bar span {
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px; /* 150% */
}

.activity-page .nav-bar .unselected .sign-up {
    color: var(--brand-primary);
}

.activity-page .nav-bar .selected .charts {
    color: #FFF
}

.activity-page .title h2 {
    color: #31353F;
    font-size: 16px;
    font-style: normal;
    font-weight: 584;
    line-height: 22px; /* 137.5% */
}

.activity-page .container {
    display: flex;
    position: relative;
    padding: 48px 80px 80px 64px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.activity-page .container .charts {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
}

.activity-page .container .charts .header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    align-self: stretch;
}

.activity-page .container .charts .header svg {
    width: 75px;
    height: 76px;
    right: -8px;
    top: -6px;
    opacity: 0.4;
}

.activity-page .container .charts .header .filters-button {
    visibility: hidden;
}

.activity-page .container .charts .header .left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.activity-page .container .charts .header .left h2 {
    color: var(--black);
    font-size: 26px;
    font-style: normal;
    font-weight: 584;
    line-height: normal;
}

.activity-page .container .charts .header .left .subtitle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 12px;
    color: var(--black);
    font-size: 14px;
    font-style: normal;
    font-variation-settings: "slnt" 0, "wght" 400;
    line-height: 19px; /* 135.714% */
}

.activity-page .charts .header .left .subtitle strong {
    font-variation-settings: "slnt" 0, "wght" 586;
    opacity: 0.7;
}

.activity-page .charts .deal-activity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    align-self: stretch;
}

.activity-page .charts .deal-activity .slider {
    visibility: hidden;
}

.activity-page .charts .deal-activity .volume-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    align-self: stretch;
    transform: translate(0px, -10px);
    width: 100%;
}

.activity-page .charts .deal-activity .volume-info h3 {
    color: var(--black);
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 19px;
    opacity: 0.7;
}

.activity-page .charts .deal-activity .volume-info .deals {
    display: flex;
    align-items: center;
    gap: 4px;
}

.activity-page .charts .deal-activity .volume-info .deals h3 {
    color: var(--black);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 19px; /* 135.714% */
}

.activity-page .charts .deal-activity .volume-info .deals span {
    color: var(--black);
    font-size: 14px;
    font-style: normal;
    font-weight: 584;
    line-height: 19px; /* 135.714% */
}


.activity-page .deal-activity .deal-activity-mobile-scroll {
    overflow-x: hidden;
    overflow-y: hidden;
    width: 100%;
    height: auto;
    scrollbar-width: none;
    direction: rtl;
}

.deal-activity-mobile-scroll::-webkit-scrollbar {
    display: none;
}

.activity-page .charts .deal-activity .deal-activity-container {
    position: relative;
    padding-top: 39.503386%;
    width: 100%;
    height: 360px;
}

.activity-page .deal-activity .deal-activity-chart {
    direction: ltr;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.activity-page .deal-activity .deal-activity-overlay {
    --loading-duration: 0.1s;
    transition: opacity var(--loading-duration) ease-in-out, max-height 0s linear var(--loading-duration);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: #2D3138;
}

.activity-page .deal-activity .deal-activity-overlay--loading {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.40) 0%, rgba(255, 255, 255, 0.60) 47%, #FFF 100%);
    backdrop-filter: blur(8px);
}

.activity-page .deal-activity .deal-activity-overlay[data-open] {
    transition: opacity var(--loading-duration) ease-in-out;
    max-height: 9999px;
    opacity: 1;
}

.activity-page .deal-activity .deal-activity-overlay--empty,
.activity-page .deal-activity .deal-activity-overlay--empty[data-open] {
    transition: none;
    background: white;
}

.activity-page .deal-activity #deal-activity {
    width: 100%;
    height: 100%;
}

.activity-page .deal-activity .deal-activity-empty button {
    flex: 0 0 auto;
}

.activity-page .deal-activity .deal-activity-empty [data-empty-message]:not(.active) {
    display: none;
}

.activity-page .deal-activity .deal-activity-empty__container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.activity-page .deal-activity .deal-activity-empty__text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.activity-page .deal-activity .deal-activity-empty__text svg {
    width: 40px;
    height: 40px;
    fill: #7D879B;
}

.activity-page .deal-activity .deal-activity-empty__description {
    color: #555C69;
}

/* revenue and ebitda range info container styling starts here */
.activity-page .charts .ranges {
    display: flex;
    justify-content: space-between;
    width: 100%; /*width: 887px;*/
    height: auto;
    align-items: flex-start;
    gap: 20px;
    transform: translate(0px, -10px);
}

.activity-page .charts .ranges .title {
    display: flex;
    padding: 20px 24px;
    height: 132px;
    width: 100%;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    flex: 1 0 0;
    border-radius: 12px;
    background: rgba(49, 53, 63, 0.05);
}

.activity-page .charts .ranges .title .split {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    align-self: stretch;
}

.activity-page .charts .ranges .title .split .range {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
}

.activity-page .charts .ranges .title .split .range span {
    color: var(--black);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px; /* 128.571% */
    opacity: 0.6;
}

.activity-page .charts .ranges .title .split .range h3 {
    color: var(--black);
    text-align: center;
    font-size: 20px;
    font-style: normal;
    font-weight: 492;
    line-height: 28px; /* 140% */
}

.activity-page .charts .ranges .title .split .range .median {
    color: var(--trends_color_blue1);
}

.activity-page .charts .ranges .title .split .range .value {
    color: #2664F5;
}

/* pie chart and heatmap styling starts here */
.activity-page .charts .central-charts {
    display: flex;
    align-items: stretch;
    gap: 20px;
    align-self: stretch;
}

.activity-page .charts .central-charts .chart {
    display: flex;
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 0 0;
    border-radius: 12px;
    border: 1px solid var(--trends_color_blue3);
    background: var(--white);
    gap: 20px;
    width: 100%;
}

.activity-page .charts .central-charts .chart .title {
    display: flex;
    justify-content: left;
    align-items: flex-start;
}

.activity-page .charts .central-charts .geo {
    justify-content: normal;
}

.activity-page .charts .central-charts .chart .title .italic h3 {
    color: rgba(49, 53, 63, 0.80);
    font-size: 16px;
    font-style: italic;
    font-weight: 400;
    line-height: 22px;
}

/*
.activity-page .charts .central-charts .chart .chart-summary{
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}
*/

.activity-page .charts .central-charts .chart .geo-chart {
    display: flex;
    align-items: center;
    width: 100%;
}

.activity-page .charts .central-charts .chart .region-chart {
    flex: 0 1 50%;
}

.activity-page .charts .central-charts .chart .chart-summary-width {
    width: 100%;
    max-width: 160px;
    margin: 0 auto;
}

.activity-page .charts .central-charts .chart .chart-summary-height {
    position: relative;
    padding-top: 100%;
}

.activity-page .charts .central-charts .chart .chart-summary {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: absolute;
}

.activity-page .charts .central-charts .chart .chart-summary img {
    width: 40%;
    max-width: 160px;
}

.activity-page .charts .central-charts .chart .region-split {
    display: flex;
    flex: 0 0 50%;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    gap: 12px;
}

.activity-page .charts .central-charts .chart .region-split .region {
    display: flex;
    height: 22px;
    align-items: baseline;
    gap: 8px;
    align-self: stretch;
}

.activity-page .charts .central-charts .chart .region-split .region .color-orb {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    aspect-ratio: 1/1;
    border-radius: 100px;
}

.activity-page .charts .central-charts .chart .chart-summary .region-split .region .top {
    background: linear-gradient(180deg, #4B72CE 0%, var(--trends_color_blue1) 100%);
}

.activity-page .charts .central-charts .chart .chart-summary .region-split .region .middle {
    background: linear-gradient(187deg, #82A2EF 8.19%, #326CF4 94.89%);
}

.activity-page .charts .central-charts .chart .chart-summary .region-split .region .bottom {
    background: linear-gradient(180deg, #E4ECFF 0%, #C5D5FC 100%);
}

.activity-page .charts .central-charts .chart .region-split .region .label {
    position: relative;
    flex: 1 1 100%;
    line-height: 22px; /* 137.5% */
}

.activity-page .charts .central-charts .chart .region-split .region h2 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    color: #626B7F;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px; /* 137.5% */
    letter-spacing: -0.16px;
    text-transform: capitalize;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-page .charts .central-charts .chart .region-split .region.active h2 {
    font-variation-settings: "slnt" 0, "wght" 584;
}

.activity-page .charts .central-charts .chart .region-split .region h3 {
    color: #626B7F;
    text-align: right;
    font-size: 16px;
    font-style: normal;
    font-weight: 525;
    line-height: 22px; /* 137.5% */
}

/*Heatmap styling starts here */
.activity-page .charts .central-charts .chart .heatmap-container {
    width: 100%;
    display: flex;
    align-items: stretch;
    gap: 4px;
    flex: 1 1 auto;
}

.activity-page .charts .central-charts .chart .heatmap {
    position: relative;
    border-radius: 5px;
    background: #F5F5F5;
    display: flex;
    align-items: center;
}

.activity-page .charts .central-charts .chart .heatmap--ca {
    flex: 1 1 164px;
}

.activity-page .charts .central-charts .chart .heatmap--us {
    flex: 1 1 225px;
}

.activity-page .charts .central-charts .chart .heatmap .heatmap__relative {
    position: relative;
    width: 100%;
}

.activity-page .charts .central-charts .chart .heatmap--ca .heatmap__relative {
    padding-top: 72%;
}

.activity-page .charts .central-charts .chart .heatmap--us .heatmap__relative {
    padding-top: 42%;
}

.activity-page .charts .central-charts .chart .heatmap__chart {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.activity-page .charts .central-charts .chart svg {
    width: 100%;
    height: auto;
    flex-shrink: 0;
    left: 50px;
}


/*Horizontal bar charts' styling starts here */
.activity-page .charts .horizontal-bar {
    display: flex;
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    align-self: stretch;
    border-radius: 12px;
    border: 1px solid var(--trends_color_blue3);
    background: var(--white);
}

.activity-page .charts .horizontal-bar h2 {
    width: 25%;
    color: #31353F;
    font-size: 16px;
    font-style: normal;
    font-weight: 584;
    line-height: 22px; /* 137.5% */
}

.activity-page .charts .horizontal-bar .separating-line {
    width: 100%;
    height: 0.5px;
    background: var(--trends_color_blue2);
}

.activity-page .charts .horizontal-bar .horizontal-container {
    position: relative;
    width: 100%;
    height: calc(36px * var(--rows));
}

.activity-page .charts .horizontal-bar .horizontal-chart {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.activity-page .charts .horizontal-bar .horizontal-chart img {
    margin: auto;
}

.activity-page .charts .horizontal-bar .horizontal-chart .mobile {
    display: none;
}

/*modal styling starts here */
.trends-dashboard-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px;
    display: none;
    z-index: var(--z-index-above-wp-admin-bar);
    align-items: center;
    overflow: scroll;
    background: rgba(49, 53, 63, 0.50);
    backdrop-filter: blur(4px);
    justify-content: flex-start;
}

.trends-dashboard-modal[data-modal-status="open"] {
    display: flex;
}

/*modal styling starts here */
.modal-content {
    display: flex;
    width: 100%;
    max-width: 800px;
    height: auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    color: #31353F;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0.16px;
    margin: auto !important; /* !important to override `body :last-child { margin-bottom: 0; }` */
}

.modal-content .checklist[data-states-by-region-id]:not(.active),
.modal-content .checklist[data-provinces-by-region-id]:not(.active) {
    display: none;
}

.modal-content .title {
    display: flex;
    padding: 12px 16px 12px 48px;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    background: var(--trends_color_blue1);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.modal-content .title h2 {
    color: #FFF;
    font-size: 18px;
    font-style: normal;
    font-weight: 492;
    line-height: 28px; /* 155.556% */
}

.modal-content .title button {
    background: none;
    border: none;
    padding: 5px;
}

.modal-content .title button:hover {
    opacity: 0.6;
    cursor: pointer;
}

.modal-content .title button svg {
    display: block;
    fill: white;
    width: 18px;
    height: 18px;
}

.modal-content .body {
    display: flex;
    padding: 32px 48px;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    align-self: stretch;
    gap: 24px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.modal-content .body h3 {
    align-self: stretch;
    color: var(--black);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 142.857% */
    text-transform: uppercase;
    opacity: 0.5;
    margin: 0 0 12px;
}

.modal-content .body .dividing-line {
    width: 100%;
    height: 0.5px;
    background: var(--trends_color_blue2);
}

.modal-content .description {
    font-variation-settings: "slnt" 10, "wght" 400;
    color: #7D879B;
}

.modal-content .checklists {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-content .checklist {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.modal-content .checklist.active ~ .description {
    display: none;
}

.modal-content [data-regions-form]:not(.active) {
    display: none;
}

.modal-content .check-item {
    margin: 0;
    display: flex;
    align-items: center;
}

.modal-content .check-item input {
    flex: 0 0 auto;
}

.modal-content .button-container {
    display: flex;
    align-self: center;
}

/* custom-date open state styling starts here */
.trends-sidebar .block .checklist .content {
    display: none;
}

/* open styling for when the custom date checkbox is clicked */
.trends-sidebar .block .checklist label:has(input:checked) ~ .content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    align-self: stretch;
}

.trends-sidebar .block .checklist .content h1 {
    color: var(--black);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.block .checklist .content .top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    align-self: stretch;
}

.block .checklist .content .top .selection {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 2px;
    align-self: stretch;
}

.block .checklist .content .top .selection h4 {
    color: var(--black);
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px; /* 150% */
}

.block .checklist .content .top .selection .buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    align-self: stretch;
}

.block .checklist .content .top .selection .buttons .dropdown {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1 0 0;
    border-radius: 4px;
    border: 1px solid rgba(50, 108, 244, 0.20);
    background-color: var(--white);
    margin: 0;
}

.block .checklist .content .top .selection .buttons .dropdown select {
    background-color: var(--white);
    width: 100%
}

.block .checklist .content .top .selection .buttons .button span {
    color: var(--black);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 150% */
}

.block .checklist .content .top .selection .buttons .button svg {
    height: 16px;
    width: 16px;
    aspect-ratio: 1/1;
}

.block .checklist .content .top .selection .buttons .button button {
    background: transparent;
    border: none;
}

.block .checklist .content .bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}

.block .checklist .content .bottom h4 {
    color: var(--black);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.block .checklist .content .bottom .switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 28px;
    border-radius: 100px;
    border: 0.5px solid rgba(49, 53, 63, 0.20);
    background: #DCE5FD;
}

.block .checklist .content .bottom .switch:has(input:checked) {
    background: var(--brand-primary);
}

.block .checklist .content .bottom .switch input {
    opacity: 0;
    height: 0;
    width: 0;
}

.block .checklist .content .bottom .switch .slider {
    aspect-ratio: 1/1;
    position: absolute;
    cursor: pointer;
    border-radius: 100px;
    -webkit-transition: .4s;
    transition: .4s;
    transform: translate(-3px, 2px);
}

.block .checklist .content .bottom .switch .slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

.block .checklist .content .bottom .switch input:checked {
    background-color: var(--brand-primary);
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

@media screen and (max-width: 767px) {
    :root {
        --trends_chart_font_size: 12px;
    }

    /* sidebar mobile styling starts here */
    .trends-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        padding: 20px 10px 100px 10px;
        flex-direction: column;
        background: linear-gradient(0deg, rgba(98, 107, 127, 0.05) 0%, rgba(98, 107, 127, 0.05) 100%), #FFF;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateX(-100%);
        transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
        pointer-events: none; /* Prevent interaction when hidden */
        flex: 1 1 auto;
        z-index: var(--z-index-above-wp-admin-bar);
    }

    .trends-sidebar .container {
        width: calc(100% - 32px);
        margin-left: auto;
        margin-right: auto;
        scale: 1;
    }

    html.modal-open--sidebar .trends-sidebar {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        pointer-events: auto;
    }

    .trends-sidebar .container .block .title h1 {
        font-size: 16px;
    }

    .trends-sidebar .container .block .sliders h1 {
        font-size: 14px;
    }

    .trends-sidebar .exit-sidebar {
        display: block;
        background: transparent;
        border: none;
        align-self: flex-end;
    }

    .trends-sidebar .exit-sidebar svg {
        width: 20px;
        height: 20px;
        fill: var(--trends_color_grey_icon);
        display: block;
    }

    /*mobile hero styling starts here*/
    .trends-hero {
        background-position: bottom;
        height: 658px;
        background-size: max(80%, 525px);
    }

    .trends-hero .container {
        height: 100%;
        padding: 64px 32px;
        flex-direction: column;
        align-items: center;
        gap: 32px;
        align-self: stretch;
    }

    .trends-hero .left {
        width: 335px;
        align-items: center;
        padding-left: 0px;
    }

    .trends-hero .left .text {
        align-items: center;
        gap: 12px;
        width: 335px;
        text-align: center;
    }

    .trends-hero .left .text .mobile-title {
        display: grid;
    }

    .trends-hero .left .text .mobile-title span {
        color: #FFF;
        font-size: 36px;
        font-style: normal;
        font-weight: 492;
        line-height: 40px; /* 113.333% */
    }

    .trends-hero .left .text .desktop-title {
        display: none;
    }

    .trends-hero .left .text h2 {
        font-size: 16px;
        line-height: 24px;
    }

    .activity-page {
        display: flex;
        padding-bottom: 0;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 40px;
        align-self: stretch;
        min-width: 0;
    }

    /* mobile nav-bar styling starts here */
    .activity-page .nav-bar {
        overflow: auto;
        width: 100%;
    }

    .activity-page .nav-bar .bar {
        width: 100px;
        padding: 6px 16px;
        align-self: stretch;
    }

    .activity-page .nav-bar .bar span {
        font-size: 14px;
        line-height: 20px; /* 142.857% */
    }

    /*mobile deal activity header styling starts here*/
    .activity-page .container {
        padding: 20px;
        width: 100%;
    }

    .activity-page .container .charts {
        gap: 20px;
    }

    .activity-page .container .charts .header {
        gap: 16px;
    }

    .activity-page .container .charts .header .left {
        flex: 1 0 0;
        width: 238px;
    }

    .activity-page .container .charts .header .left h2 {
        line-height: 30px;
    }

    .activity-page .container .charts .header .header-star {
        display: none;
    }

    /*styling for filters button to access sidebar starts here */
    .activity-page .container .charts .header .filters-button {
        visibility: visible;
        display: flex;
        padding: 6px 10px;
        align-items: center;
        gap: 4px;
        border-radius: 4px;
        background: rgba(49, 53, 63, 0.06);
        border: none;
    }

    .activity-page .container .charts .header .filters-button h2 {
        color: var(--trends_color_blue1);
        font-size: 14px;
        font-style: normal;
        font-weight: 584;
        line-height: 19px; /* 135.714% */
    }

    .activity-page .container .charts .header .filters-button svg {
        width: 16px;
        height: 16px;
        fill: var(--trends_color_blue1);
        transform: rotateZ(-90deg);
        flex: 0 0 auto;
        opacity: 1;
    }

    .activity-page .container .charts .header .left .subtitle .title h3 {
        font-size: 12px;
        line-height: 16px;
    }

    .activity-page .container .charts .header .left .subtitle .title span {
        font-size: 12px;
        line-height: 30px;
        width: auto;
    }

    .activity-page .container .charts .horizontal-bar .horizontal-container {
        height: calc(24px * var(--rows));
    }

    /*deals chart styling starts here */
    .activity-page .deal-activity .volume-info {
        width: 335px;
        justify-content: space-evenly;
        align-items: center;
    }

    .activity-page .charts .deal-activity .volume-info .deals h3 {
        font-size: 12px;
        line-height: normal;
    }

    .activity-page .deal-activity .deal-activity-chart {
        overflow: scroll;
        margin: auto;
        padding: 0 20px;
    }

    .activity-page .deal-activity .deal-activity-chart {
        width: 900px !important;
        height: 300px !important;
        margin: auto;
        padding: 0 20px;
        position: static !important;;
    }

    .activity-page .deal-activity .deal-activity-mobile-scroll {
        overflow-x: scroll;
        height: 320px;
        scrollbar-width: auto;
    }

    .deal-activity-mobile-scroll::-webkit-scrollbar {
        display: block; /* Chrome, Safari */
    }

    .activity-page .charts .deal-activity .deal-activity-container {
        all: unset;
        display: contents;
        overflow: scroll !important;
    }

    .deal-activity-mobile-scroll::-webkit-scrollbar {
        width: 100%;
    }

    /*
    .activity-page .deal-activity .deal-activity-chart img{
        max-width: none;
        height: 325px;
    }
    */
    /*deal chart scrollbar styling starts here */
    .deal-activity-mobile-scroll::-webkit-scrollbar {
        -webkit-appearance: none;
        width: 7px;
    }

    .deal-activity-mobile-scroll::-webkit-scrollbar {
        width: 100%;
        height: 7px;
        padding-left: 20px;
    }

    .deal-activity-mobile-scroll::-webkit-scrollbar-thumb {
        border-radius: 4px;
        background-color: rgba(0, 0, 0, .5);
        box-shadow: 0 0 1px rgba(255, 255, 255, .5);
    }

    .activity-page .charts .deal-activity .slider {
        position: relative;
        visibility: visible;
        overflow: scroll;
        width: 100%;
    }

    .activity-page .charts .deal-activity .slider .background {
        height: 8px;
        flex-shrink: 0;
        border-radius: 100px;
        background-color: rgba(49, 53, 63, 0.1);
        position: relative;
        z-index: 1;
    }

    .activity-page .charts .deal-activity .slider .controller {
        width: 160px;
        height: 8px;
        flex-shrink: 0;
        border-radius: 100px;
        opacity: 0.2;
        background: var(--trends_color_blue1);
        transform: translate(0px, -8px);
        cursor: grab;
    }

    .activity-page .charts .ranges {
        gap: 16px;
        align-self: stretch;
        width: 100%;
        flex-wrap: wrap;
        transform: none;
    }

    .activity-page .charts .ranges .title {
        padding: 12px 16px;
        gap: 16px;
        height: auto;
    }

    .activity-page .charts .ranges .title h2 {
        font-size: 14px;
        line-height: 19px; /* 135.714% */
    }

    .activity-page .charts .ranges .title .split {
        align-content: flex-start;
        gap: 8px 12px;
    }

    .activity-page .charts .ranges .title .split .range h3 {
        font-size: 16px;
        line-height: 22px; /* 137.5% */
    }

    /* central charts (pie chart and heatmap) mobile styling starts here */
    .activity-page .charts .central-charts {
        display: grid;
        width: 100%;
    }

    .activity-page .charts .central-charts .chart {
        padding: 16px;
        align-self: stretch;
        width: 100%;
        height: auto;
        justify-content: normal;
    }

    .activity-page .charts .central-charts .chart .title {
        width: 100%;
        height: 19px;
    }

    .activity-page .charts .central-charts .chart .header {
        width: 100%;
        gap: 0px;
        display: contents;
    }

    .activity-page .charts .central-charts .chart .title .header h2 {
        font-size: 14px;
        line-height: 19px; /* 135.714% */
    }

    .activity-page .charts .central-charts .chart .title .italic h3 {
        font-size: 14px;
        line-height: 19px; /* 135.714% */
    }

    .activity-page .charts .central-charts .chart .title .italic {
        width: auto;
    }

    .activity-page .charts .central-charts .chart .chart-summary .pie-chart {
        width: 30%;
        max-width: none;
    }

    .activity-page .charts .central-charts .chart .chart-summary .region-split {
        width: auto;
        gap: 4px;
        align-self: stretch;
        transform: translate(0px, 18px);
        margin-top: auto;
        margin-bottom: calc(11%);
    }

    .activity-page .charts .central-charts .chart .chart-summary {
        gap: 25px;
        justify-content: center;
    }

    .activity-page .charts .central-charts .chart .chart-summary .region-split .region {
        gap: 4px;
    }

    .activity-page .charts .central-charts .chart .chart-summary .region-split .region .color-orb {
        width: 8px;
        height: 8px;
    }

    .activity-page .charts .central-charts .chart .chart-summary .region-split .region h2 {
        font-size: 14px;
        line-height: 20px; /* 142.857% */
        letter-spacing: -0.28px;
    }

    .activity-page .charts .central-charts .chart .chart-summary .region-split .region h3 {
        width: 30px;
        font-size: 14px;
        font-weight: 400;
        line-height: 20px; /* 142.857% */
        letter-spacing: -0.28px;
    }

    .activity-page .charts .central-charts .chart .heatmap-container {
        margin-top: 5%;
    }

    /*horizontal bar charts' mobile styling starts here*/
    .activity-page .charts .horizontal-bar {
        width: 100%;
        gap: 16px;
    }

    .activity-page .charts .horizontal-bar .horizontal-chart {
        width: 100%
    }

    .activity-page .charts .horizontal-bar .horizontal-chart .desktop {
        display: flex;
        width: 100%;
    }

    .activity-page .charts .horizontal-bar h2 {
        font-size: 14px;
        line-height: 19px; /* 135.714% */
        width: 100%;
    }

    .activity-page .charts .horizontal-bar .horizontal-chart .desktop {
        display: flex;
    }

    .modal-content {
        gap: 0;
        padding: 0;
    }

    .modal-content .body {
        position: relative;
        width: 100%;
        padding: 16px;
        background: var(--white);
        box-sizing: border-box;
        gap: 20px;
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
    }

    .modal-content .body .dividing-line {
        z-index: 4000;
        transform: none;
        height: 1px;
        width: 100%;
    }

    .modal-content .title {
        padding: 12px 16px;
    }

    .modal-content .checklist {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 1279px) and (min-width: 768px) {
    .trends-hero {
        position: relative;
        display: flex;
        align-items: center;
        height: 400px;
        background-size: contain;
        background-position: 50vw 0;
    }

    .trends-hero .left {
        width: auto;
        padding-left: 40px;
    }

    .trends-hero .left .text {
        max-width: 680px;
        width: 100%;
    }

    .trends-hero .left .text h1 {
        font-size: 55px;
    }

    .trends-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(90deg, #001546, rgba(0, 21, 70, 0));
    }

    .trends-sidebar {
        position: fixed;
        right: 0;
        width: 385px;
        top: var(--wp-admin-bar-height);
        bottom: 0;
        padding: 24px;
        background: linear-gradient(0deg, rgba(98, 107, 127, 0.05) 0%, rgba(98, 107, 127, 0.05) 100%), #FFF;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateX(100%);
        transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
        pointer-events: none; /* Prevent interaction when hidden */
        flex: 1 1 auto;
        z-index: var(--z-index-above-wp-admin-bar);
    }

    html.modal-open--sidebar .trends-sidebar {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        pointer-events: auto;
    }

    html.modal-open--sidebar footer,
    html.modal-open--sidebar .activity-page,
    html.modal-open--sidebar .trends-hero {
        filter: blur(8px);
    }

    .trends-sidebar .exit-sidebar {
        display: block;
        background: transparent;
        border: none;
        align-self: flex-end;
    }

    .trends-sidebar .exit-sidebar svg {
        width: 20px;
        height: 20px;
        fill: var(--trends_color_grey_icon);
        display: block;
    }

    .activity-page .container {
        padding: 40px;
    }

    .activity-page .container .charts .header .filters-button {
        visibility: visible;
        display: flex;
        padding: 6px 10px;
        align-items: center;
        gap: 4px;
        border-radius: 4px;
        background: rgba(49, 53, 63, 0.06);
        border: none;
        width: 100px;
        height: 50px;
    }

    .activity-page .container .charts .header .filters-button h2 {
        color: var(--trends_color_blue1);
        font-size: 18px;
        font-style: normal;
        font-weight: 584;
        line-height: 19px; /* 135.714% */
    }

    .activity-page .container .charts .header .filters-button svg {
        width: 16px;
        height: 16px;
        fill: var(--trends_color_blue1);
        transform: rotateZ(-90deg);
        flex: 0 0 auto;
        opacity: 1;
    }

    .activity-page .container .charts .header .header-star {
        display: none;
    }
}
