/* Cancellation retention flow modal */

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

.dtec-cancel-flow__overlay {
  z-index: 10000;
}

/* ── Card ─────────────────────────────────────────────────────────────────── */

.dtec-cancel-flow__modal {
  width: 100%;
  max-width: 500px;
  text-align: left;
}

/* ── Step indicator dots ──────────────────────────────────────────────────── */

.dtec-cancel-flow__dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2xs);
  margin-bottom: var(--space-l);
}

.dtec-cancel-flow__dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--dtec-radius-full, 9999px);
  border: 2px solid var(--dtec-neutral-400, #a3a3a3);
  background: transparent;
  transition: background var(--dtec-duration-fast, 150ms) var(--dtec-ease-default),
              border-color var(--dtec-duration-fast, 150ms) var(--dtec-ease-default);
}

.dtec-cancel-flow__dot--active {
  background: var(--dtec-primary, #16a34a);
  border-color: var(--dtec-primary, #16a34a);
}

/* ── Step content ─────────────────────────────────────────────────────────── */

.dtec-cancel-flow__step {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}

.dtec-cancel-flow__title {
  margin: 0;
}

.dtec-cancel-flow__message {
  margin: 0;
  text-align: left;
}

.dtec-cancel-flow__message--warning {
  color: var(--dtec-error, #ef4444);
  font-weight: var(--dtec-font-medium, 500);
}

/* ── Loss list ────────────────────────────────────────────────────────────── */

.dtec-cancel-flow__loss-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  width: 100%;
  text-align: left;
  align-self: stretch;
}

.dtec-cancel-flow__loss-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2xs);
  font-size: var(--text-s);
  color: var(--dtec-text, #262626);
  line-height: var(--dtec-leading-normal, 1.5);
}

/* Warning bullet via pseudo-element */
.dtec-cancel-flow__loss-item::before {
  content: '✕';
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  font-size: 0.625rem;
  font-weight: var(--dtec-font-bold, 700);
  color: var(--dtec-error, #ef4444);
  background: var(--dtec-error-light, #fef2f2);
  border-radius: var(--dtec-radius-full, 9999px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.125rem;
}

/* ── Actions ──────────────────────────────────────────────────────────────── */

.dtec-cancel-flow__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-s);
  margin-top: var(--space-2xs);
}

.dtec-cancel-flow__actions .dtec-confirm-modal__confirm,
.dtec-cancel-flow__btn--support {
  width: 100%;
  text-align: center;
}

.dtec-cancel-flow__actions .dtec-field__cancel-link {
  margin-top: 0;
  align-self: center;
}

.dtec-cancel-flow__btn--cancel-link {
  color: var(--dtec-error, #ef4444);
  border-bottom-color: var(--dtec-error, #ef4444);
}

.dtec-cancel-flow__btn--cancel-link:hover {
  opacity: 0.75;
}

/* ── Back button ──────────────────────────────────────────────────────────── */

.dtec-cancel-flow__back {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: var(--space-2xs);
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
  color: var(--aubergine-gleam-500, #8F385D);
  border-bottom: 1px solid var(--aubergine-gleam-500, #8F385D);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3xs);
  transition: opacity 150ms ease;
}

.dtec-cancel-flow__back:hover {
  opacity: 0.7;
}

.dtec-cancel-flow__back:focus-visible {
  outline: 2px solid var(--aubergine-gleam-500, #8F385D);
  outline-offset: 2px;
  border-radius: var(--dtec-radius-sm, 0.25rem);
}

/* ── Inline error ─────────────────────────────────────────────────────────── */

.dtec-cancel-flow__error {
  font-size: var(--text-s);
  color: var(--dtec-error, #ef4444);
  background: var(--dtec-error-light, #fef2f2);
  border: 1px solid var(--dtec-error-border, #fecaca);
  border-radius: var(--dtec-radius-md, 0.5rem);
  padding: var(--space-s) var(--space-m);
  text-align: center;
}

/* ── Mobile ───────────────────────────────────────────────────────────────── */

@media (max-width: 540px) {
  .dtec-cancel-flow__modal {
    max-width: 100%;
    text-align: left;
  }
}
