/**
 * My Events Filter Bar — filter-bar.css
 *
 * Design intent: a clean horizontal filter strip that sits naturally above
 * any TEC view (list, month, grid). Uses CSS custom properties for all
 * colours and sizes so theme overrides are a single :root block.
 *
 * Specificity is kept intentionally low (single class selectors throughout)
 * so your theme or child-theme rules always win without needing !important.
 */

/* ── Custom properties ──────────────────────────────────────────────────── */
:root {
    --mefb-bg:             #f8f8f8;
    --mefb-border:         #e0e0e0;
    --mefb-radius:         6px;
    --mefb-font:           inherit;
    --mefb-font-size:      0.9rem;
    --mefb-label-color:    #555;
    --mefb-select-bg:      #fff;
    --mefb-select-color:   #222;
    --mefb-select-border:  #ccc;
    --mefb-select-focus:   #4a90d9;
    --mefb-btn-bg:         #1a1a1a;
    --mefb-btn-color:      #fff;
    --mefb-btn-radius:     4px;
    --mefb-clear-color:    #666;
    --mefb-gap:            1rem;
}

/* ── Wrapper ────────────────────────────────────────────────────────────── */
.mefb-filter-bar {
    background:    var(--mefb-bg);
    border:        1px solid var(--mefb-border);
    border-radius: var(--mefb-radius);
    padding:       1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-family:   var(--mefb-font);
    font-size:     var(--mefb-font-size);
}

/* ── Form layout ────────────────────────────────────────────────────────── */
.mefb-form {
    display:     flex;
    flex-wrap:   wrap;
    align-items: flex-end;
    gap:         var(--mefb-gap);
}

/* ── Individual filter group ────────────────────────────────────────────── */
.mefb-filter {
    display:        flex;
    flex-direction: column;
    gap:            0.25rem;
    flex:           1 1 160px; /* Grow, but start at ~160px. */
    min-width:      0;         /* Prevents overflow in flex. */
}

/* ── Label ──────────────────────────────────────────────────────────────── */
.mefb-label {
    font-size:    0.8rem;
    font-weight:  600;
    color:        var(--mefb-label-color);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor:       pointer;
}

/* ── Select ─────────────────────────────────────────────────────────────── */
.mefb-select {
    appearance:    none;
    -webkit-appearance: none;
    background-color:   var(--mefb-select-bg);
    color:              var(--mefb-select-color);
    border:             1px solid var(--mefb-select-border);
    border-radius:      var(--mefb-radius);
    padding:            0.45rem 2rem 0.45rem 0.65rem;
    font-size:          var(--mefb-font-size);
    font-family:        inherit;
    width:              100%;
    cursor:             pointer;
    /* Chevron icon via inline SVG background. */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat:   no-repeat;
    background-position: right 0.5rem center;
    background-size:     1rem;
}

.mefb-select:focus {
    outline:      none;
    border-color: var(--mefb-select-focus);
    box-shadow:   0 0 0 3px color-mix(in srgb, var(--mefb-select-focus) 20%, transparent);
}

/* ── Action buttons ─────────────────────────────────────────────────────── */
.mefb-actions {
    display:     flex;
    align-items: center;
    gap:         0.6rem;
    flex-shrink: 0;
    padding-top: 1.25rem; /* Aligns with selects (label height). */
}

.mefb-btn {
    display:         inline-flex;
    align-items:     center;
    justify-content: center;
    padding:         0.45rem 1rem;
    border:          none;
    border-radius:   var(--mefb-btn-radius);
    font-size:       var(--mefb-font-size);
    font-family:     inherit;
    font-weight:     600;
    cursor:          pointer;
    text-decoration: none;
    transition:      opacity 0.15s ease;
    line-height:     1.4;
}

.mefb-btn:hover {
    opacity: 0.85;
}

.mefb-btn:focus-visible {
    outline:      3px solid var(--mefb-select-focus);
    outline-offset: 2px;
}

/*.mefb-btn--apply {*/
/*    background: var(--mefb-btn-bg);*/
/*    color:      var(--mefb-btn-color);*/
/*}*/
.mefb-filter-bar .mefb-btn--apply {
    display: none !important;
}
.mefb-btn--clear {
    background: transparent;
    color:      var(--mefb-clear-color);
    text-decoration: underline;
    /*padding-left:  0.25rem;*/
    /*padding-right: 0.25rem;*/
    padding: 10px!important;
}

.mefb-filter-bar--empty {
  display: none !important;
}

.tribe-events-c-search {
  display: flex !important;
  align-items: center !important;
}

.tribe-events-c-search .mefb-filter-group {
  display: flex !important;
  align-items: center !important;
  position: relative !important;
  margin: 0 !important;
  padding: 0 12px !important;
}

.tribe-events-c-search .mefb-filter-group::before {
  content: "" !important;
  display: block !important;
  width: 1px !important;
  height: 24px !important;
  background-color: #e2e8f0 !important;
  margin-right: 12px !important;
}

.tribe-events-c-search .mefb-filter-group select {
  border: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  font-size: 15px !important;
  color: #2d3748 !important;
  padding: 8px 28px 8px 4px !important;
  cursor: pointer !important;
  height: auto !important;
  line-height: normal !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234A5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
}

.tribe-events-c-search .mefb-filter-group select:hover {
  color: #1a202c !important;
}

/*@media (max-width: 768px) {*/
/*  .tribe-events-c-search {*/
/*    flex-direction: column !important;*/
/*    align-items: stretch !important;*/
/*  }*/
  
/*  .tribe-events-c-search .mefb-filter-group {*/
/*    padding: 8px 0 !important;*/
/*    border-bottom: 1px solid #edf2f7 !important;*/
/*  }*/

/*  .tribe-events-c-search .mefb-filter-group::before {*/
/*    display: none !important;*/
/*  }*/
/*}*/
/* ── Responsive ─────────────────────────────────────────────────────────── */
/*@media (max-width: 600px) {*/
/*    .mefb-form {*/
/*        flex-direction: column;*/
/*    }*/

/*    .mefb-filter {*/
/*        flex: none;*/
/*        width: 100%;*/
/*    }*/

/*    .mefb-actions {*/
/*        padding-top: 0;*/
/*        width: 100%;*/
/*    }*/

/*    .mefb-btn--apply {*/
/*        flex: 1;*/
/*    }*/
/*}*/

/* ── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .mefb-btn {
        transition: none;
    }
}

.tribe-common--breakpoint-medium.tribe-events .tribe-events-header__events-bar {
    margin-bottom: 0;
}
.tribe-common--breakpoint-medium.tribe-events .tribe-events-header--has-event-search {
    background-color: white!important;
}
.mefb-below-bar-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 20px !important;
    width: 100% !important;
    margin-top: 23px !important;
    margin-bottom: 0px !important;
}

.mefb-below-bar-actions .tribe-events-c-events-bar__views {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}

.mefb-below-bar-actions .tribe-events-c-subscribe-dropdown__container,
.mefb-below-bar-actions .tribe-events-c-subscribe-dropdown {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
}

.tribe-events-c-events-bar__search-form {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}
.tribe-events-header {
    display: flex !important;
padding: 31.805px !important;
flex-direction: column !important;
align-items: flex-start !important;
align-self: stretch !important;
border-radius: 22.263px;
border: 1.59px solid #E8E8E8;
}
#tribe-events-search-container {
    display: flex;
max-width: 1459.846px;
max-height: 68.381px;
align-items: flex-start;
    border-radius: 15.902px;
border: 1.59px solid #E0E0E0;
background: #F8F8F8;
}
.tribe-events-header__events-bar{
    border: 0!important;
}
#tribe-events-events-bar-keyword{
border-right: 1.59px solid #E0E0E0;
}
#mefb-venue, #mefb-program,#mefb-category{
    background-color: transparent;
        border: none;
}
.mefb-filter--venue {
border-right: 1.59px solid #E0E0E0!important;
}

.mefb-filter{
    height:100%;
    justify-content: center;
}

.mefb-select {
    padding: 0.45rem 2rem 0.45rem 0.65rem;
    width: 90%!important;
    margin: 0 auto !important;
}
.tribe-common--breakpoint-medium.tribe-events .tribe-events-c-search__input-group {
    width: 50%;
}
.tribe-common-c-btn {
    height: 100%!important;
    border-radius: 15.902px!important;
    border-bottom-left-radius: 0px!important;
    border-top-left-radius: 0px!important;
}
.tribe-common--breakpoint-medium.tribe-events .tribe-events-header__top-bar {
    margin-bottom: 0 !important;
    margin-top: 25px;
}
#tribe-events-view-selector-content{
    padding: 0!important;
}
.tribe-common--breakpoint-medium.tribe-events .tribe-events-l-container {
    padding-top: 50px!important;
}
.tribe-common--breakpoint-medium.tribe-common .tribe-common-form-control-text__input {
    padding: 15px 49px;
}
.tribe-events-c-view-selector__list {
    display: flex;
    align-items: flex-start;
    gap: 6.361px;
}
.tribe-events-c-view-selector__list-item-link {
    padding: 9.541px 19.083px;
}

.mefb-below-bar-actions .tribe-events-c-view-selector__list {
    display: inline-flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 6.36px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.mefb-below-bar-actions .tribe-events-c-view-selector__list-item {
    display: inline-flex !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
}

.mefb-below-bar-actions .tribe-events-c-view-selector__list-item-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    padding: 6.54px 19.08px !important;
    border-radius: 15.90px !important;
    border: 1.59px solid #E8E8E8 !important;
    background: transparent !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.mefb-below-bar-actions .tribe-events-c-view-selector__list-item-text {
    color: #141827 !important;
    text-align: center !important;
}

.mefb-below-bar-actions .tribe-events-c-view-selector__list-item--active .tribe-events-c-view-selector__list-item-link, .tribe-events-c-view-selector__list-item-link:focus, .tribe-events-header .tribe-common a:active, .tribe-events-header .tribe-common a:focus, .tribe-events-header .tribe-common a:hover {
    border-color: #4A834C !important;
    background: rgba(74, 131, 76, 0.09)!important;
    border-radius: 15.90px !important;
}
 .tribe-common--breakpoint-medium.tribe-events .tribe-events-c-view-selector__list-item:hover {
    background-color: transparent!important;
}
    .tribe-events-c-top-bar__today-button{
        border-radius: 15.90px !important;
    }
.tribe-events-c-subscribe-dropdown__button, .tribe-events .tribe-events-c-subscribe-dropdown .tribe-events-c-subscribe-dropdown__button:hover{
        border-color: #4A834C !important;
    background: rgba(74, 131, 76, 0.09)!important;
    border-radius: 15.90px !important;
     padding: 6.54px 19.08px !important;
     color: #4A834C !important;
}
.mefb-below-bar-actions .tribe-events-c-view-selector__list-item--active .tribe-events-c-view-selector__list-item-text {
    font-weight: 700 !important;
}

.mefb-below-bar-actions .tribe-events-c-view-selector__list-item-icon,
.mefb-below-bar-actions .tribe-events-c-view-selector__button-icon,
.mefb-below-bar-actions .tribe-events-c-view-selector__button-icon-caret-svg {
    display: none !important;
}

.mefb-below-bar-actions .tribe-events-c-view-selector__content {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    box-shadow: none !important;
    background: transparent !important;
}

.mefb-below-bar-actions .tribe-events-c-view-selector__button {
    display: none !important;
}

.tribe-common--breakpoint-medium.tribe-events .tribe-events-c-view-selector--tabs .tribe-events-c-view-selector__list-item--active .tribe-events-c-view-selector__list-item-link:after {
    background-color: transparent;
    bottom: -1px;
    content: "";
    display: block;
    height: 0px;
    position: absolute;
    width: 100%;
}

.mefb-below-bar-actions .tribe-events-c-subscribe-dropdown,
.mefb-below-bar-actions .tribe-events-c-subscribe-dropdown__container {
    position: relative !important;
    display: inline-block !important;
}

.mefb-below-bar-actions .tribe-events-c-subscribe-dropdown__content {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    z-index: 100 !important;
    margin-top: 8px !important;
    width: max-content !important;
    min-width: 200px !important;
    background: #ffffff !important;
    border: 1.59px solid #E8E8E8 !important;
    border-radius: 12px !important;
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.08) !important;
    padding: 8px 0 !important;
}
.tribe-events .tribe-events-c-subscribe-dropdown .tribe-events-c-subscribe-dropdown__list {
    border: none!important;
    border-radius: 12px !important;
}
.tribe-events .tribe-events-c-subscribe-dropdown .tribe-events-c-subscribe-dropdown__list-item:hover {
    background-color: transparent!important
}
.tribe-events-calendar-month, .tribe-events-calendar-day, .tribe-events-calendar-list{
      margin-top: 30px!important;
}
.tribe-common--breakpoint-medium.tribe-events .tribe-events-header__messages {
    margin-top: 20px;
}
.mefb-dynamic-clear-btn:hover{
    color: green!important;
}
.tribe-events-c-top-bar__nav-list {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.tribe-events-c-top-bar__nav-list-item {
    display: inline-flex !important;
    margin: 0 !important;
}

.tribe-events-c-top-bar__nav-link,
.tribe-events-c-top-bar__today-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 8px 16px !important;
    height: auto !important;
    min-height: 40px !important;
    border: 1.5px solid #E0E0E0 !important;
    border-radius: 15.9px !important;
    background-color: #ffffff !important;
    color: #141827 !important;
    font-family: 'Open Sans', sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.mefb-nav-label {
    color: #141827 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

.tribe-events-c-top-bar__nav-link .tribe-common-c-svgicon {
    width: 5px !important;
    height: 14px !important;
    fill: none !important;
    stroke: #141827 !important;
    flex-shrink: 0 !important;
}

.tribe-events-c-top-bar__nav-link .tribe-common-c-svgicon path {
    fill: #141827 !important;
}

.tribe-events-c-top-bar__nav-link:hover:not([disabled]),
.tribe-events-c-top-bar__today-button:hover {
    border-color: #4A834C !important;
    background: rgba(74, 131, 76, 0.05) !important;
}

.tribe-events-c-top-bar__nav-link[disabled] {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    border-color: #E8E8E8 !important;
}
.tribe-events .tribe-events-c-top-bar__nav-link--prev,.tribe-events .tribe-events-c-top-bar__nav-link--next {
    width: fit-content;
}
.tribe-events .tribe-events-c-top-bar__nav-list-item {
    padding-right: 0!important;
}
.tribe-common--breakpoint-medium.tribe-events .tribe-events-c-top-bar__today-button {
    margin-right: 0px!important;
}
.tribe-events-c-top-bar__datepicker{
justify-items: right;
    display: flex;
    justify-content: end;
    flex-direction: row-reverse;
}
.tribe-events-c-top-bar__datepicker-container {
    position: relative !important;
}
.admin-bar .tribe-events.tribe-common--breakpoint-medium .datepicker {
    margin-top: 35px;
}

.tribe-events-c-top-bar__datepicker-container .datepicker.dropdown-menu {
    left: 0 !important;
    right: auto !important;
    transform: none !important;
    max-width: calc(100vw - 32px) !important;
}

.mefb-filter-bar .mefb-select,
.tribe-events-c-search__input-control select,
select[name*="mefb_"],
select[name*="tribe_"] {
    min-width: 180px !important;
    width: auto !important;
    max-width: 100% !important;
    padding-right: 32px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.tribe-events-c-search__input-group,
.mefb-filter-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
}
.tribe-events-before-html {
        display: none;
}

.tribe-events-single-series .tribe-events-c-events-bar,
.tribe-events-series .tribe-events-c-events-bar,
.tribe-events-calendar-series-archive__header-nav {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}
/**/
@media (max-width: 1137px) {
    .tribe-common--breakpoint-medium.tribe-events .tribe-events-c-search__input-group {
    width: 40%;
}
select[name*="mefb_"]{
    min-width: auto!important;
}

}

@media (max-width: 903px) {
#mefb-program, #mefb-venue, #mefb-category{
      font-size: 14px;
}
.mefb-select {
    padding: 0.45rem 1rem 0.45rem 0.65rem;
    background-position: right 6px center;
    background-size: 14px;
}
.tribe-common--breakpoint-medium.tribe-common .tribe-common-form-control-text__input {
    font-size: 14px!important;
}

}

/* ==========================================================================
   LATEST PAST EVENTS VIEW FIXES
   ========================================================================== */

.tribe-events-calendar-latest-past__event-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
}

article.tribe-events-calendar-latest-past__event {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 24px !important;
    width: 100% !important;
    margin: 0 0 32px 0 !important;
}

article.tribe-events-calendar-latest-past__event.tribe-common-g-row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.tribe-events-calendar-latest-past__event-details {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.tribe-events-calendar-latest-past__event-featured-image-wrapper {
    flex: 0 0 220px !important;
    width: 220px !important;
    max-width: 220px !important;
    padding: 0 !important;
    margin: 0 !important;
}

.tribe-events-calendar-latest-past__event-featured-image-wrapper a {
    display: block !important;
    width: 100% !important;
}

.tribe-events-calendar-latest-past__event-featured-image {
    width: 100% !important;
    height: 150px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    display: block !important;
}


.tribe-events-calendar-latest-past__event-description.tribe-common-a11y-hidden {
    clip: auto !important;
    clip-path: none !important;
    height: auto !important;
    margin: 10px 0 14px 0 !important;
    overflow: visible !important;
    position: static !important;
    width: auto !important;
    display: block !important;
}

.tribe-events-calendar-latest-past__event-description p {
    margin: 0 !important;
    color: #4a5568 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}


.tec-event-meta-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 20px !important;
    margin-top: auto !important;
}

.tec-event-meta-time,
.tec-event-meta-venue {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.tribe-events-calendar-latest-past__event-row{
    margin: 0px !important;
}
.tribe-events-calendar-latest-past__event-venue .tribe-common-b2, .tribe-common--breakpoint-medium.tribe-events .tribe-events-calendar-latest-past__event-venue{
    margin-bottom: 0px!important;
}
@media (max-width: 767px) {
    .mefb-series-title {
    font-size: 30px!important;
}
    article.tribe-events-calendar-latest-past__event {
        flex-direction: column-reverse !important;
    }
    
    .tribe-events-calendar-latest-past__event-featured-image-wrapper {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .tribe-events-calendar-latest-past__event-featured-image {
        height: 200px !important;
    }
}

article.tribe-events-calendar-list__event {
    align-items: stretch !important;
}
.tribe-events-calendar-latest-past__event-date-tag-datetime{
        justify-content: center!important;
}

.tec-event-featured-image-wrapper {
    flex: 0 0 240px !important;
    width: 240px !important;
    display: flex !important;
}
.tribe-events-calendar-latest-past__event-date-tag {
    border-right: 1px solid #E8E8E8!important;
}
.tec-event-featured-image-wrapper a {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

.tec-event-featured-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 12px !important;
}
.tribe-events-pro-summary__event-date-tag {
     display: none !important;
}
.tribe-events-pro-summary__event-wrapper{
    padding: 0 !important;
}
.tribe-events-pro-summary{
        margin-top: 20px!important;
}
.tribe-events-pro .tribe-events-pro-summary__month-separator:after {
    margin-left: 20px;
}
.tribe-events-pro-summary__month-separator-text {
    display: block !important;
    color: #141827 !important;
    font-size: 22px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: 38.166px !important;
}
.mefb-series-header {
    margin: 0 !important;
    padding: 0 !important;
}
.mefb-series-header .mefb-series-title {
    font-size: var(--tec-font-size-10);
    line-height: var(--tec-line-height-0);
    margin-bottom: var(--tec-spacer-3)!important;
}

@media (max-width: 1039px) {
.tribe-events-c-top-bar__datepicker {
    position: absolute!important;
    right: 31.805px !important;
}

}
/* =========================================================
   THE EVENTS CALENDAR – MOBILE CUSTOM STYLES
   ========================================================= */
@media (max-width: 767px) {

    /* =========================================
       EVENTS HEADER
       ========================================= */

    .tribe-events .tribe-events-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
                background-color: white !important;
        margin-left: 5px;
        margin-right: 5px;
    }


    /* =========================================
       FILTERS
       ========================================= */

    .tribe-events .tribe-events-header__events-bar {
        width: 100% !important;
        margin: 0 !important;
    }

    .tribe-events .tribe-events-c-events-bar {
        display: block !important;
        width: 100% !important;
    }

    .tribe-events .tribe-events-c-events-bar__search-container {
        display: block !important;
        position: static !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .tribe-events .tribe-events-c-events-bar__search {
        display: block !important;
        width: 100% !important;
    }

    .tribe-events .tribe-events-c-search {
        display: flex !important;
        /*flex-direction: column !important;*/
        width: 100% !important;
        gap: 12px !important;
    }

    /* ukrywamy oryginalne pole Search */
    .tribe-events .tribe-events-c-search__input-group {
        display: none !important;
    }


    /* =========================================
       TWO CUSTOM FILTERS
       ========================================= */

    .mefb-filters,
    .mefb-filter-wrapper,
    .mefb-filter-bar {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .mefb-filters select,
    .mefb-filter-wrapper select,
    .mefb-filter-bar select {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 46px !important;
        height: 46px !important;
        margin: 0 !important;
        padding: 10px 35px 10px 14px !important;
        box-sizing: border-box !important;
    }


    /* =========================================
       FIND EVENTS
       ========================================= */

    .tribe-events .tribe-common-c-btn.tribe-events-c-search__button,
    .tribe-events .tribe-events-c-search__button {
        display: block !important;
        width: 25% !important;
        min-height: 46px !important;
        height: 46px !important;
        margin: 0 !important;
        padding: 10px 20px !important;
        box-sizing: border-box !important;
    }
    #mefb-program, #mefb-venue, #mefb-category {
        width: 100% !important;
    }

    /* =========================================
       HIDE TEC SEARCH ICON BUTTON
       ========================================= */

    .tribe-events .tribe-events-c-events-bar__search-button {
        display: none !important;
        visibility: hidden !important;
    }


    /* =========================================
       LIST / MONTH / DAY
       ========================================= */

    .tribe-events .tribe-events-c-view-selector {
        display: block !important;
        width: 100% !important;
    }

    .tribe-events .tribe-events-c-view-selector__button {
        display: none !important;
        visibility: hidden !important;
    }

    .tribe-events .tribe-events-c-view-selector__content {
        display: block !important;
        position: static !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        transform: none !important;
    }

    .tribe-events .tribe-events-c-view-selector__list {
        display: flex !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .tribe-events .tribe-events-c-view-selector__list-item {
        display: block !important;
        flex: 1 1 33.333% !important;
        width: 33.333% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .tribe-events .tribe-events-c-view-selector__list-item--active {
        display: block !important;
    }

    .tribe-events .tribe-events-c-view-selector__list-item-link {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-height: 44px !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }
.tribe-events-c-view-selector__content {
    border: 0 !important;
}
    .tribe-events .tribe-events-c-view-selector__list-item-icon {
        display: none !important;
        visibility: hidden !important;
    }


    /* =========================================
       TOP BAR — AUGUST 2026
       ========================================= */

    .tribe-events .tribe-events-header__top-bar {
        display: block !important;
        width: 100% !important;
        margin: 20px 0 0 !important;
    }

    .tribe-events .tribe-events-c-top-bar {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
    }

    .tribe-events .tribe-events-c-top-bar__nav {
        display: block !important;
        visibility: visible !important;
    }

    .tribe-events .tribe-events-c-top-bar__nav-list {
        display: flex !important;
        align-items: center !important;
    }

    .tribe-events .tribe-events-c-top-bar__nav-list-item {
        display: block !important;
    }

    .tribe-events .tribe-events-c-top-bar__today-button {
        display: block !important;
        visibility: visible !important;
        margin-right: 12px !important;
    }

.tribe-events-c-top-bar__datepicker-desktop, .tribe-events-c-top-bar__datepicker-mobile {
    font-size: 20px !important;
}
    /* =========================================
       SUBSCRIBE
       ========================================= */

    .tribe-events .tribe-events-c-subscribe-dropdown {
        width: 100% !important;
    }

    .tribe-events .tribe-events-c-subscribe-dropdown__container {
        display: flex !important;
        width: 100% !important;
    }

    .tribe-events .tribe-events-c-subscribe-dropdown__button {
        width: 100% !important;
        min-height: 44px !important;
    }


    /* =========================================
       CONTAINER
       ========================================= */

    .tribe-events .tribe-events-l-container {
        width: 100% !important;
        min-height: 0 !important;
        padding-top: 20px !important;
        padding-bottom: 40px !important;
    }
    .tribe-events-c-subscribe-dropdown__container , .tribe-events-c-events-bar__views {
         width: 50% !important;
    }
  .mefb-below-bar-actions {
         width: 100% !important;
    }
}

@media (max-width: 660px) {
    .mefb-nav-label{
          display: none!important;
    }
        .tribe-events .tribe-common-c-btn.tribe-events-c-search__button, .tribe-events .tribe-events-c-search__button {
        width: 35% !important;
                padding: 10px 7px !important;
    }
.tribe-events-c-top-bar__nav-link, .tribe-events-c-top-bar__today-button {
    gap: 0px !important;
}
.mefb-below-bar-actions {
    flex-direction: column-reverse;
}

}
@media (max-width: 494px) {
    .mefb-series-header .mefb-series-title, .tribe-events-header__title-text {
    font-size: 25px!important;
    margin-bottom: 6px!important;
}
        .tribe-events .tribe-events-c-search {
        display: flex !important;
        flex-direction: column !important;
    }
    .tribe-events .tribe-common-c-btn.tribe-events-c-search__button, .tribe-events .tribe-events-c-search__button {
        width: 100% !important;
        padding: 10px 7px !important;
        border-bottom-left-radius: 10px !important;
        border-top-left-radius: 10px !important;
    }
    .mefb-filter--venue {
    border-right: none!important;
}
    .tribe-events .tribe-events-c-search {
        gap: 10px !important;
    }
    .mefb-filter--venue, .mefb-filter--program {
            display: block !important;
        grid-column: 1 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .mefb-filter--venue {
    border-bottom: 1.59px solid #E0E0E0 !important;
}
#tribe-events-search-container {
    border: none;
    background: transparent;
}
.mefb-filter--venue, .mefb-filter--program {
        border-radius: 15.902px;
    border: 1.59px solid #E0E0E0 !important;
    background: #F8F8F8 !important;
}
    #mefb-program, #mefb-venue, #mefb-category {
        font-size: 15px;
        padding: 12px;
    }
    .mefb-filter {
    flex: auto;
}
#tribe-events-search-container {
    max-height: 100%!important;
}
      .tribe-events .tribe-events-c-view-selector__list {

        flex-direction: column;
    }
        .tribe-events-c-subscribe-dropdown__container, .tribe-events-c-events-bar__views {
        width: 100% !important;
    }
        .tribe-events .tribe-events-c-view-selector__list-item {
        flex: 1 1 100% !important;
        width: 100% !important;
    }
        .tribe-events .tribe-events-c-top-bar__nav-list {
        display: flex !important;
        align-items: center !important;
        place-content: space-between;
    }
        .tribe-events .tribe-events-c-top-bar__nav {
        display: block !important;
        visibility: visible !important;
        width: 100%;
    }
    .tribe-events .tribe-events-c-top-bar__datepicker {
  display: none !important;
}
}

