.adventistai-sabbath-timer-host {
  padding-top: 22px !important;
  padding-bottom: 22px !important;
}

.adventistai-sabbath-timer {
  width: 100%;
  color: #fff;
  font-family: "Noto Sans", Arial, sans-serif;
}

.adventistai-sabbath-timer[hidden],
.adventistai-sabbath-timer__countdown-view[hidden],
.adventistai-sabbath-timer__sabbath-view[hidden],
.adventistai-sabbath-timer__selector-popover[hidden] {
  display: none !important;
}

.adventistai-sabbath-timer__main {
  display: flex;
  align-items: baseline;
  gap: 10px 12px;
  flex-wrap: wrap;
}

.adventistai-sabbath-timer__label {
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
}

.adventistai-sabbath-timer__countdown {
  font-size: clamp(26px, 2.35vw, 40px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.015em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.adventistai-sabbath-timer__selector {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  margin-left: auto;
}

.adventistai-sabbath-timer__selector-button {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-block !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 1px 0 2px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.88) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff !important;
  font: inherit !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  cursor: pointer;
}

.adventistai-sabbath-timer__selector-button:hover {
  border-bottom-color: #fff !important;
}

.adventistai-sabbath-timer__selector-button:focus-visible {
  outline: 2px solid #fff !important;
  outline-offset: 4px;
}

.adventistai-sabbath-timer__meta,
.adventistai-sabbath-timer__end-time {
  font-size: 14px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
}

.adventistai-sabbath-timer__sabbath-view {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.adventistai-sabbath-timer__verse {
  margin: 0;
  padding: 0;
  border: 0;
  max-width: 760px;
  color: #fff;
}

.adventistai-sabbath-timer__verse-text {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(24px, 2.1vw, 36px);
  line-height: 1.2;
  font-weight: 600;
}

.adventistai-sabbath-timer__verse-reference {
  display: block;
  margin-top: 7px;
  color: rgba(255,255,255,.78);
  font-family: "Noto Sans", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.35;
  font-style: normal;
}

.adventistai-sabbath-timer__sabbath-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.adventistai-sabbath-timer__sabbath-meta .adventistai-sabbath-timer__selector {
  margin-left: 0;
}

.adventistai-sabbath-timer__selector-popover {
  position: absolute;
  z-index: 100;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  padding: 9px 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 8px 26px rgba(0,0,0,.22);
  color: #222;
}

.adventistai-sabbath-timer__selector-title {
  padding: 6px 14px 8px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #777;
}

.adventistai-sabbath-timer__selector-list {
  display: block;
  max-height: min(420px, 65vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.adventistai-sabbath-timer__selector-option {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 9px 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #222 !important;
  font: inherit !important;
  font-size: 14px !important;
  line-height: 1.25 !important;
  text-align: left !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  cursor: pointer;
}

.adventistai-sabbath-timer__selector-option:hover,
.adventistai-sabbath-timer__selector-option:focus-visible,
.adventistai-sabbath-timer__selector-option.is-selected {
  background: #f1f1f1 !important;
}

.adventistai-sabbath-timer__selector-option:focus-visible {
  outline: 2px solid #315b82 !important;
  outline-offset: -2px;
}

.adventistai-sabbath-timer__selector-option.is-selected > span:first-child {
  font-weight: 700;
}

.adventistai-sabbath-timer__selector-time {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: #666;
}

@media (max-width: 760px) {
  .adventistai-sabbath-timer-host {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
  }

  .adventistai-sabbath-timer__main {
    gap: 7px 9px;
  }

  .adventistai-sabbath-timer__label {
    width: 100%;
    font-size: 14px;
  }

  .adventistai-sabbath-timer__countdown {
    font-size: 30px;
  }

  .adventistai-sabbath-timer__selector {
    margin-left: 0;
  }

  .adventistai-sabbath-timer__selector-button,
  .adventistai-sabbath-timer__meta,
  .adventistai-sabbath-timer__end-time {
    font-size: 13px !important;
  }

  .adventistai-sabbath-timer__selector-popover {
    left: 0;
    right: auto;
    min-width: min(280px, calc(100vw - 48px));
  }

  .adventistai-sabbath-timer__selector-list {
    max-height: 360px;
  }

  .adventistai-sabbath-timer__sabbath-view {
    display: block;
  }

  .adventistai-sabbath-timer__verse-text {
    font-size: 25px;
  }

  .adventistai-sabbath-timer__verse-reference {
    margin-top: 6px;
    font-size: 13px;
  }

  .adventistai-sabbath-timer__sabbath-meta {
    margin-top: 15px;
    white-space: normal;
    flex-wrap: wrap;
  }
}
