/* Card services suspension notice — styles for js/card-suspension-notice.js.
   Loaded by that script on every customer-facing page of both brands. The
   banner uses a fixed high-contrast amber palette (not brand tokens) so it
   reads the same on Vestex's dark pages and Ultimo's light pages. Every rule
   is scoped to the notice's own classes/ids — nothing else on a page changes,
   except html.vx-card-notice-lock (scroll lock while the modal is open). */

.vx-card-suspension-banner {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 12px 20px;
  background: #fff4d6;
  color: #3a2a00;
  border-bottom: 1px solid #e8c77a;
  border-left: 4px solid #d97706;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, sans-serif;
  text-align: left;
  position: relative;
  z-index: 1;
}

.vx-card-suspension-banner__text {
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: #3a2a00;
  overflow-wrap: anywhere;
  word-break: normal;
  letter-spacing: normal;
  text-transform: none;
}

/* App shell: first child of .app-content-wrapper, directly under the fixed
   52px topbar. Sticky on desktop so it stays in view; below the topbar
   (z 900) and the sidebar (1110), above ordinary page content. */
@media (min-width: 769px) {
  .vx-card-suspension-banner--app {
    position: sticky;
    top: 52px;
    z-index: 850;
  }
}

/* faq / support pages: first child of .app-main. */
.vx-card-suspension-banner--main {
  margin-bottom: 20px;
  border-radius: 8px;
  border-bottom: 1px solid #e8c77a;
}

/* Centered flex bodies (404, auth/action): pinned to the top of the document;
   the script adds the banner height to the body's top padding. */
.vx-card-suspension-banner--flexbody {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: auto;
}

@media (max-width: 480px) {
  .vx-card-suspension-banner {
    padding: 10px 14px;
  }
  .vx-card-suspension-banner__text {
    font-size: 13px;
  }
}

/* ---- modal ---------------------------------------------------------------- */

html.vx-card-notice-lock,
html.vx-card-notice-lock body {
  overflow: hidden !important;
}

.vx-card-suspension-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.65);
  overflow-y: auto;
}

.vx-card-suspension-dialog {
  box-sizing: border-box;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  margin: auto;
  padding: 28px 28px 24px;
  border-radius: 12px;
  background: var(--app-surface-1, #1a1a1f);
  color: var(--app-text-1, #e0e0e8);
  border: 1px solid rgba(217, 119, 6, 0.55);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, sans-serif;
  text-align: left;
}

.vx-card-suspension-dialog__title {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--app-text-strong, var(--app-text-1, #ffffff));
}

.vx-card-suspension-dialog__body p,
.vx-card-suspension-dialog__body li {
  font-size: 14px;
  line-height: 1.55;
  color: var(--app-text-1, #e0e0e8);
}

.vx-card-suspension-dialog__body p {
  margin: 0 0 12px;
}

.vx-card-suspension-dialog__body ul {
  margin: 0 0 12px;
  padding-left: 22px;
  list-style: disc;
}

.vx-card-suspension-dialog__body li {
  margin: 0 0 4px;
}

.vx-card-suspension-dialog__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.vx-card-suspension-dialog__button {
  min-height: 44px;
  padding: 10px 28px;
  border: none;
  border-radius: 8px;
  background: var(--app-primary, #5cb8e6);
  color: var(--app-primary-fg, #0a0a14);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.vx-card-suspension-dialog__button:focus-visible {
  outline: 3px solid #d97706;
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .vx-card-suspension-dialog {
    padding: 20px 18px 18px;
    max-height: calc(100vh - 24px);
  }
  .vx-card-suspension-overlay {
    padding: 12px;
  }
  .vx-card-suspension-dialog__title {
    font-size: 18px;
  }
  .vx-card-suspension-dialog__button {
    width: 100%;
  }
}

/* A control that starts a suspended card flow on a page that stays usable
   (cards.html renewal CTAs). Clicks are blocked by the script; this only
   shows why. */
.vx-card-action-unavailable {
  opacity: 0.55;
  cursor: not-allowed !important;
  filter: grayscale(0.6);
}

.vx-card-unavailable-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #fff4d6;
  color: #3a2a00;
  border: 1px solid #e8c77a;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  vertical-align: middle;
}
