.tkp-book-introduction {
  white-space: normal;
}

.tkp-book-outcome {
  margin: 0 0 1.2rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid #dce5dd;
  border-left: 3px solid #284a3d;
  background: #f3f6f1;
  color: #22382e;
}

.tkp-book-outcome h2,
.tkp-book-share-dialog h2 {
  margin: 0;
  color: #234337;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.45;
}

.tkp-book-outcome p {
  margin: .5rem 0 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
  font-size: .9375rem;
  line-height: 1.8;
}

.tkp-book-share {
  margin: 0 0 1.4rem;
  line-height: 1.5;
}

.tkp-book-share [hidden] {
  display: none !important;
}

.tkp-book-share-trigger,
.tkp-book-share-actions :is(button, a),
.tkp-book-share-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .55rem .8rem;
  min-height: 44px;
  border: 1px solid #a9bbae;
  border-radius: 5px;
  background: #fff;
  color: #234337;
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.tkp-book-share-trigger,
.tkp-book-share-actions :is([data-book-share-native], [data-book-share-save]) {
  border-color: #284a3d;
  background: #284a3d;
  color: #fff;
}

.tkp-book-share :is(button, a):focus-visible {
  outline: 2px solid #92613a;
  outline-offset: 3px;
}

.tkp-book-share-dialog {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: min(40rem, calc(100% - 1.5rem));
  max-width: none;
  max-height: calc(100% - 1.5rem);
  max-height: calc(100dvh - 1.5rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #dce5dd;
  border-radius: 12px;
  background: #fff;
  color: #22382e;
  text-align: start;
  white-space: normal;
}

.tkp-book-share-dialog::backdrop {
  background: rgb(19 30 24 / 62%);
}

.tkp-book-share-panel {
  display: grid;
  gap: .75rem;
  padding: clamp(.875rem, 3vw, 1.5rem);
}

.tkp-book-share-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tkp-book-share-close {
  width: 44px;
  padding: 0;
  border: 0;
  font-size: 1.5rem;
}

.tkp-book-share-preview {
  display: grid;
  justify-items: center;
  min-width: 0;
  background: #f4f3ed;
  border-radius: 6px;
}

.tkp-book-share-preview img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 48vh;
  max-height: 48dvh;
  object-fit: contain;
}

.tkp-book-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.tkp-book-share-status,
.tkp-book-share-help {
  margin: 0;
  color: #455a4f;
  font-size: .8125rem;
  line-height: 1.55;
}

.tkp-book-share-status:empty {
  display: none;
}

.tkp-book-share-link-field {
  display: block;
  width: 100%;
  margin-top: .3rem;
  color: #234337;
}
