.hbs-br-link {
  color: #6f9eb4;
  text-decoration: none;
  border-bottom: 1px dotted rgba(111, 158, 180, 0.75);
  transition: color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.hbs-br-link:hover,
.hbs-br-link:focus,
.hbs-br-link.is-active {
  color: #4f859e;
  border-bottom-color: rgba(79, 133, 158, 0.95);
  box-shadow: inset 0 -0.45em 0 rgba(111, 158, 180, 0.09);
  outline: none;
}

.hbs-br-popup {
  position: fixed;
  z-index: 999999;
  display: none;
  width: min(390px, calc(100vw - 24px));
  background: #fbf9f4;
  color: #463d35;
  border: 1px solid #ddd7ca;
  border-radius: 14px;
  box-shadow: 0 20px 55px rgba(25, 27, 29, 0.18);
  overflow: hidden;
  font-family: Georgia, 'Times New Roman', serif;
}

.hbs-br-popup.is-visible {
  display: block;
}

.hbs-br-popup__header {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #e4ded2;
  background: linear-gradient(to bottom, #f8f5ee 0%, #f5f1e7 100%);
}

.hbs-br-popup__emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #efe8da;
  color: #b6a58a;
  font-size: 14px;
  line-height: 1;
}

.hbs-br-popup__heading {
  text-align: center;
  min-width: 0;
}

.hbs-br-popup__title {
  color: #6f9eb4;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.hbs-br-popup__subtitle {
  margin-top: 3px;
  color: #8f8678;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hbs-br-popup__close,
.hbs-br-popup__copy {
  appearance: none;
  border: 0;
  cursor: pointer;
}

.hbs-br-popup__close {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: transparent;
  color: #a2917a;
  font-size: 20px;
  line-height: 1;
}

.hbs-br-popup__close:hover,
.hbs-br-popup__close:focus {
  background: rgba(111, 158, 180, 0.1);
  color: #6f9eb4;
  outline: none;
}

.hbs-br-popup__content {
  max-height: 320px;
  overflow: auto;
  padding: 16px;
  font-size: 1.07rem;
  line-height: 1.65;
}

.hbs-br-verse,
.hbs-br-loading,
.hbs-br-error,
.hbs-br-truncated {
  margin: 0 0 0.8em;
}

.hbs-br-verse:last-child,
.hbs-br-loading:last-child,
.hbs-br-error:last-child,
.hbs-br-truncated:last-child {
  margin-bottom: 0;
}

.hbs-br-verse-num {
  color: #7b7367;
  font-size: 0.82em;
  font-weight: 700;
  margin-right: 0.25em;
}

.hbs-br-loading,
.hbs-br-truncated {
  color: #7b7367;
  font-style: italic;
}

.hbs-br-error {
  color: #9a5c5c;
}

.hbs-br-popup__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 14px;
  border-top: 1px solid #e4ded2;
  background: #f8f5ee;
}

.hbs-br-popup__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 0;
}

.hbs-br-popup__copy {
  padding: 7px 12px;
  border-radius: 999px;
  background: #ebe4d7;
  color: #6e6254;
  font-size: 0.84rem;
  font-weight: 600;
}

.hbs-br-popup__copy:hover,
.hbs-br-popup__copy:focus {
  background: #dfe8ed;
  color: #4f859e;
  outline: none;
}

.hbs-br-popup__copy:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.hbs-br-popup__provider {
  color: #8f8678;
  font-size: 0.78rem;
  text-align: right;
}

.hbs-br-popup__branding {
  color: #8f8678;
  font-size: 0.68rem;
  line-height: 1.45;
  text-align: right;
}

.hbs-br-popup__branding-link {
  color: #6f9eb4;
  text-decoration: none;
}

.hbs-br-popup__branding-link:hover,
.hbs-br-popup__branding-link:focus {
  color: #4f859e;
  text-decoration: underline;
  outline: none;
}

@media (max-width: 600px) {
  .hbs-br-popup {
    width: calc(100vw - 20px);
  }

  .hbs-br-popup__content {
    max-height: 50vh;
  }

  .hbs-br-popup__footer {
    align-items: flex-start;
  }

  .hbs-br-popup__meta {
    max-width: 58%;
  }
}
