.bk-share-entry {
  display: flex;
  justify-content: flex-end;
  margin: 32px 0 8px;
  padding-top: 22px;
  border-top: 1px solid #e3e7e5;
}

.bk-share-trigger,
.bk-share-dialog button {
  letter-spacing: 0;
}

.bk-share-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #202a31;
  border-radius: 6px;
  background: #fff;
  color: #202a31;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.bk-share-trigger:hover,
.bk-share-trigger:focus-visible {
  background: #202a31;
  color: #fff;
  outline: none;
  transform: translateY(-1px);
}

.bk-share-trigger .dashicons {
  width: 18px;
  height: 18px;
  font-size: 18px;
}

html.bk-share-open {
  overflow: hidden;
}

.bk-share-overlay[hidden],
.bk-share-card-panel[hidden],
.bk-share-card-preview[hidden],
.bk-share-card-actions[hidden],
.bk-share-loading[hidden] {
  display: none !important;
}

.bk-share-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(17, 24, 39, 0.78);
}

.bk-share-dialog {
  position: relative;
  width: min(520px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow-y: auto;
  border: 1px solid #202a31;
  border-radius: 8px;
  background: #fff;
  color: #202a31;
  box-shadow: 0 22px 60px rgba(17, 24, 39, 0.3);
}

.bk-share-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 14px 0 20px;
  border-bottom: 1px solid #e3e7e5;
}

.bk-share-dialog-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.bk-share-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #3e4a52;
  cursor: pointer;
}

.bk-share-close:hover,
.bk-share-close:focus-visible {
  background: #eef2f1;
  color: #111827;
  outline: none;
}

.bk-share-close .dashicons {
  width: 24px;
  height: 24px;
  font-size: 24px;
}

.bk-share-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 20px;
}

.bk-share-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  min-height: 94px;
  padding: 12px 8px;
  border: 1px solid #d8dfdc;
  border-radius: 6px;
  background: #f8faf9;
  color: #202a31;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
}

.bk-share-option:hover,
.bk-share-option:focus-visible {
  border-color: #14867d;
  background: #eef7f5;
  color: #0c665f;
  outline: none;
}

.bk-share-option .dashicons {
  width: 28px;
  height: 28px;
  font-size: 28px;
}

.bk-share-option[data-bk-share-action="card"] .dashicons {
  color: #d85f52;
}

.bk-share-option[data-bk-share-action="native"] .dashicons {
  color: #14867d;
}

.bk-share-card-panel {
  padding: 0 20px 20px;
}

.bk-share-loading {
  min-height: 96px;
  padding: 34px 16px;
  border-top: 1px solid #e3e7e5;
  color: #65717b;
  text-align: center;
  font-size: 14px;
}

.bk-share-card-preview {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 52vh;
  margin: 0 auto;
  border: 1px solid #d8dfdc;
  border-radius: 6px;
  background: #f4f6f5;
  object-fit: contain;
}

.bk-share-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.bk-share-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #202a31;
  border-radius: 6px;
  background: #fff;
  color: #202a31;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.bk-share-card-action:hover,
.bk-share-card-action:focus-visible {
  background: #202a31;
  color: #fff;
  outline: none;
}

.bk-share-card-action[data-bk-share-action="share-card"] {
  border-color: #14867d;
  background: #14867d;
  color: #fff;
}

.bk-share-card-action[data-bk-share-action="share-card"]:hover,
.bk-share-card-action[data-bk-share-action="share-card"]:focus-visible {
  background: #0c665f;
}

.bk-share-toast {
  min-height: 22px;
  margin: 0;
  padding: 0 20px 16px;
  color: #0c665f;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 520px) {
  .bk-share-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .bk-share-dialog {
    width: 100%;
    max-height: 92vh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
  }

  .bk-share-options {
    gap: 8px;
    padding: 16px;
  }

  .bk-share-option {
    min-height: 88px;
    padding-right: 5px;
    padding-left: 5px;
    font-size: 13px;
  }

  .bk-share-card-panel {
    padding: 0 16px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bk-share-trigger {
    transition: none;
  }
}
