.ig-pl-dialog {
  width: min(400px, calc(100vw - 32px));
  padding: 24px;
  color: #1f2937;
  background: #fff;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .25);
}

.ig-pl-dialog[open] {
  animation: ig-pl-dialog-in .2s ease-out both;
}

.ig-pl-dialog::backdrop {
  background: rgba(15, 23, 42, .5);
}

.ig-pl-dialog__head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.ig-pl-dialog__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
}

.ig-pl-dialog__close {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #4b5563;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 6px;
}

.ig-pl-dialog__close:hover {
  background: #f3f4f6;
}

.ig-pl-dialog__text {
  margin: 8px 0 20px;
  font-size: .9375rem;
  line-height: 1.5;
  color: #4b5563;
}

.ig-pl-dialog__actions {
  display: grid;
  gap: 10px;
}

.ig-pl-dialog__action {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  font: inherit;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  transition: background-color .15s ease, border-color .15s ease;
}

.ig-pl-dialog__action:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.ig-pl-dialog__action--primary {
  background: #f9c41d;
  border-color: #f9c41d;
}

.ig-pl-dialog__action--primary:hover {
  background: #e8b411;
  border-color: #e8b411;
}

.ig-pl-dialog__action svg {
  flex: none;
  width: 20px;
  height: 20px;
}

.ig-pl-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 1080;
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: calc(100vw - 32px);
  padding: 12px 16px;
  font-size: .9375rem;
  line-height: 1.4;
  color: #fff;
  background: #1f2937;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .3);
  transform: translateX(-50%);
  animation: ig-pl-toast-in .25s ease-out both;
}

.ig-pl-toast svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: #fca5a5;
}

@keyframes ig-pl-dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
}

@keyframes ig-pl-toast-in {
  from { opacity: 0; transform: translate(-50%, 12px); }
}

@media (prefers-reduced-motion: reduce) {
  .ig-pl-dialog[open],
  .ig-pl-toast {
    animation: none;
  }

  .ig-pl-dialog__action {
    transition: none;
  }
}
