/* Visual bridge for the existing simulator and legal dialogs. */
body[data-app-screen="home"] .custom-slider {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 44px;
  margin: 12px 0 0;
  cursor: pointer;
  touch-action: none;
  user-select: none;
}

body[data-app-screen="home"] .slider-track {
  position: absolute;
  right: 0;
  left: 0;
  height: 4px;
  overflow: hidden;
  background: #dedede;
  border-radius: 99px;
}

body[data-app-screen="home"] .slider-progress {
  height: 100%;
  width: 36.6%;
  background: #4ab969;
  border-radius: inherit;
}

body[data-app-screen="home"] .slider-thumb {
  position: absolute;
  z-index: 2;
  left: 36.6%;
  width: 34px;
  height: 34px;
  transform: translateX(-50%);
  border: 2px solid #4ab969;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgb(0 0 0 / 12%);
  cursor: grab;
}

body[data-app-screen="home"] .slider-thumb::after {
  content: "‹  ›";
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #3da55b;
  font-family: Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

body[data-app-screen="home"] .slider-thumb.active {
  cursor: grabbing;
  transform: translateX(-50%) scale(1.08);
}

body[data-app-screen="home"] .custom-slider:focus-visible {
  outline: 3px solid #2f5646;
  outline-offset: 4px;
  border-radius: 6px;
}

body[data-app-screen="home"] .hdr-support {
  background: #e8f5e9;
  color: #2f5646;
  box-shadow: none;
}

body[data-app-screen="home"] .hdr-support:hover {
  background: #d9efdd;
}

body[data-app-screen="home"] .modal {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: none;
  background: rgb(0 0 0 / 55%);
}

body[data-app-screen="home"] .modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

body[data-app-screen="home"] .modal-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
  max-height: 85dvh;
  overflow: hidden;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgb(0 0 0 / 22%);
}

body[data-app-screen="home"] .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 18px;
  border-bottom: 1px solid #e5e7eb;
}

body[data-app-screen="home"] .modal-header h2 {
  font-size: 20px;
  font-weight: 800;
}

body[data-app-screen="home"] .modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #6b7280;
  background: none;
  border: 0;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

body[data-app-screen="home"] .modal-close:hover {
  color: #111827;
  background: #f3f3f3;
}

body[data-app-screen="home"] .modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px;
}

body[data-app-screen="home"] .modal-body h3 {
  margin: 22px 0 10px;
  font-size: 17px;
  font-weight: 800;
}

body[data-app-screen="home"] .modal-body h3:first-child {
  margin-top: 0;
}

body[data-app-screen="home"] .modal-body p,
body[data-app-screen="home"] .modal-body li {
  margin-bottom: 14px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
}

body[data-app-screen="home"] .modal-body ul {
  margin: 10px 0 14px 20px;
  padding: 0;
}

body[data-app-screen="home"] .modal-body a {
  color: #287d42;
}

/* Consent banner styles are injected by js/utm-supermini.js in purple. The id selector overrides only the colors. */
#safe2pays-consent .safe2pays-consent__button {
  border-color: #55b46e !important;
}

#safe2pays-consent .safe2pays-consent__button--primary {
  color: #1f2937 !important;
  background: #55b46e !important;
}

#safe2pays-consent .safe2pays-consent__button--secondary {
  color: #2f5646 !important;
  background: #fff !important;
}

@media (max-width: 360px) {
  body[data-app-screen="home"] .sim-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}
