.hpw-epaper-archive-popup-wrap {
  position: relative;
  display: inline-block;
}

.hpw-archive-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid #1d4b8f;
  background: linear-gradient(180deg, #2b65ad 0%, #174a8c 100%);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.2;
}

.hpw-archive-toggle--right {
  justify-content: flex-end;
}

.hpw-archive-icon {
  line-height: 1;
}

.hpw-archive-popup {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 9999;
  min-width: 300px;
  padding: 8px;
  border: 1px solid #c8c8c8;
  background: #f3f3f3;
  box-shadow: 0 10px 25px rgba(0,0,0,.18);
}

.hpw-archive-popup[hidden] {
  display: none !important;
}

.hpw-epaper-archive-calendar-wrap,
.hpw-archive-popup-inner {
  width: 100%;
}

.hpw-archive-calendar-box {
  width: 100%;
}

.hpw-archive-calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding: 6px 8px;
  border: 1px solid #bfbfbf;
  background: #d7d7d7;
}

.hpw-cal-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f0f0f0;
  color: #4a4a4a;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
}

.hpw-calendar-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.hpw-calendar-filters select {
  height: 28px;
  padding: 2px 6px;
  border: 1px solid #8a8a8a;
  background: #fff;
}

.hpw-archive-calendar-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 2px;
  table-layout: fixed;
  text-align: center;
}

.hpw-archive-calendar-table th {
  padding: 6px 0;
  color: #333;
  font-size: 13px;
  font-weight: 600;
}

.hpw-archive-calendar-table td {
  height: 34px;
  border: 1px solid #d6d6d6;
  background: #efefef;
  color: #8f8f8f;
  vertical-align: middle;
  font-size: 12px;
}

.hpw-archive-calendar-table td.empty {
  border: none;
  background: transparent;
}

.hpw-archive-calendar-table td.no-issue {
  color: #b7b7b7;
}

.hpw-archive-calendar-table td.has-issue {
  background: #f3eb8f;
  border-color: #d3c453;
}

.hpw-archive-calendar-table td.is-today:not(.has-issue) {
  outline: 1px solid #9cb2d5;
}

.hpw-archive-calendar-table td.has-issue a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #66651e;
  text-decoration: none;
  font-weight: 600;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
