/* Pretty Links — Classic TinyMCE inserter modal. */

.prli-ct-overlay {
  position: fixed;
  inset: 0;
  z-index: 100100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prli-ct-backdrop {
  position: absolute;
  inset: 0;
  background: rgba( 0, 0, 0, 0.45 );
}

.prli-ct-modal {
  position: relative;
  width: 480px;
  max-width: calc( 100vw - 32px );
  max-height: calc( 100vh - 64px );
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba( 0, 0, 0, 0.35 );
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.prli-ct-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e4e7;
}

.prli-ct-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #1d2327;
}

.prli-ct-close {
  background: transparent;
  border: 0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #50575e;
  padding: 4px 8px;
}

.prli-ct-close:hover {
  color: #1d2327;
}

.prli-ct-body {
  padding: 16px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prli-ct-search,
.prli-ct-text,
.prli-ct-create-url,
.prli-ct-create-slug {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #c3c4c7;
  border-radius: 4px;
  font-size: 13px;
  box-sizing: border-box;
}

.prli-ct-search:focus,
.prli-ct-text:focus,
.prli-ct-create-url:focus,
.prli-ct-create-slug:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
  outline: none;
}

.prli-ct-results {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #e2e4e7;
  border-radius: 4px;
  background: #fff;
}

.prli-ct-results:empty {
  display: none;
}

.prli-ct-result {
  display: flex;
  flex-direction: column;
  padding: 8px 10px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f1;
}

.prli-ct-result:last-child {
  border-bottom: 0;
}

.prli-ct-result:hover,
.prli-ct-result.is-selected {
  background: #f0f6fc;
}

.prli-ct-result.is-picked {
  background: #e0efff;
  font-weight: 500;
}

.prli-ct-result-name {
  font-size: 13px;
  color: #1d2327;
}

.prli-ct-result-url {
  font-size: 11px;
  color: #50575e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prli-ct-result-empty {
  padding: 12px;
  text-align: center;
  color: #646970;
  font-size: 12px;
}

.prli-ct-text-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prli-ct-label {
  font-size: 12px;
  font-weight: 600;
  color: #1d2327;
}

.prli-ct-help {
  margin: 0;
  font-size: 11px;
  color: #646970;
}

.prli-ct-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid #f0f0f1;
  border-bottom: 1px solid #f0f0f1;
}

.prli-ct-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  cursor: pointer;
}

.prli-ct-create summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #2271b1;
  padding: 4px 0;
}

.prli-ct-create summary:hover {
  color: #135e96;
}

.prli-ct-create-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
}

.prli-ct-create-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.prli-ct-create-status {
  font-size: 12px;
  color: #646970;
}

.prli-ct-create-error {
  margin: 0;
  font-size: 12px;
  color: #b32d2e;
}

.prli-ct-create-error:empty {
  display: none;
}

.prli-ct-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #e2e4e7;
  background: #f6f7f7;
}

.prli-ct-footer-spacer {
  flex: 1 1 auto;
}

.prli-ct-remove {
  color: #b32d2e !important;
}
