/* ==========================================================================
   Toral Panel — Userside customer pop-up (Frontend\Userside\PopupNotice)

   Built on the shared .tp-modal / .tp-modal-box / .tp-modal-close of
   toral-userside-widgets.css; this file only narrows the box and styles the
   admin's rich text inside it.
   ========================================================================== */

.tp-cpop[hidden] { display: none !important; }

/* The script moves the pop-up to <body>, outside .tp-widget, so the panel
   font and text colour are restated here. */
.tp-cpop { font-family: var(--tp-us-font); color: var(--tp-us-text); }

.tp-modal.tp-cpop .tp-modal-box.tp-cpop__box {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  max-width: 520px;
  width: calc(100% - 24px);
  max-height: 85vh;
  overflow: hidden;
  padding: 20px 18px 16px;
}

.tp-cpop .tp-modal-title { padding-inline-end: 32px; }

.tp-cpop__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.tp-cpop__body > :first-child { margin-top: 0; }
.tp-cpop__body > :last-child  { margin-bottom: 0; }
.tp-cpop__body p { margin: 0 0 10px; }
.tp-cpop__body img { max-width: 100%; height: auto; border-radius: var(--tp-us-radius-sm); }
.tp-cpop__body a { color: var(--tp-us-accent); text-decoration: underline; }
.tp-cpop__body ul,
.tp-cpop__body ol { margin: 0 0 10px; padding-inline-start: 22px; }

.tp-cpop__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

@media (max-width: 640px) {
  .tp-modal.tp-cpop .tp-modal-box.tp-cpop__box { max-height: calc(100% - 24px); }
  .tp-cpop__actions .tp-btn { width: 100%; }
}
