/* Express Cash first-party consent UI */
.ec-consent-root {
  position: relative;
  z-index: 2147483000;
  font-family: Montserrat, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: #0f172a;
}

.ec-consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 720px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #d7dee8;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
  padding: 18px 18px 16px;
  z-index: 3;

}

.ec-consent-banner[hidden],
.ec-consent-modal[hidden],
.ec-consent-fab[hidden] {
  display: none !important;
}

.ec-consent-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: #0b1f33;
}

.ec-consent-desc {
  margin: 0 0 14px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #334155;
}

.ec-consent-link {
  color: #0b6bcb;
  text-decoration: underline;
}

.ec-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.ec-consent-btn {
  appearance: none;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 10px 14px;
  min-height: 44px;
  min-width: 44px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
  touch-action: manipulation;
}

/* Dual-ring focus: dark indicator + light halo so contrast holds on white and blue buttons (>=3:1). */
.ec-consent-btn:focus-visible,
.ec-consent-fab:focus-visible,
.ec-consent-link:focus-visible,
.ec-consent-check:focus-visible,
.ec-consent-modal-panel:focus-visible {
  outline: 3px solid #0b1f33;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px #ffffff;
}

.ec-consent-btn-accept:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px #0b1f33;
}

.ec-consent-btn-accept {
  background: #0b6bcb;
  color: #fff;
  border-color: #0b6bcb;
}

.ec-consent-btn-accept:hover {
  background: #0958a8;
}

.ec-consent-btn-reject {
  background: #fff;
  color: #0b1f33;
  border-color: #94a3b8;
}

.ec-consent-btn-manage {
  background: #eef5fb;
  color: #0b1f33;
  border-color: #c5d7ea;
}

.ec-consent-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 12, 27, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 4;

}

.ec-consent-modal-panel {
  width: min(560px, 100%);
  max-height: min(86vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 18px 50px rgba(2, 12, 27, 0.28);
}

.ec-consent-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid #e2e8f0;
}

.ec-consent-row-label {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}

.ec-consent-row-desc {
  margin: 0;
  font-size: 0.86rem;
  color: #475569;
  line-height: 1.4;
}

.ec-consent-check {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  flex: 0 0 auto;
}

.ec-consent-fab {
  position: fixed;
  left: 12px;
  bottom: 12px;
  /* Below banner/modal so overlays remain fully interactive */
  border: 1px solid #c5d7ea;
  background: #ffffff;
  color: #0b1f33;
  border-radius: 999px;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 14px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
  cursor: pointer;
  z-index: 1;

}


@media (max-width: 560px) {
  .ec-consent-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 16px 14px 14px;
  }

  .ec-consent-actions {
    flex-direction: column-reverse;
  }

  .ec-consent-btn {
    width: 100%;
  }

  .ec-consent-fab {
    left: 10px;
    right: auto;
    bottom: 10px;
    font-size: 0.78rem;
    padding: 10px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ec-consent-banner,
  .ec-consent-modal,
  .ec-consent-fab {
    transition: none !important;
  }
}
