.ypm-root {
  --ypm-primary: #1d4ed8;
  --ypm-secondary: #f3f5f7;
  --ypm-secondary-text: #111111;
  --ypm-link: #1d4ed8;
  position: fixed;
  z-index: 999999;
  --ypm-fs: 16px;
  font: var(--ypm-fs)/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #111;
}
.ypm-root.ypm-fs-small { --ypm-fs: 14px; }
.ypm-root.ypm-fs-medium { --ypm-fs: 16px; }
.ypm-root.ypm-fs-large { --ypm-fs: 18px; }
.ypm-root:not(.ypm-has-overlay) {
  max-width: 680px;
  bottom: 16px;
}
.ypm-root:not(.ypm-has-overlay).ypm-pos-left { left: 16px; right: auto; }
.ypm-root:not(.ypm-has-overlay).ypm-pos-right { right: 16px; left: auto; }
.ypm-root:not(.ypm-has-overlay).ypm-pos-center {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(680px, calc(100% - 32px));
}
.ypm-root.ypm-has-overlay {
  inset: 0;
  background: rgba(17, 24, 39, .45);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.ypm-root.ypm-has-overlay.ypm-pos-left { justify-content: flex-start; }
.ypm-root.ypm-has-overlay.ypm-pos-center { justify-content: center; }
.ypm-root.ypm-has-overlay.ypm-pos-right { justify-content: flex-end; }
.ypm-root.ypm-has-overlay .ypm-box {
  max-width: 680px;
  width: 100%;
}

.ypm-box {
  background: #fff;
  border: 1px solid #d8dee6;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  padding: 16px 18px;
}
.ypm-title { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.ypm-text { color: #444; margin-bottom: 10px; }
.ypm-links { font-size: 13px; margin-bottom: 12px; }
.ypm-links a {
  color: var(--ypm-link);
  transition: opacity .15s ease, filter .15s ease;
}
.ypm-links a:hover { opacity: .72; }
.ypm-actions { display: flex; flex-wrap: nowrap; gap: 8px; }
.ypm-btn {
  border: 1px solid #cfd6df;
  background: var(--ypm-secondary);
  color: var(--ypm-secondary-text);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font: inherit;
  text-transform: none;
  letter-spacing: normal;
  white-space: nowrap;
  flex: 0 1 auto;
  transition: filter .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.ypm-btn:hover { filter: brightness(0.92); }
.ypm-btn-primary {
  background: var(--ypm-primary);
  border-color: var(--ypm-primary);
  color: #fff;
}
.ypm-btn-ghost { background: transparent; }
.ypm-panel {
  border-top: 1px solid #e8ecf1;
  margin: 10px 0 12px;
  padding-top: 10px;
}
.ypm-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  cursor: pointer;
}
.ypm-confirm { margin: 0; }
.ypm-hidden { display: none !important; }
a.ypm-reopen { cursor: pointer; }

@media (max-width: 600px) {
  .ypm-root:not(.ypm-has-overlay) {
    left: 8px !important;
    right: 8px !important;
    transform: none;
    width: auto;
    max-width: none;
  }
  .ypm-actions { flex-direction: column; }
  .ypm-btn { width: 100%; text-align: center; }
}
