/* Toggle button bottom-left */
#wte-events-toggle,
.wte-events-toggle {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9998;
  background: #111;
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

/* Toggle button bottom-left */
#wte-events-toggle1,
.wte-events-toggle1 {
  position: fixed;
  left: 16px;
  bottom: 64px;
  z-index: 9998;
  background: #111;
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

/* Modal */
.wte-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.wte-modal.is-open {
  display: block;
}

.wte-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.wte-modal__dialog {
  position: relative;
  max-width: 960px;
  width: 95%;
  max-height: 90vh;
  margin: 40px auto;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.wte-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}

#wte-modal-title {
  margin: 0;
  padding: 16px 20px 8px;
  font-size: 20px;
}

.wte-filters {
  padding: 0 20px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.wte-range-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.wte-range-btn {
  padding: 4px 10px;
  border: 1px solid #ddd;
  background: #f7f7f7;
  cursor: pointer;
  border-radius: 999px;
  font-size: 13px;
}

.wte-range-btn.is-active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.wte-filter {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}

.wte-filter select {
  padding: 3px 6px;
  font-size: 13px;
}

.wte-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}

/* Events list */
#wte-events-list {
  padding: 10px 20px 20px;
  overflow-y: auto;
}

.wte-events-list {
  display: block;
}

.wte-event-card {
  border-radius: 16px;
  border: 1px solid #eee;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.wte-event-card__image img {
  width: 100%;
  /*height: 260px; */
  display: block;
  object-fit: cover;
}

.wte-event-card__content {
  padding: 10px 12px 12px;
}

.wte-event-card__title {
  margin: 0 0 4px;
  font-size: 16px;
}

.wte-event-card__meta {
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
}

.wte-event-card__excerpt {
  font-size: 13px;
  margin: 0 0 6px;
}

.wte-event-card__link {
  display: inline-block;
  font-size: 13px;
  text-decoration: underline;
}

.wte-event--past {
  opacity: 0.7;
}

.wte-event-card__meta {
  font-size: 13px;
  margin-bottom: 6px;
}

.wte-event-card__meta-row {
  line-height: 1.4;
}

.wte-event-card__more {
  margin-top: 4px;
}

.wte-event-card__more a {
  font-size: 13px;
  text-decoration: underline;
}


.wte-no-events {
  padding: 12px;
  font-size: 14px;
}
