/* Match the K2 mobile category drawer. Desktop controls remain in place. */
body #icagenda button.tic-agenda-filter-toggle {
  display: none !important;
}

body #icagenda dialog.tic-agenda-filter-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  box-sizing: border-box;
  width: min(390px, calc(100% - 24px));
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 22px;
  border: 0;
  border-radius: 24px 0 0 0;
  background: #fff6ed;
  color: #233c1a;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: -12px 0 48px #0003;
  font-family: inherit;
}

body #icagenda dialog.tic-agenda-filter-drawer:not([open]) {
  display: none !important;
}

body #icagenda .tic-agenda-filter-drawer::backdrop {
  background: #12230fc2;
}

body #icagenda .tic-agenda-filter-drawer * {
  box-sizing: border-box;
}

body #icagenda .tic-agenda-filter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

body #icagenda .tic-agenda-filter-top h2 {
  margin: 0;
  padding: 0;
  color: #233c1a;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.3;
}

body #icagenda button.tic-agenda-filter-close {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0 !important;
  border: 1px solid #d0ce67 !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #233c1a !important;
  box-shadow: none !important;
  font-size: 30px;
  line-height: 1;
  text-shadow: none;
  cursor: pointer;
}

body #icagenda .tic-agenda-filter-heading {
  margin: 20px 0 12px;
  padding: 0;
  color: #233c1a;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

body #icagenda .tic-agenda-filter-drawer .tic-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}

body #icagenda .tic-agenda-filter-drawer .tic-filter-tab {
  flex: 1 1 auto;
  text-align: center;
}

body #icagenda .tic-agenda-filter-drawer .ic-filters {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0;
  border-radius: 0;
}

body #icagenda .tic-agenda-filter-drawer .ic-filters [class*="ic-col-"] {
  float: none !important;
  width: 100% !important;
  max-width: 100%;
}

body #icagenda .tic-agenda-filter-drawer .ic-cell,
body #icagenda .tic-agenda-filter-drawer .ic-row1 {
  height: auto !important;
  margin: 0;
  padding: 0;
}

body #icagenda .tic-agenda-filter-drawer .ic-cell {
  margin-bottom: 12px;
}

body #icagenda .tic-agenda-filter-drawer input:not([type=hidden]),
body #icagenda .tic-agenda-filter-drawer select {
  width: 100% !important;
  max-width: 100%;
  min-height: 44px;
  height: auto;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #d4d6c2;
  border-radius: 8px;
  background: #fff;
  color: #233c1a;
  font-size: 16px;
  line-height: 1.4;
}

body #icagenda .tic-agenda-filter-drawer .input-append {
  display: flex;
  width: 100%;
}

body #icagenda .tic-agenda-filter-drawer .input-append input {
  flex: 1 1 0;
  width: 0 !important;
  min-width: 0;
}

body #icagenda .tic-agenda-filter-drawer .input-append input {
  border-radius: 8px 0 0 8px;
}

body #icagenda .tic-agenda-filter-drawer .input-append button {
  flex: 0 0 44px;
  width: 44px;
  min-height: 44px;
  padding: 0 !important;
  border: 1px solid #233c1a !important;
  border-radius: 0 8px 8px 0 !important;
  background: #233c1a !important;
  color: #fff !important;
}

body #icagenda .tic-agenda-filter-drawer .chzn-container,
body #icagenda .tic-agenda-filter-drawer .chosen-container {
  width: 100% !important;
  max-width: 100%;
}

body #icagenda .tic-agenda-filter-drawer .ic-filters-controls button,
body #icagenda .tic-agenda-filter-drawer .ic-filter-more-btn {
  width: 100%;
  min-height: 44px;
  height: auto !important;
}

body #icagenda .tic-agenda-filter-drawer .ic-filter-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  background: #d0ce67;
  color: #233c1a;
  border-radius: 8px;
  cursor: pointer;
}

body #icagenda .tic-agenda-filter-drawer .ic-filters-controls button.ic-filter-submit-btn {
  padding: 12px 16px !important;
  border: 0 !important;
  border-radius: 24px 6px 24px 6px !important;
  background: #ea560d !important;
  color: #fff !important;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

body #icagenda .tic-agenda-filter-drawer .ic-filters-controls button.ic-filter-submit-btn:hover {
  background: #c74709 !important;
}

body #icagenda .tic-agenda-filter-drawer .ic-filters-controls button.ic-filter-reset-btn {
  padding: 12px 16px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #d0ce67 !important;
  color: #233c1a !important;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

body #icagenda .tic-agenda-filter-drawer .ic-filters-label {
  display: none;
}

body #icagenda .tic-agenda-filter-drawer :is(a, button, input, select):focus-visible,
body #icagenda .tic-agenda-filter-toggle:focus-visible {
  outline: 3px solid #505b15;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  body #icagenda form.tic-agenda-mobile-filters>button.tic-agenda-filter-toggle {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 50px;
    margin: 12px 0 24px;
    padding: 12px 16px !important;
    background: #fff !important;
    color: #233c1a !important;
    border: 1px solid #d0ce67 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    text-align: left;
    text-shadow: none;
    cursor: pointer;
    box-sizing: border-box;
  }

  body #icagenda .tic-agenda-filter-toggle::after {
    content: "";
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
  }

  #icagenda.tic-agenda .tic-filter-actions {
    margin-top: 10px;
  }
}

@media print {

  body #icagenda .tic-agenda-filter-toggle,
  body #icagenda dialog.tic-agenda-filter-drawer {
    display: none !important;
  }
}