#pz-talk-overlay {
  z-index: 1001;
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-color: rgba(0,0,0,0.5);
}

#pz-talk-modal {
  z-index: 9991;
  display: none;
  position: fixed;
  margin: 0 auto;
  padding: 0;
  border: 2px solid #173849;
  border-radius: 16px;
  box-shadow: 0 12px 48px #0004;
  background: #fff;
  box-sizing: border-box;
  width: 820px;
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 16px);
  overflow: visible;
}

#pz-talk-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #646970;
  font-size: 24px;
  line-height: 1;
}

#pz-talk-close:hover {
  cursor: pointer;
  background: #f0f0f1;
  color: #1d2327;
}

#pz-talk-content {
  text-align: left;
  padding: 0 12px 32px;
}
#pz-talk-conversations {
  margin: 0;
  text-align: left;
}
.pz-talk-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px 16px;
}
#pz-talk-modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}
.pz-talk-modal-type {
  display: flex;
  align-items: center;
  gap: 10px;
}
#pz-talk-code {
  min-height: 36px;
  width: 136px;
  background-color: #fff;
}
.pz-talk-modal-footer {
  display: none;
  justify-content: flex-end;
}
#pz-talk-insert {
  min-width: 80px;
  min-height: 36px;
}
#pz-talk-conversations .pz-talk-block-editor {
  padding: 0;
  border: 0;
}
#pz-talk-conversations .pz-talk-block-message {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
#pz-talk-conversations .pz-talk-block-controls {
  gap: 12px;
  margin-bottom: 22px;
}
#pz-talk-conversations .pz-talk-block-direction {
  gap: 0;
  margin-left: auto;
}
#pz-talk-conversations .pz-talk-block-direction .components-button {
  min-width: 40px;
  justify-content: center;
  border: 1px solid #8c8f94;
  border-radius: 0;
  box-shadow: none;
}
#pz-talk-conversations .pz-talk-block-direction .components-button:first-child {
  border-radius: 4px 0 0 4px;
}
#pz-talk-conversations .pz-talk-block-direction .components-button:last-of-type {
  border-radius: 0 4px 4px 0;
  margin-left: -1px;
}
#pz-talk-conversations .pz-talk-block-direction .components-button[aria-pressed="true"] {
  background: #2271b1;
  border-color: #2271b1;
  color: #fff;
  position: relative;
}
#pz-talk-modal .pz-talk-block-serif {
  align-items: center;
}
#pz-talk-modal .pz-talk-block-serif textarea {
  background: #fff;
  border-color: #a7aaad;
  min-height: 36px;
}
.pz-talk-modal-type-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}
#pz-talk-modal-code {
  min-height: 40px;
  width: 136px;
  background-color: #fff;
}
#pz-talk-modal .pz-talk-block-dropdown .components-button {
  background: #fff;
}
#pz-talk-modal .pz-talk-block-name-control,
#pz-talk-modal .pz-talk-block-icon-control,
#pz-talk-modal .pz-talk-block-direction {
  position: relative;
}
#pz-talk-modal .pz-talk-shortcut {
  position: absolute;
  top: calc(100% + 3px);
  color: #646970;
  font-size: 10px;
  line-height: 14px;
  white-space: nowrap;
}
#pz-talk-modal .pz-talk-shortcut-name {
  right: 0;
  width: calc(100% - 34px);
  text-align: center;
}
#pz-talk-modal .pz-talk-shortcut-direction {
  left: 50%;
  transform: translateX(-50%);
}
#pz-talk-modal .pz-talk-shortcut-icon {
  right: 0;
  width: calc(100% - 58px);
  text-align: center;
}
#pz-talk-modal .pz-talk-shortcut kbd {
  display: inline-block;
  box-sizing: border-box;
  min-width: 17px;
  padding: 0 3px;
  border: 1px solid #c3c4c7;
  border-radius: 3px;
  background: #fff;
  color: inherit;
  font: inherit;
  line-height: 15px;
  text-align: center;
}
#pz-talk-modal .pz-talk-block-serif {
  gap: 10px;
}
#pz-talk-modal .pz-talk-modal-insert {
  flex: 0 0 80px;
  height: 40px;
  margin-left: 6px;
  padding: 0 16px;
  border: 0;
  border-radius: 2px;
  background: #3858e9;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
#pz-talk-modal .pz-talk-modal-insert-control {
  position: relative;
  display: inline-grid;
  grid-template-columns: max-content;
  grid-template-rows: 40px 0;
  flex: 0 0 auto;
  margin-left: 6px;
}
#pz-talk-modal .pz-talk-modal-insert-control .pz-talk-modal-insert {
  width: 100%;
  margin-left: 0;
}
#pz-talk-modal .pz-talk-shortcut-insert {
  position: static;
  display: block;
  margin-top: 3px;
}
#pz-talk-modal .pz-talk-shortcut-multiline {
  left: 0;
}
#pz-talk-modal .pz-talk-modal-insert:hover {
  background: #2946cc;
}
#pz-talk-modal .pz-talk-modal-insert:focus-visible {
  outline: 2px solid #173849;
  outline-offset: 2px;
}
#pz-talk-modal .pz-talk-block-serif textarea {
  overflow: hidden;
  resize: none;
}
#pz-talk-modal .pz-talk-block-label,
#pz-talk-modal .pz-talk-block-serif > span {
  white-space: nowrap;
}

.pz-talk-person-combo {
  display: inline-block;
  position: relative;
  vertical-align: middle;
  text-align: left;
}

#pz-talk-content .pz-talk-person-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 150px;
  padding: 3px 8px;
  border: 1px solid #8c8f94;
  border-radius: 3px;
  background: #fff;
  color: #2c3338;
  font: inherit;
  cursor: pointer;
}

.pz-talk-person-button:focus-visible {
  outline: 2px solid #2271b1;
  outline-offset: 1px;
}

.pz-talk-person-combo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 3px;
  flex-shrink: 0;
}

.pz-talk-person-arrow {
  margin-left: auto;
}

#pz-talk-content .pz-talk-person-list {
  position: absolute;
  z-index: 2;
  top: 100%;
  left: 0;
  min-width: 100%;
  max-height: 240px;
  overflow-y: auto;
  box-sizing: border-box;
  margin: 2px 0 0;
  padding: 3px;
  list-style: none;
  border: 1px solid #8c8f94;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 3px 8px #0003;
}

#pz-talk-content .pz-talk-person-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 8px;
  white-space: nowrap;
  cursor: pointer;
}

.pz-talk-person-list li[aria-selected="true"] {
  font-weight: bold;
}

.pz-talk-person-list li:hover,
.pz-talk-person-list li.is-active {
  background: #2271b1;
  color: #fff;
}

.pz-talk-serif-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  text-align: left;
}

.pz-talk-serif-row > label,
#pz-talk-insert {
  flex-shrink: 0;
}

#pz-talk-serif {
  flex: 1 1 auto;
  box-sizing: border-box;
  width: 360px;
  min-width: 0;
  min-height: 0;
  line-height: 1.5;
  overflow-y: hidden;
  resize: none;
}

.pz-talk-order-cell {
  text-align: center;
}

#pz-talk-persons {
  table-layout: fixed;
}

#pz-talk-persons th {
  width: auto;
}

#pz-talk-persons .pz-talk-order-column {
  width: 4em;
}

#pz-talk-persons .pz-talk-name-column {
  width: 132px;
}

#pz-talk-persons .pz-talk-me-column {
  width: 4em;
}

#pz-talk-persons .pz-talk-image-column {
  width: 80px;
}

#pz-talk-persons .pz-talk-control-column {
  width: 48px;
}

#pz-talk-persons th:nth-child(2),
#pz-talk-persons th:nth-child(4) {
  text-align: left;
}

#pz-talk-persons th:nth-child(2),
#pz-talk-persons td:nth-child(2) {
  box-sizing: border-box;
  width: 132px;
  min-width: 132px;
  max-width: 132px;
}

#pz-talk-persons th:nth-child(1),
#pz-talk-persons th:nth-child(3),
#pz-talk-persons th:nth-child(5),
#pz-talk-persons th:nth-child(6),
#pz-talk-persons td:nth-child(1),
#pz-talk-persons td:nth-child(3),
#pz-talk-persons td:nth-child(5),
#pz-talk-persons td:nth-child(6) {
  text-align: center;
}

#pz-talk-persons .pz-talk-url-cell {
  white-space: nowrap;
}

#pz-talk-persons .pz-talk-url-fields {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
}

#pz-talk-persons .pz-talk-url-input {
  flex: 1 1 auto;
  min-width: 0;
  box-sizing: border-box;
  width: auto;
  max-width: none;
}

#pz-talk-persons input[name="mediaselect"] {
  align-self: stretch;
}

#pz-talk-persons .pz-talk-name-input {
  box-sizing: border-box;
  width: 100%;
  max-width: 8em;
}

@media screen and (max-width: 799px) {
  #pz-talk-persons .pz-talk-url-cell {
    display: none;
  }
}

@media screen and (max-width: 782px) {
  #pz-talk-persons th,
  #pz-talk-persons td {
    display: table-cell;
    padding-right: 5px;
    padding-left: 5px;
  }

  #pz-talk-persons .pz-talk-url-input {
    font-size: 14px;
  }
}

.pz-talk-drag-handle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 5px;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: grab;
  user-select: none;
}

.pz-talk-drag-handle:hover,
.pz-talk-drag-handle:focus {
  border-color: #8c8f94;
  background: #f0f0f1;
}

.pz-talk-drag-handle:active {
  cursor: grabbing;
}

.pz-talk-grip {
  color: #646970;
  font-weight: bold;
  letter-spacing: -4px;
}

#pz-talk-persons tr.pz-talk-dragging {
  opacity: 0.45;
}

#pz-talk-persons .pz-talk-media-select-image {
  width: 64px;
  height: 64px;
  object-fit: contain;
  cursor: pointer;
}

#pz-talk-persons .pz-talk-media-select-image:focus {
  outline: 2px solid #2271b1;
  outline-offset: 2px;
}

table.pz-talk-shortcode-table > tbody > tr > td {
  overflow-x: auto;
}

.pz-talk-shortcode-example {
  display: inline-flex;
  align-items: center;
  width: max-content;
  white-space: nowrap;
}

.pz-talk-shortcode-example input.regular-text {
  flex: 0 0 8em;
}

#pz-talk-persons tr[data-person-index]:not(.pz-talk-new-person) {
  touch-action: none;
}

.pz-talk-sorting, .pz-talk-sorting * {
  cursor: grabbing !important;
  user-select: none !important;
}

table.pz-talk-floating-row.widefat {
  position: fixed;
  z-index: 100000;
  margin: 0;
  table-layout: fixed;
  pointer-events: none;
  background: #fff;
  box-shadow: #00000066 8px 8px 8px;
  transform: translate(-8px, -8px);
  border-collapse: collapse;
  opacity: 0.95;
}

.pz-talk-floating-row td {
  box-sizing: border-box;
}

#pz-talk-persons tr.pz-talk-drop-target > td {
  box-shadow: inset 0 2px #2271b1, inset 0 -2px #2271b1;
}
.pz-talk-sorting #pz-talk-persons tr[data-person-index] {
  transition: transform 140ms ease;
}

#pz-talk-persons tr.pz-talk-dragging > td {
  background: inherit;
  box-shadow: inset 0 2px #2271b1, inset 0 -2px #2271b1;
}

#pz-talk-persons tr.pz-talk-dragging > td > * {
  visibility: hidden;
}
#pz-talk-persons tr.pz-talk-dragging > td:first-child,
#pz-talk-persons tr.pz-talk-drop-target > td:first-child {
  box-shadow: inset 2px 0 #2271b1, inset 0 2px #2271b1, inset 0 -2px #2271b1;
}

#pz-talk-persons tr.pz-talk-dragging > td:last-child,
#pz-talk-persons tr.pz-talk-drop-target > td:last-child {
  box-shadow: inset -2px 0 #2271b1, inset 0 2px #2271b1, inset 0 -2px #2271b1;
}
.pz-talk-settings-heading {
	border-left: 4px solid #00bfff;
	border-bottom: 1px solid #888888;
	padding: 10px 0 10px 10px;
}
.wrap h1.pz-talk-settings-title {
	font-weight: 800 !important;
	border-left: 8px solid #00bfff !important;
	border-bottom: 2px solid #000000;
	padding-left: 12px !important;
	padding-right: 150px !important;
}
.pz-talk-settings-save-anchor { position: sticky; top: 40px; height: 0; z-index: 1000; }
.pz-talk-settings-save { position: absolute; top: 0; right: 0; text-align: center; }
.pz-talk-settings-shortcut { display: table; margin: 2px auto 0; padding: 2px 3px; border-radius: 4px; background-color: #808080; font-size: 11px; line-height: 1.4; color: #eeeeee; }
@media screen and (max-width: 782px) { .pz-talk-settings-save-anchor { top: 54px; } }
@media screen and (max-width: 600px) { .pz-talk-settings-save-anchor { top: 8px; } }

/* Match the initial save-button offset to the paragraph after the Pz-Comments anchor. */
.pz-talk-settings-save-anchor + .pz-talk-settings-heading { margin-top: 13px; }

#pz-talk-persons tr.pz-talk-drop-target > td { background-color: #e5f5fa; }
#pz-talk-persons tr[aria-busy="true"] { opacity: .6; }
