/* crm-lifecycle.css — the read-only line over the reply box, and the page a
 * suspended account sees. See crm-lifecycle.js. */

/* Read-only: the reply box stays where it is (the layout does not jump) and
   one opaque line sits over it. */
.reply-box[data-crm-life] { position: relative; }
.crm-life-reply {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #fff8e6;
  border-top: 1px solid #f3d38a;
  color: #5c4300;
  font-size: 13px;
  line-height: 1.6;
  unicode-bidi: plaintext;
}
.crm-life-reply > i { font-size: 16px; color: #a86a00; flex: none; }
.crm-life-reply b { font-weight: 700; }
.dark .crm-life-reply { background: #2a2312; border-top-color: #5a4613; color: #f3dca0; }
.dark .crm-life-reply > i { color: #f0b429; }

/* Suspended: the whole dashboard, opaque. */
.crm-life-closed body { overflow: hidden; }
.crm-life-cover {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  overflow-y: auto;
  background: #f6f7f3;
}
.dark .crm-life-cover { background: #15181c; }

.crm-life-card {
  width: 100%;
  max-width: 480px;
  padding: 28px 26px 24px;
  border: 1px solid #e8ebe4;
  border-radius: 8px;
  background: #ffffff;
  text-align: center;
  color: #1d1b1c;
}
.dark .crm-life-card { border-color: #2c3138; background: #1b1e23; color: #e8eaed; }

.crm-life-card__icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #fdecec;
  color: #b42318;
  font-size: 20px;
}
.dark .crm-life-card__icon { background: #3a1d1d; color: #f97066; }

.crm-life-card__title { margin: 0 0 10px; font-size: 20px; font-weight: 700; }
.crm-life-card__text { margin: 0 0 10px; font-size: 13.5px; line-height: 1.8; color: #55606c; }
.dark .crm-life-card__text { color: #9aa3af; }
.crm-life-card__hint { margin: 14px 0 0; font-size: 12.5px; line-height: 1.7; color: #55606c; }
.dark .crm-life-card__hint { color: #9aa3af; }

.crm-life-card__bills {
  margin: 14px 0 4px;
  border: 1px solid #e8ebe4;
  border-radius: 8px;
  text-align: start;
}
.dark .crm-life-card__bills { border-color: #2c3138; }
.crm-life-bill {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
}
.crm-life-bill + .crm-life-bill { border-top: 1px solid #e8ebe4; }
.dark .crm-life-bill + .crm-life-bill { border-top-color: #2c3138; }
.crm-life-bill__no { font-weight: 600; }
.crm-life-bill__amt { margin-inline-start: auto; }
.crm-life-bill__due { color: #55606c; font-size: 12px; }
.dark .crm-life-bill__due { color: #9aa3af; }

.crm-life-card__actions { margin-top: 18px; }
/* Lime with ink text, as every lime button (check-lime-contrast.js). */
.crm-life-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: #d4fb08;
  color: #1d1b1c;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.crm-life-btn:disabled { background: #eef0ea; color: #55606c; cursor: default; }
.dark .crm-life-btn:disabled { background: #2c3138; color: #9aa3af; }

/* ---- the platform's suspended page (suspended by hand from Super Admin) --- */
.crm-life-susp { max-width: 560px !important; margin-left: auto !important; margin-right: auto !important; }

/* The reason the owner typed, laid out (crm-lifecycle.js formatReason). */
.crm-life-reason {
  margin: 4px auto 18px;
  padding: 18px 20px;
  border: 1px solid #e8ebe4;
  border-radius: 8px;
  background: #ffffff;
  text-align: start;
  color: #1d1b1c;
  font-size: 14px;
  line-height: 1.8;
}
.dark .crm-life-reason { border-color: #2c3138; background: #1b1e23; color: #e8eaed; }
.crm-life-reason__p { margin: 0 0 10px; unicode-bidi: plaintext; text-align: start; }
.crm-life-reason__p:last-child { margin-bottom: 0; }
.crm-life-reason__head { margin: 12px 0 8px; font-size: 13px; font-weight: 700; color: #55606c; }
.dark .crm-life-reason__head { color: #9aa3af; }
.crm-life-reason__table {
  margin: 0 0 12px;
  border: 1px solid #e8ebe4;
  border-radius: 8px;
  overflow: hidden;
}
.dark .crm-life-reason__table { border-color: #2c3138; }
.crm-life-reason__row { display: flex; align-items: center; gap: 12px; padding: 9px 14px; flex-wrap: wrap; }
.crm-life-reason__row + .crm-life-reason__row { border-top: 1px solid #e8ebe4; }
.dark .crm-life-reason__row + .crm-life-reason__row { border-top-color: #2c3138; }
.crm-life-reason__k { flex: 0 0 110px; color: #55606c; font-size: 13px; }
.dark .crm-life-reason__k { color: #9aa3af; }
.crm-life-reason__v { flex: 1 1 200px; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; }
.crm-life-reason__v code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  letter-spacing: .04em;
  word-break: break-all;
}
.crm-life-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border: 1px solid #d6dacf;
  border-radius: 999px;
  background: #f6f7f3;
  color: #1d1b1c;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.dark .crm-life-copy { border-color: #3a4048; background: #22262c; color: #e8eaed; }

/* The two ways to reach us, under Contact support and on our own page. */
.crm-life-contact { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.crm-life-contact[hidden] { display: none; }
.crm-life-contact__opt {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
  padding: 10px 16px;
  border: 1px solid #e8ebe4;
  border-radius: 8px;
  background: #ffffff;
  color: #1d1b1c;
  text-decoration: none;
  text-align: start;
}
.crm-life-contact__opt:hover { border-color: #b8bdb1; }
.crm-life-contact__opt > i { font-size: 20px; }
.crm-life-contact__opt.is-wa > i { color: #1a9e4b; }
.crm-life-contact__opt.is-mail > i { color: var(--crm-ink); }
.crm-life-contact__opt span { display: flex; flex-direction: column; line-height: 1.35; }
.crm-life-contact__opt b { font-size: 13.5px; }
.crm-life-contact__opt small { font-size: 12px; color: #55606c; }
.dark .crm-life-contact__opt { border-color: #2c3138; background: #1b1e23; color: #e8eaed; }
.dark .crm-life-contact__opt small { color: #9aa3af; }

/* The language switch at the top of the suspended page. */
.crm-life-lang {
  display: inline-flex;
  gap: 2px;
  margin: 0 auto 18px;
  padding: 3px;
  border: 1px solid #e8ebe4;
  border-radius: 999px;
  background: #ffffff;
}
.crm-life-susp { display: flex; flex-direction: column; align-items: center; }
.crm-life-susp > * { width: 100%; }
.crm-life-susp > .crm-life-lang { width: auto; }
.crm-life-lang button {
  padding: 5px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #55606c;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.crm-life-lang button.is-on { background: #1d1b1c; color: #ffffff; }
.dark .crm-life-lang { border-color: #2c3138; background: #1b1e23; }
.dark .crm-life-lang button { color: #9aa3af; }
.dark .crm-life-lang button.is-on { background: #e8eaed; color: #15181c; }

/* Amounts are always bold. */
.crm-life-amount { font-weight: 800; unicode-bidi: isolate; }

/* A link value, and the icon-only Open / Copy beside it. */
.crm-life-link { color: var(--crm-ink); text-decoration: none; font-weight: 600; word-break: break-all; }
.crm-life-link:hover { text-decoration: underline; }
.dark .crm-life-link { color: #7aa2ff; }
.crm-life-copy.is-icon {
  width: 30px;
  height: 30px;
  padding: 0;
  justify-content: center;
  text-decoration: none;
}
.crm-life-copy.is-done { border-color: #1a9e4b; color: #1a9e4b; }
