.ht-opendays-popup {
  --opendays-popup-red: #c5372a;
  position: fixed;
  inset: 0;
  z-index: 10050;
  pointer-events: none;
}

.ht-opendays-popup.is-visible {
  pointer-events: auto;
}

.ht-opendays-popup[hidden] {
  display: none !important;
}

.ht-opendays-popup__backdrop {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.ht-opendays-popup__panel {
  position: absolute;
  left: 24px;
  bottom: 24px;
  width: min(420px, calc(100vw - 32px));
  padding: 28px 24px 24px;
  color: #fff;
  background: var(--opendays-popup-red);
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 250ms ease, transform 250ms ease;
}

.ht-opendays-popup.is-visible .ht-opendays-popup__panel {
  opacity: 1;
  transform: translateY(0);
}

.ht-opendays-popup__close {
  position: absolute;
  top: -14px;
  right: -14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #1a1a1a;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ht-opendays-popup__title {
  margin: 0 0 12px;
  font-family: 'Abril Fatface', serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
}

.ht-opendays-popup__intro {
  margin: 0 0 16px;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  line-height: 1.4;
  color: #fff;
}

.ht-opendays-popup__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ht-opendays-popup__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  line-height: 1.3;
}

.ht-opendays-popup__item[hidden] {
  display: none !important;
}

.ht-opendays-popup__date {
  font-weight: 700;
}

.ht-opendays-popup__location {
  text-align: right;
}

.ht-opendays-popup__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin: 8px 0 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: underline;
  cursor: pointer;
}

.ht-opendays-popup__chevron {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #fff;
  transition: transform 200ms ease;
}

.ht-opendays-popup__toggle[aria-expanded="true"] .ht-opendays-popup__chevron {
  transform: rotate(180deg);
}

.ht-opendays-popup__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  border-radius: 2px;
  background: #1a1a1a;
  color: #fff !important;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
}

.ht-opendays-popup__cta:hover,
.ht-opendays-popup__cta:focus {
  color: #fff !important;
  opacity: 0.92;
}

@media only screen and (max-width: 736px) {
  html.ht-opendays-popup-open,
  html.ht-opendays-popup-open body {
    overflow: hidden;
  }

  .ht-opendays-popup__backdrop {
    display: block;
  }

  .ht-opendays-popup__panel {
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    width: min(380px, calc(100vw - 40px));
    transform: translate(-50%, calc(-50% + 12px));
  }

  .ht-opendays-popup.is-visible .ht-opendays-popup__panel {
    transform: translate(-50%, -50%);
  }

  .ht-opendays-popup__title {
    font-size: 26px;
  }
}
