.sab-single-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
}

.sab-single-meta-row .sab-single-meta {
  margin-top: 0;
}

.sab-share-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 7px 4px 7px 10px;
  border: 0;
  border-radius: 999px;
  color: var(--sab-accent-1, #3e6fa8);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

.sab-share-trigger:hover,
.sab-share-trigger:focus-visible {
  color: #244f82;
  background: rgba(87, 132, 184, 0.09);
}

.sab-share-trigger svg {
  width: 19px;
  height: 19px;
}

body.sab-share-modal-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

.sab-share-modal[hidden] {
  display: none !important;
}

.sab-share-modal {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.sab-share-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 35, 60, 0.42);
  backdrop-filter: blur(2px);
}

.sab-share-modal__dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 28px;
  border: 1px solid rgba(86, 113, 148, 0.15);
  border-radius: 24px;
  background: #fffefa;
  box-shadow: 0 24px 70px rgba(23, 45, 75, 0.24);
  color: var(--sab-contrast-1, #183454);
}

.sab-share-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.sab-share-modal__title {
  margin: 0;
  color: var(--sab-contrast-1, #183454);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.sab-share-modal__close {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #405b79;
  background: #f2f5f9;
  cursor: pointer;
}

.sab-share-modal__close:hover,
.sab-share-modal__close:focus-visible {
  color: #183454;
  background: #e8eef6;
}

.sab-share-modal__close svg {
  width: 20px;
  height: 20px;
}

.sab-share-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 13px;
}

.sab-share-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 94px;
  padding: 9px 4px;
  border: 0;
  border-radius: 16px;
  color: #334e6d;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
}

.sab-share-option:hover,
.sab-share-option:focus-visible {
  background: #f3f6fb;
}

.sab-share-option__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(70, 101, 139, 0.12);
  border-radius: 50%;
  color: #284e79;
  background: #eef4fb;
  box-shadow: 0 6px 18px rgba(51, 82, 119, 0.08);
}

.sab-share-option__icon svg {
  width: 25px;
  height: 25px;
}

.sab-share-option--kakao .sab-share-option__icon {
  color: #332a16;
  background: #fee500;
}

.sab-share-option--facebook .sab-share-option__icon {
  color: #fff;
  background: #1877f2;
}

.sab-share-option--x .sab-share-option__icon {
  color: #fff;
  background: #17202a;
}

.sab-share-option--copy.is-copied .sab-share-option__icon,
.sab-share-link__button.is-copied {
  color: #276746;
  background: #e5f5ec;
}

.sab-share-link {
  margin-top: 25px;
  padding-top: 22px;
  border-top: 1px solid #e7ecf2;
}

.sab-share-link__label {
  display: block;
  margin-bottom: 8px;
  color: #526980;
  font-size: 12px;
  font-weight: 700;
}

.sab-share-link__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid #dce4ed;
  border-radius: 14px;
  background: #f7f9fc;
}

.sab-share-link__input {
  min-width: 0;
  width: 100%;
  height: 38px;
  padding: 0 10px;
  overflow: hidden;
  border: 0;
  color: #5b6d80;
  background: transparent;
  font: inherit;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sab-share-link__input:focus {
  outline: 2px solid rgba(62, 111, 168, 0.35);
  outline-offset: -2px;
  border-radius: 9px;
}

.sab-share-link__button {
  min-width: 70px;
  min-height: 38px;
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--sab-accent-1, #3e6fa8);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.sab-share-status {
  min-height: 20px;
  margin: 9px 2px 0;
  color: #3d628c;
  font-size: 12px;
  line-height: 1.45;
}

.sab-share-trigger:focus-visible,
.sab-share-modal button:focus-visible {
  outline: 3px solid rgba(82, 129, 184, 0.36);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .sab-single-meta-row {
    gap: 10px;
    margin-top: 14px;
  }

  .sab-share-trigger {
    min-height: 42px;
    padding: 8px 6px 8px 10px;
    font-size: 13px;
  }

  .sab-share-modal {
    padding: 16px;
  }

  .sab-share-modal__dialog {
    max-height: calc(100vh - 32px);
    padding: 22px 18px 18px;
    border-radius: 20px;
  }

  .sab-share-modal__header {
    margin-bottom: 18px;
  }

  .sab-share-modal__title {
    font-size: 20px;
  }

  .sab-share-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .sab-share-option {
    min-height: 88px;
    padding: 7px 2px;
  }

  .sab-share-option__icon {
    width: 52px;
    height: 52px;
  }

  .sab-share-link {
    margin-top: 18px;
    padding-top: 17px;
  }

  .sab-share-link__row {
    gap: 5px;
  }

  .sab-share-link__button {
    min-width: 62px;
    padding-inline: 11px;
  }
}

@media (max-width: 380px) {
  .sab-single-meta-row {
    align-items: flex-start;
  }

  .sab-share-trigger span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .sab-share-trigger {
    width: 42px;
    padding: 0;
  }
}
