/* Shared success and status feedback for the Epaileak *1 experience. */
.epf-layer,
.epf-layer * {
  box-sizing: border-box;
}

body.epf-feedback-open {
  overflow: hidden;
}

.epf-layer {
  --epf-accent: #1677ff;
  --epf-accent-2: #35c8ff;
  --epf-positive: #30d158;
  --epf-ink: #0c1825;
  --epf-muted: #627083;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgba(9, 18, 31, .32);
  -webkit-backdrop-filter: blur(18px) saturate(1.16);
  backdrop-filter: blur(18px) saturate(1.16);
  opacity: 0;
  visibility: hidden;
  transition: opacity .32s ease, visibility 0s linear .32s;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", sans-serif;
}

.epf-layer[hidden] {
  display: none !important;
}

.epf-layer.epf-is-visible {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.epf-card {
  position: relative;
  width: min(448px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 0%, rgba(103, 210, 255, .18), transparent 34%),
    radial-gradient(circle at 7% 28%, rgba(48, 209, 88, .10), transparent 36%),
    rgba(255, 255, 255, .94);
  color: var(--epf-ink);
  box-shadow:
    0 36px 95px rgba(5, 16, 31, .25),
    0 10px 34px rgba(5, 16, 31, .14),
    inset 0 1px 0 rgba(255, 255, 255, .95);
  transform: translateY(18px) scale(.965);
  opacity: 0;
  transition: transform .46s cubic-bezier(.2, .9, .25, 1.12), opacity .28s ease;
  outline: none;
}

.epf-is-visible .epf-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.epf-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(10, 34, 62, .035);
}

.epf-card.epf-is-warning {
  --epf-accent: #f59e0b;
  --epf-accent-2: #ffd45a;
  --epf-positive: #ff9f0a;
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 190, 76, .22), transparent 36%),
    radial-gradient(circle at 7% 28%, rgba(255, 159, 10, .10), transparent 38%),
    rgba(255, 255, 255, .95);
}

.epf-card.epf-is-error {
  --epf-accent: #dc2626;
  --epf-accent-2: #fb7185;
  --epf-positive: #ef4444;
  background:
    radial-gradient(circle at 88% 0%, rgba(251, 113, 133, .22), transparent 36%),
    radial-gradient(circle at 7% 28%, rgba(220, 38, 38, .09), transparent 38%),
    rgba(255, 255, 255, .96);
}

.epf-card.epf-is-info {
  --epf-accent: #2563eb;
  --epf-accent-2: #38bdf8;
  --epf-positive: #2563eb;
  background:
    radial-gradient(circle at 88% 0%, rgba(56, 189, 248, .22), transparent 36%),
    radial-gradient(circle at 7% 28%, rgba(37, 99, 235, .09), transparent 38%),
    rgba(255, 255, 255, .96);
}

.epf-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 17px 18px 10px 20px;
}

.epf-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #405064;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .02em;
}

.epf-brand img {
  width: 29px;
  height: 29px;
  object-fit: contain;
  border-radius: 9px;
  filter: drop-shadow(0 5px 8px rgba(5, 20, 35, .15));
}

.epf-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(19, 40, 65, .08);
  border-radius: 50%;
  background: rgba(240, 244, 249, .78);
  color: #526174;
  font: 500 20px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.epf-close:hover,
.epf-close:focus-visible {
  background: #e9eef5;
  color: #0b1724;
  transform: scale(1.04);
  outline: 3px solid rgba(22, 119, 255, .16);
  outline-offset: 2px;
}

.epf-hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 34px 0;
  text-align: center;
}

.epf-symbol {
  position: relative;
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  margin: 2px auto 20px;
}

.epf-symbol::before,
.epf-symbol::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.epf-symbol::before {
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, .88), rgba(223, 244, 255, .58));
  border: 1px solid rgba(255, 255, 255, .88);
  box-shadow: 0 18px 38px rgba(22, 119, 255, .17), inset 0 0 0 8px rgba(255, 255, 255, .42);
  animation: epf-breathe 2.6s ease-in-out infinite;
}

.epf-symbol::after {
  inset: 14px;
  background: linear-gradient(145deg, var(--epf-accent-2), var(--epf-accent));
  box-shadow: 0 12px 26px rgba(22, 119, 255, .30), inset 0 1px 1px rgba(255, 255, 255, .55);
}

.epf-is-warning .epf-symbol::before {
  box-shadow: 0 18px 38px rgba(245, 158, 11, .17), inset 0 0 0 8px rgba(255, 255, 255, .46);
}

.epf-is-warning .epf-symbol::after {
  box-shadow: 0 12px 26px rgba(245, 158, 11, .28), inset 0 1px 1px rgba(255, 255, 255, .55);
}

.epf-is-error .epf-symbol::before {
  box-shadow: 0 18px 38px rgba(220, 38, 38, .17), inset 0 0 0 8px rgba(255, 255, 255, .46);
}

.epf-is-error .epf-symbol::after {
  box-shadow: 0 12px 26px rgba(220, 38, 38, .28), inset 0 1px 1px rgba(255, 255, 255, .55);
}

.epf-is-info .epf-symbol::before {
  box-shadow: 0 18px 38px rgba(37, 99, 235, .17), inset 0 0 0 8px rgba(255, 255, 255, .46);
}

.epf-icon {
  position: relative;
  z-index: 2;
  width: 40px;
  height: 40px;
  color: #fff;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .08));
}

.epf-icon .epf-check-path {
  stroke-dasharray: 42;
  stroke-dashoffset: 42;
  animation: epf-draw-check .55s .22s cubic-bezier(.4, 0, .2, 1) forwards;
}

.epf-icon .epf-warning-mark {
  transform-origin: center;
  animation: epf-mark-in .46s .16s cubic-bezier(.2, .9, .3, 1.3) both;
}

.epf-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  padding: 6px 10px;
  border: 1px solid rgba(22, 119, 255, .12);
  border-radius: 999px;
  background: rgba(232, 244, 255, .72);
  color: #1761bb;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .095em;
  line-height: 1;
  text-transform: uppercase;
}

.epf-is-warning .epf-kicker {
  border-color: rgba(245, 158, 11, .17);
  background: rgba(255, 244, 214, .82);
  color: #a96500;
}

.epf-is-error .epf-kicker {
  border-color: rgba(220, 38, 38, .17);
  background: rgba(254, 226, 226, .84);
  color: #b91c1c;
}

.epf-is-info .epf-kicker {
  border-color: rgba(37, 99, 235, .16);
  background: rgba(219, 234, 254, .82);
  color: #1d4ed8;
}

.epf-kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--epf-positive);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--epf-positive) 16%, transparent);
}

@supports not (background: color-mix(in srgb, white 50%, black)) {
  .epf-kicker-dot {
    box-shadow: 0 0 0 4px rgba(48, 209, 88, .14);
  }
  .epf-is-warning .epf-kicker-dot {
    box-shadow: 0 0 0 4px rgba(255, 159, 10, .14);
  }
}

.epf-title {
  margin: 0;
  color: #091624;
  font-size: clamp(27px, 5.6vw, 34px);
  font-weight: 780;
  letter-spacing: -.038em;
  line-height: 1.05;
}

.epf-message {
  max-width: 354px;
  max-height: min(34vh, 260px);
  overflow: auto;
  margin: 13px auto 0;
  color: var(--epf-muted);
  font-size: 15px;
  font-weight: 470;
  letter-spacing: -.01em;
  line-height: 1.5;
  white-space: pre-line;
  scrollbar-width: thin;
}

.epf-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 20px 0 0;
  padding: 11px 13px;
  border: 1px solid rgba(16, 50, 82, .08);
  border-radius: 14px;
  background: rgba(244, 248, 252, .74);
  color: #506074;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.epf-detail[hidden] {
  display: none !important;
}

.epf-detail svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--epf-positive);
}

.epf-actions {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 24px 22px 22px;
}

.epf-actions.epf-single-action {
  grid-template-columns: 1fr;
}

.epf-button,
.epf-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 0;
  padding: 12px 17px;
  border-radius: 15px;
  font: 720 13px/1.15 -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", sans-serif;
  letter-spacing: -.005em;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  -webkit-appearance: none;
  appearance: none;
}

.epf-link {
  border: 1px solid rgba(13, 37, 61, .10);
  background: rgba(247, 249, 252, .84);
  color: #25364a !important;
}

.epf-link[hidden] {
  display: none !important;
}

.epf-button {
  border: 1px solid rgba(0, 0, 0, .04);
  background: linear-gradient(180deg, #15283b, #0b1825);
  color: #fff;
  box-shadow: 0 10px 22px rgba(7, 22, 38, .18), inset 0 1px 0 rgba(255, 255, 255, .15);
}

.epf-button:hover,
.epf-button:focus-visible,
.epf-link:hover,
.epf-link:focus-visible {
  transform: translateY(-1px);
}

.epf-button:focus-visible,
.epf-link:focus-visible {
  outline: 3px solid rgba(22, 119, 255, .20);
  outline-offset: 2px;
}

.epf-button:hover {
  box-shadow: 0 13px 28px rgba(7, 22, 38, .23), inset 0 1px 0 rgba(255, 255, 255, .16);
}

.epf-link:hover {
  background: #f0f4f8;
  color: #0c1c2c !important;
}

.epf-progress {
  position: absolute;
  right: 22px;
  bottom: 0;
  left: 22px;
  z-index: 3;
  height: 3px;
  overflow: hidden;
  border-radius: 999px 999px 0 0;
  background: rgba(14, 42, 68, .065);
}

.epf-progress[hidden] {
  display: none !important;
}

.epf-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--epf-accent), var(--epf-accent-2));
  transform-origin: left center;
}

.epf-progress.epf-is-running span {
  animation: epf-countdown linear forwards;
}

.epf-progress.epf-is-paused span {
  animation-play-state: paused;
}

@keyframes epf-countdown {
  to { transform: scaleX(0); }
}

@keyframes epf-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}

@keyframes epf-draw-check {
  to { stroke-dashoffset: 0; }
}

@keyframes epf-mark-in {
  from { opacity: 0; transform: scale(.5) rotate(-8deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

@media (max-width: 520px) {
  .epf-layer {
    align-items: end;
    padding: 12px;
  }

  .epf-card {
    width: 100%;
    border-radius: 26px;
    transform: translateY(26px) scale(.985);
  }

  .epf-is-visible .epf-card {
    transform: translateY(0) scale(1);
  }

  .epf-topbar {
    min-height: 56px;
    padding: 14px 15px 7px 17px;
  }

  .epf-hero {
    padding: 2px 22px 0;
  }

  .epf-symbol {
    width: 82px;
    height: 82px;
    margin-bottom: 17px;
  }

  .epf-symbol::after {
    inset: 12px;
  }

  .epf-title {
    font-size: 29px;
  }

  .epf-message {
    font-size: 14px;
  }

  .epf-actions {
    padding: 20px 18px 20px;
  }

  .epf-progress {
    right: 18px;
    left: 18px;
  }
}

@media (max-width: 360px) {
  .epf-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .epf-layer,
  .epf-card,
  .epf-close,
  .epf-button,
  .epf-link {
    transition-duration: .01ms !important;
  }

  .epf-symbol::before,
  .epf-icon .epf-check-path,
  .epf-icon .epf-warning-mark {
    animation: none !important;
  }

  .epf-icon .epf-check-path {
    stroke-dashoffset: 0;
  }
}

@media print {
  .epf-layer {
    display: none !important;
  }
}
