/* Agronovosti Events */

.widget_agro_events_calendar {
  background: #000;
  box-sizing: border-box;
  padding: 38px 0 48px;
}

.widget_agro_events_calendar > .mvp-main-box,
.widget_agro_events_calendar .agro-cal-wrap,
.widget_agro_events_calendar .agro-cal-row,
.widget_agro_events_calendar .agro-cal-grid {
  box-sizing: border-box;
  min-width: 0;
}

.widget_agro_events_calendar .mvp-widget-home-head {
  margin-bottom: 30px;
}

.widget_agro_events_calendar .mvp-widget-home-head::before,
.widget_agro_events_calendar .mvp-widget-home-head::after {
  background: #3a3a3a;
}

.agro-cal-wrap {
  background: #000;
  color: #fff;
  overflow: hidden;
  width: 100%;
}

.agro-cal-row {
  align-items: center;
  display: flex;
  gap: 16px;
  margin: 0 0 18px;
  width: 100%;
}

.agro-cal-filters {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  min-width: 0;
}

.agro-cal-filters label {
  margin: 0;
}

.agro-cal-filters select {
  appearance: auto;
  background: transparent;
  border: 0;
  color: #29e5b0;
  font-family: Oswald, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  max-width: 100%;
  outline: 0;
  padding: 6px 8px;
}

.agro-cal-all,
.agro-cal-all:visited,
.agro-cal-all:hover,
.agro-cal-all:focus {
  color: #29e5b0 !important;
  font-family: Oswald, Arial, sans-serif;
  font-weight: 700;
  margin-left: auto;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.agro-cal-all--mobile {
  display: none;
}

.agro-cal-grid {
  max-width: 100%;
  width: 100%;
}

.agro-cal-head,
.agro-cal-body {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin: 0;
  min-width: 0;
  width: 100%;
}

.agro-cal-head {
  margin-bottom: 4px;
}

.agro-cal-hcell {
  color: #fff;
  font-weight: 600;
  min-width: 0;
  padding: 6px 0;
  text-align: center;
}

.agro-cal-cell {
  background: #000;
  border: 1px solid #3f3f3f;
  box-sizing: border-box;
  min-height: 112px;
  min-width: 0;
  overflow: hidden;
  padding: 6px 0 7px;
  position: relative;
}

.agro-cal-daynum {
  color: #bdbdbd;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 0 7px;
  text-align: right;
}

.agro-cal-events {
  display: grid;
  gap: 3px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(var(--agro-calendar-lanes), minmax(22px, auto));
  margin-top: 8px;
  min-width: 0;
}

.agro-cal-ev {
  background: var(--agro-event-color);
  box-sizing: border-box;
  grid-row: var(--agro-event-lane);
  min-width: 0;
  overflow: hidden;
}

.agro-cal-ev.is-start {
  border-radius: 4px 0 0 4px;
  margin-left: 3px;
}

.agro-cal-ev.is-end {
  border-radius: 0 4px 4px 0;
  margin-right: 3px;
}

.agro-cal-ev.is-start.is-end {
  border-radius: 4px;
}

.agro-cal-ev a,
.agro-cal-ev a:visited,
.agro-cal-ev a:hover,
.agro-cal-ev a:focus {
  box-sizing: border-box;
  color: #111 !important;
  display: block;
  font-size: 11px;
  font-weight: 700;
  line-height: 22px;
  min-width: 0;
  overflow: hidden;
  padding: 0 5px;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agro-cal-wrap.is-loading .agro-cal-grid {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.agro-event-details {
  margin: 0 0 18px;
}

.agro-event-details .agro-when,
.agro-event-details .agro-where {
  line-height: 1.45;
  margin: 0 0 4px;
}

.post-type-archive-event .mvp-cats,
.post-type-archive-event .mvp-post-date,
.post-type-archive-event .mvp-cat-date-wrap {
  display: none !important;
}

.post-type-archive-event .mvp-blog-story-text p,
.post-type-archive-event .mvp-blog-story-in p,
.post-type-archive-event .mvp-flex-story-text p {
  display: block !important;
  line-height: 1.4;
  margin-top: 6px;
}

.agro-upcoming-widget-title {
  color: inherit;
  font-family: Oswald, Arial, sans-serif;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 22px;
}

.agro-sc-item {
  border: 0 !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
}

.agro-sc-title {
  font-family: Oswald, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 4px;
}

.agro-sc-title a {
  color: inherit;
  text-decoration: none;
}

.agro-sc-when,
.agro-sc-where {
  color: #666;
  font-size: 0.85rem;
  line-height: 1.3;
  margin: 0;
}

.agro-sc-where {
  margin-top: 2px;
}

.agro-modal {
  align-items: center;
  background: rgba(0, 0, 0, 0.62);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 16px;
  position: fixed;
  z-index: 99999;
}

.agro-modal__box {
  background: #fff;
  border-radius: 10px;
  color: #111;
  max-height: calc(100vh - 32px);
  max-width: 640px;
  overflow: auto;
  padding: 18px;
  position: relative;
  width: 100%;
}

.agro-modal__close {
  background: transparent;
  border: 0;
  color: #111;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  position: absolute;
  right: 14px;
  top: 9px;
}

.agro-modal__title {
  font: 700 20px/1.2 Oswald, Arial, sans-serif;
  margin: 0 35px 10px 0;
}

.agro-modal__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.agro-modal__list li {
  border-top: 1px solid #eee;
  padding: 12px 0;
}

.agro-modal__list li:first-child {
  border-top: 0;
}

.agro-modal__list a {
  color: #009f7a;
  display: block;
  font-weight: 700;
  text-decoration: none;
}

.agro-modal__meta {
  color: #333;
  font-size: 14px;
  line-height: 1.35;
  margin-top: 6px;
}

.agro-modal-open {
  overflow: hidden;
}

@media (max-width: 1000px) and (min-width: 769px) {
  .agro-cal-filters {
    gap: 4px;
  }

  .agro-cal-filters select {
    font-size: 14px;
    padding-inline: 4px;
  }

  .agro-cal-all {
    font-size: 13px;
  }

  .agro-cal-cell {
    min-height: 102px;
  }

  .agro-cal-ev a {
    font-size: 10px;
    padding-inline: 3px;
  }
}

@media (max-width: 768px) {
  .widget_agro_events_calendar {
    padding: 30px 0 34px;
  }

  .widget_agro_events_calendar .mvp-widget-home-head {
    margin-bottom: 18px;
  }

  .agro-cal-row {
    display: block;
    margin-bottom: 12px;
  }

  .agro-cal-filters {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .agro-cal-filters select {
    background: #000;
    border: 1px solid #333;
    border-radius: 4px;
    font-size: 14px;
    padding: 9px 5px;
    width: 100%;
  }

  .agro-cal-all--desktop {
    display: none;
  }

  .agro-cal-all--mobile {
    display: block;
    margin: 13px 0 0;
    text-align: right;
  }

  .agro-cal-head,
  .agro-cal-body {
    gap: 3px;
  }

  .agro-cal-head {
    margin-bottom: 3px;
  }

  .agro-cal-hcell {
    font-size: 12px;
    padding: 5px 0;
  }

  .agro-cal-cell {
    aspect-ratio: 1 / 1;
    cursor: default;
    min-height: 0;
    padding: 0;
  }

  .agro-cal-daynum {
    color: #fff;
    font-size: clamp(13px, 4.4vw, 20px);
    padding: 6px;
  }

  .agro-cal-events {
    display: none;
  }

  .agro-cal-cell.agro-has {
    background: #29e5b0;
  }

  .post-type-archive-event .mvp-blog-story-text {
    height: auto !important;
  }

  .post-type-archive-event .mvp-blog-story-text p {
    color: #555;
    font-size: 0.95rem;
  }
}

@media (max-width: 420px) {
  .agro-cal-filters {
    grid-template-columns: 1fr 0.75fr;
  }

  .agro-cal-filters label:last-child {
    grid-column: 1 / -1;
  }
}
