.oy-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(11, 20, 32, 0.46);
  backdrop-filter: blur(2px);
}

.oy-dialog-backdrop.is-open {
  display: flex;
}

.oy-dialog {
  width: min(380px, 100%);
  overflow: hidden;
  border: 1px solid #e8eef8;
  border-radius: 14px;
  background: #fff;
  color: var(--default-color, #0b1420);
  font-family: var(--default-font, Inter, system-ui, sans-serif);
  box-shadow: 0 18px 48px rgba(8, 21, 65, 0.16);
  transform: translateY(10px) scale(0.98);
  opacity: 0;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.oy-dialog-backdrop.is-open .oy-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.oy-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid #eef2f7;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}

.oy-dialog__brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.oy-dialog__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 0;
  background: transparent;
}

.oy-dialog__mark img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.oy-dialog__title {
  margin: 0;
  overflow: hidden;
  color: #0b1420;
  font-family: var(--heading-font, "DM Sans", Inter, sans-serif);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oy-dialog__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #5c6b7a;
  transition: background 0.14s ease, color 0.14s ease;
}

.oy-dialog__close:hover {
  background: #eef3ff;
  color: var(--accent-color, #3972fe);
}

.oy-dialog__body {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 18px;
}

.oy-dialog__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eef3ff;
  color: var(--accent-color, #3972fe);
  font-size: 19px;
}

.oy-dialog-backdrop[data-type="confirm"] .oy-dialog__icon {
  background: #fff7ed;
  color: #d97706;
}

.oy-dialog-backdrop[data-type="prompt"] .oy-dialog__icon {
  background: #ecfdf3;
  color: #16a34a;
}

.oy-dialog__content {
  min-width: 0;
}

.oy-dialog__message {
  min-height: 42px;
  display: flex;
  align-items: center;
  color: #344054;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.oy-dialog__input {
  width: 100%;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid #d7e0ef;
  border-radius: 10px;
  background: #fff;
  color: #0b1420;
  font: inherit;
  font-weight: 500;
}

.oy-dialog__input:focus {
  border-color: var(--accent-color, #3972fe);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(57, 114, 254, 0.14);
}

.oy-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 18px 18px;
}

.oy-dialog__btn {
  min-width: 96px;
  padding: 10px 16px;
  border: 1px solid #d7e0ef;
  border-radius: 10px;
  background: #fff;
  color: #344054;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  transition: background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, color 0.14s ease;
}

.oy-dialog__btn:hover {
  border-color: #c8d5ea;
  background: #f8fbff;
}

.oy-dialog__btn--primary {
  border-color: var(--accent-color, #3972fe);
  background: var(--accent-color, #3972fe);
  color: #fff;
  box-shadow: 0 10px 24px rgba(57, 114, 254, 0.22);
}

.oy-dialog__btn--primary:hover {
  border-color: #2f5cf0;
  background: #2f5cf0;
  color: #fff;
}

@media (max-width: 480px) {
  .oy-dialog {
    width: 100%;
    border-radius: 12px;
  }

  .oy-dialog__body {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 16px;
  }

  .oy-dialog__icon {
    width: 38px;
    height: 38px;
  }

  .oy-dialog__actions {
    padding: 0 16px 16px;
  }
}
