/**
 * fintactix-leave-notice.css
 *
 * Structural overlay + default modal styles.
 * Customer themes override the modal styles in their own css/style.css.
 */

/* ── Overlay ─────────────────────────────────────────────────────────────── */

#fintactix-leave-notice-overlay {
  --fln-overlay-bg: rgba(0, 0, 0, 0.5);
  --fln-z-index:    9999;

  position:        fixed;
  inset:           0;
  z-index:         var(--fln-z-index);
  display:         flex;
  align-items:     center;
  justify-content: center;
  background:      var(--fln-overlay-bg);
}

#fintactix-leave-notice-overlay[hidden] {
  display: none;
}

/* ── Modal box ───────────────────────────────────────────────────────────── */

.fintactix-leave-notice-modal {
  position:      relative;
  background:    #ffffff;
  border-radius: 4px;
  box-shadow:    0 4px 24px rgba(0, 0, 0, 0.2);
  padding:       2rem;
  max-width:     480px;
  width:         calc(100% - 2rem);
  box-sizing:    border-box;
}

/* ── Close (×) button ────────────────────────────────────────────────────── */

.fintactix-leave-notice-close {
  position:    absolute;
  top:         0.75rem;
  right:       0.75rem;
  background:  none;
  border:      none;
  cursor:      pointer;
  color:       #424242;
  font-size:   1.4rem;
  line-height: 1;
  padding:     0.25rem;
  min-width:   24px;
  min-height:  24px;
}

.fintactix-leave-notice-close:focus-visible {
  outline:        2px dashed #002D72;
  outline-offset: 2px;
}

/* ── Title ───────────────────────────────────────────────────────────────── */

.fintactix-leave-notice-title {
  margin:       0 0 1rem;
  padding-right: 1.5rem;
  color:        #002D72;
  font-size:    1.125rem;
  font-weight:  700;
  line-height:  1.3;
}

/* ── Body copy ───────────────────────────────────────────────────────────── */

.fintactix-leave-notice-body {
  margin:      0 0 1.5rem;
  color:       #424242;
  font-size:   0.9375rem;
  line-height: 1.5;
}

/* ── Action row ──────────────────────────────────────────────────────────── */

.fintactix-leave-notice-actions {
  display:         flex;
  justify-content: flex-end;
  gap:             0.75rem;
}

/* ── Shared button base ──────────────────────────────────────────────────── */

.fintactix-leave-notice-btn {
  cursor:        pointer;
  padding:       0.6rem 1.4rem;
  border-radius: 4px;
  font-size:     0.9375rem;
  font-weight:   600;
  line-height:   1.2;
  min-height:    44px;
  min-width:     80px;
}

.fintactix-leave-notice-btn:focus-visible {
  outline:        2px dashed #002D72;
  outline-offset: 2px;
}

/* ── Continue (primary) ──────────────────────────────────────────────────── */

.fintactix-leave-notice-btn--continue {
  background: #002D72;
  color:      #ffffff;
  border:     none;
}

.fintactix-leave-notice-btn--continue:hover {
  background: #001f52;
}

/* ── Cancel (secondary) ──────────────────────────────────────────────────── */

.fintactix-leave-notice-btn--cancel {
  background: transparent;
  color:      #424242;
  border:     1px solid #BCBCBC;
}

.fintactix-leave-notice-btn--cancel:hover {
  background: #f5f5f5;
}
