/* Cash Global — auth / login */

/* Vendor FA maps woff2 → .html (broken); load real solid webfonts */
@font-face {
  font-family: "Font Awesome 5 Free";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../../vendor/fonts/fontawesome/webfonts/fa-solid-900.woff") format("woff"),
       url("../../vendor/fonts/fontawesome/webfonts/fa-solid-900.ttf") format("truetype");
}

:root {
  /* Defaults = Cash; layouts override via company primary/secondary */
  --cg-navy: #012a66;
  --cg-navy-deep: #01183d;
  --cg-navy-mid: #023a82;
  --cg-teal: #19cec7;
  --cg-teal-soft: rgba(25, 206, 199, 0.18);
  --cg-ink: #0f1c33;
  --cg-muted: #5a6b85;
  --cg-line: #d8e0ec;
  --cg-surface: #f7f9fc;
  --cg-white: #ffffff;
  --cg-danger: #e11d48;
  --cg-radius: 14px;
  --cg-font: "IBM Plex Sans Arabic", "Tajawal", "Segoe UI", Tahoma, sans-serif;
}

html,
body.cg-auth {
  min-height: 100%;
}

body.cg-auth {
  margin: 0;
  font-family: var(--cg-font);
  color: var(--cg-ink);
  background: var(--cg-navy-deep);
  overflow-x: hidden;
  direction: rtl;
  text-align: right; /* override Bootstrap/app.css body { text-align: left } */
}

body.cg-auth .dashboard-main-wrapper {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  direction: rtl;
  text-align: right;
}

/* —— Atmosphere (replaces bg.jpg) —— */
.cg-auth__atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, var(--cg-teal-soft), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 80%, var(--cg-navy-mid), transparent 50%),
    linear-gradient(155deg, var(--cg-navy-deep) 0%, var(--cg-navy) 42%, var(--cg-navy-mid) 100%);
}

.cg-auth__glow {
  position: absolute;
  inset: auto;
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  right: -8%;
  top: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 68%);
  filter: blur(8px);
  animation: cg-glow-pulse 10s ease-in-out infinite alternate;
  opacity: 0.55;
}

body.cg-auth--wateqon .cg-auth__atmosphere {
  background:
    radial-gradient(ellipse 70% 55% at 82% 18%, rgba(232, 184, 74, 0.16), transparent 52%),
    radial-gradient(ellipse 65% 50% at 12% 78%, rgba(38, 109, 168, 0.35), transparent 55%),
    linear-gradient(152deg, var(--cg-navy-deep) 0%, var(--cg-navy) 48%, #1a4f7c 100%);
}

body.cg-auth--wateqon .cg-auth__glow {
  background: radial-gradient(circle, rgba(232, 184, 74, 0.22), transparent 68%);
  left: -10%;
  right: auto;
  top: auto;
  bottom: 8%;
}

.cg-auth__atmosphere::before {
  content: "";
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: rotate(-8deg);
  animation: cg-grid-drift 28s linear infinite;
  opacity: 0.55;
}

.cg-auth__atmosphere::after {
  content: "";
  position: absolute;
  width: 140%;
  height: 140%;
  top: -20%;
  left: -20%;
  background:
    radial-gradient(circle at 70% 30%, var(--cg-teal-soft), transparent 28%),
    radial-gradient(circle at 25% 75%, rgba(25, 206, 199, 0.12), transparent 32%);
  animation: cg-glow-pulse 9s ease-in-out infinite alternate;
}

.cg-auth__routes {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.cg-auth__routes span {
  position: absolute;
  display: block;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--cg-teal), transparent);
  opacity: 0.35;
  animation: cg-route 12s ease-in-out infinite;
}

.cg-auth__routes span:nth-child(1) {
  width: 42%;
  top: 22%;
  right: -8%;
  transform: rotate(-18deg);
  animation-delay: 0s;
}

.cg-auth__routes span:nth-child(2) {
  width: 55%;
  top: 58%;
  left: -10%;
  transform: rotate(12deg);
  animation-delay: -4s;
  opacity: 0.22;
}

.cg-auth__routes span:nth-child(3) {
  width: 30%;
  bottom: 18%;
  right: 10%;
  transform: rotate(-6deg);
  animation-delay: -7s;
  opacity: 0.28;
}

@keyframes cg-grid-drift {
  from { transform: rotate(-8deg) translateY(0); }
  to { transform: rotate(-8deg) translateY(56px); }
}

@keyframes cg-glow-pulse {
  from { opacity: 0.7; transform: scale(1); }
  to { opacity: 1; transform: scale(1.06); }
}

@keyframes cg-route {
  0%, 100% { opacity: 0.15; filter: blur(0); }
  50% { opacity: 0.45; filter: blur(0.2px); }
}

@keyframes cg-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cg-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* —— Login shell —— */
.cg-login {
  position: relative;
  z-index: 1;
  display: grid;
  /* Panel (form) first column = right in RTL; brand second = left */
  grid-template-columns: minmax(320px, 460px) minmax(0, 1.05fr);
  grid-template-areas: "panel brand";
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px;
  gap: 24px;
  align-items: stretch;
  animation: cg-fade-in 0.6s ease both;
  direction: rtl;
  text-align: right;
}

.cg-login--wide {
  max-width: 1100px;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
}

.cg-login__brand {
  grid-area: brand;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start; /* flex-start = right in RTL */
  padding: 40px 32px;
  color: #fff;
  text-align: right;
  animation: cg-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cg-login__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 18px;
}

.cg-login__brand-mark img {
  height: 72px;
  width: auto;
  max-width: min(300px, 100%);
  object-fit: contain;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.25));
}

.cg-login__eyebrow {
  margin: 0 0 10px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--cg-teal);
  text-align: right;
  width: 100%;
}

.cg-login__brand h1 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
  color: #fff;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  text-align: right;
  width: 100%;
}

.cg-login__brand p,
.cg-login__lead {
  margin: 0;
  max-width: 28ch;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  text-align: right;
  width: 100%;
}

.cg-login__points {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  max-width: 34ch;
  width: 100%;
  text-align: right;
}

.cg-login__points li {
  position: relative;
  padding-inline-start: 22px;
  padding-right: 22px;
  padding-left: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-align: right;
}

.cg-login__points li::before {
  content: "";
  position: absolute;
  right: 0;
  left: auto;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cg-teal);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.cg-login__accent {
  display: inline-block;
  margin-top: 28px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #102033;
  background: var(--cg-teal);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.cg-login--wateqon .cg-login__brand-mark img {
  height: 80px;
}

.cg-login--wateqon .cg-login__panel {
  border: 1px solid rgba(232, 184, 74, 0.18);
}

.cg-login--wateqon .cg-login__panel-head h2 {
  color: var(--cg-navy);
}

.cg-login--wateqon .btn-primary,
.cg-login--wateqon .btn.btn-primary {
  background: linear-gradient(135deg, #2f7fbf, var(--cg-navy)) !important;
  box-shadow: 0 12px 28px rgba(38, 109, 168, 0.32);
}

.cg-login--wateqon .form-control:focus,
.cg-login--wateqon .form-control-lg:focus {
  border-color: #E8B84A;
  box-shadow: 0 0 0 4px rgba(232, 184, 74, 0.2);
}

.cg-login__panel {
  grid-area: panel;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--cg-white);
  border-radius: 22px;
  padding: 36px 32px 28px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 24px 60px rgba(1, 24, 61, 0.35);
  animation: cg-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
  direction: rtl;
  text-align: right;
}

.cg-login__panel-head {
  margin-bottom: 22px;
  text-align: right;
}

.cg-login__panel-head h2 {
  margin: 0 0 6px;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--cg-navy);
}

.cg-login__panel-head p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--cg-muted);
}

.cg-login__branch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cg-navy);
  background: rgba(1, 42, 102, 0.08);
}

.cg-login form {
  width: 100%;
}

.cg-login .form-group {
  margin-bottom: 14px;
}

.cg-login label.cg-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--cg-ink);
  text-align: right;
}

.cg-login .form-control,
.cg-login .form-control-lg {
  height: 48px;
  border: 1.5px solid var(--cg-line);
  border-radius: 12px;
  background: var(--cg-surface);
  font-family: var(--cg-font);
  font-size: 0.98rem;
  color: var(--cg-ink);
  box-shadow: none;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  text-align: right;
}

.cg-login .form-control[type="email"],
.cg-login .form-control[name="email"],
.cg-login .form-control[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

.cg-login .cg-remember {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
  text-align: right;
}

.cg-login .cg-remember .form-check-input {
  margin: 0;
  float: none;
  position: static;
}

.cg-login .cg-remember .form-check-label {
  margin: 0;
  padding: 0;
}

.cg-login .form-control:focus,
.cg-login .form-control-lg:focus {
  border-color: var(--cg-teal);
  background: #fff;
  box-shadow: 0 0 0 4px var(--cg-teal-soft);
  outline: none;
}

.cg-login .form-control.is-invalid {
  border-color: var(--cg-danger);
}

.cg-login .form-check-label {
  font-size: 0.9rem;
  color: var(--cg-muted);
  cursor: pointer;
}

.cg-login .form-check-input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  cursor: pointer;
}

.cg-login .btn-primary,
.cg-login .btn.btn-primary {
  height: 48px;
  border: none;
  border-radius: 12px;
  font-family: var(--cg-font);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #fff !important;
  background: linear-gradient(135deg, var(--cg-navy-mid), var(--cg-navy)) !important;
  box-shadow: 0 10px 24px rgba(1, 42, 102, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.cg-login .btn-primary:hover,
.cg-login .btn.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(1, 42, 102, 0.34);
}

.cg-login .btn-primary:active {
  transform: translateY(0);
}

.cg-login .btn-dark {
  height: 48px;
  border: none;
  border-radius: 12px;
  font-family: var(--cg-font);
  font-weight: 800;
  background: var(--cg-ink) !important;
}

.cg-login .cg-link,
.cg-login a.btn.text-primary,
.cg-login .btn-block.text-primary {
  color: var(--cg-navy) !important;
  font-weight: 700;
  text-decoration: none;
  background: transparent !important;
  border: none;
  box-shadow: none;
}

.cg-login .cg-link:hover,
.cg-login a.btn.text-primary:hover {
  color: var(--cg-teal) !important;
}

.cg-login__footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--cg-line);
  color: var(--cg-muted);
  font-size: 0.78rem;
}

.cg-login__footer small {
  color: inherit;
}

/* App store download badges */
.cg-app-download {
  margin: 0 0 14px;
  text-align: center;
}

.cg-app-download__label {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cg-muted);
}

.cg-app-download__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.cg-app-download__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 148px;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none !important;
  color: #fff !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.cg-app-download__badge:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  color: #fff !important;
}

.cg-app-download__badge--google {
  background: linear-gradient(135deg, #012a66, #023a82);
  box-shadow: 0 8px 18px rgba(1, 42, 102, 0.22);
}

.cg-app-download__badge--apple {
  background: #111;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.cg-app-download__badge-icon {
  display: inline-flex;
  flex-shrink: 0;
}

.cg-app-download__badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: left;
}

.cg-app-download__badge-text small {
  font-size: 0.65rem;
  opacity: 0.85;
  font-weight: 600;
}

.cg-app-download__badge-text strong {
  font-size: 0.92rem;
  font-weight: 800;
}

/* Type chooser (persons) */
.cg-type-grid {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.cg-type-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  border: 1.5px solid var(--cg-line);
  border-radius: 14px;
  background: var(--cg-surface);
  color: var(--cg-ink);
  font-family: var(--cg-font);
  text-align: right;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}

.cg-type-card:hover {
  border-color: var(--cg-teal);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(1, 42, 102, 0.08);
}

.cg-type-card__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--cg-navy);
}

.cg-type-card__hint {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--cg-muted);
}

.cg-type-card__icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(1, 42, 102, 0.08);
  color: var(--cg-navy);
  font-size: 1.15rem;
}

/* Keep FA glyphs — button inherits Tajawal and would blank icons */
.cg-type-card__icon .fa,
.cg-type-card__icon .fas,
.cg-type-card__icon .far,
.cg-login .fa,
.cg-login .fas,
.cg-login .far {
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  font-style: normal;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}

.cg-type-card--delivery .cg-type-card__icon {
  background: rgba(25, 206, 199, 0.16);
  color: #0e8f8a;
}

/* Alerts inside panel */
.cg-login .alert {
  border-radius: 12px;
  font-size: 0.9rem;
}

/* Register page uses same shell */
.cg-login .card {
  border: none;
  background: transparent;
  box-shadow: none;
}

.cg-login .card-header,
.cg-login .card-footer {
  display: none;
}

.cg-login .card-body {
  padding: 0;
}

/* —— Responsive —— */
@media (max-width: 991.98px) {
  .cg-login,
  .cg-login--wide {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "panel";
    padding: 20px 16px 28px;
    gap: 12px;
    align-content: start;
  }

  .cg-login__brand {
    padding: 20px 12px 4px;
    text-align: center;
    align-items: center;
  }

  .cg-login__brand-mark {
    margin-bottom: 10px;
    justify-content: center;
  }

  .cg-login__brand-mark img,
  .cg-login--wateqon .cg-login__brand-mark img {
    height: 52px;
  }

  .cg-login__brand h1,
  .cg-login__eyebrow,
  .cg-login__brand p,
  .cg-login__lead {
    text-align: center;
  }

  .cg-login__brand h1 {
    font-size: 1.25rem;
    margin-bottom: 4px;
  }

  .cg-login__brand p,
  .cg-login__lead {
    max-width: 28ch;
    font-size: 0.9rem;
  }

  .cg-login__points,
  .cg-login__accent {
    display: none;
  }

  .cg-login__panel {
    padding: 26px 20px 22px;
    border-radius: 18px;
  }

  .cg-login__panel-head {
    text-align: center;
  }

  .cg-login .cg-remember {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cg-auth__atmosphere::before,
  .cg-auth__atmosphere::after,
  .cg-auth__routes span,
  .cg-login,
  .cg-login__brand,
  .cg-login__panel,
  .cg-download,
  .cg-download__brand,
  .cg-download__main,
  .cg-download__store {
    animation: none !important;
  }
}

/* —— Download app page (/download-app) —— */
.cg-download {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  animation: cg-rise 0.55s ease both;
}

.cg-download__shell {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(280px, 1fr);
  gap: 40px 48px;
  align-items: center;
}

.cg-download__visual {
  display: flex;
  justify-content: center;
  animation: cg-download-phone 0.8s ease both;
}

.cg-download__phone {
  position: relative;
  width: min(260px, 72vw);
  padding: 10px;
  border-radius: 36px;
  background: linear-gradient(160deg, #1a1a1a, #0a0a0a);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.cg-download__phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 18px;
  border-radius: 999px;
  background: #0a0a0a;
  z-index: 2;
}

.cg-download__shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  background: #fff;
}

.cg-download__copy {
  text-align: right;
  animation: cg-rise 0.7s ease 0.1s both;
}

.cg-download__logo {
  height: 64px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  margin-bottom: 22px;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.28));
}

.cg-download__title {
  margin: 0 0 12px;
  font-size: clamp(1.85rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.cg-download__lead {
  margin: 0 0 26px;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 500;
}

.cg-download__actions {
  display: grid;
  gap: 12px;
  max-width: 320px;
}

.cg-download__store {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  text-decoration: none !important;
  color: #fff !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.cg-download__store:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  color: #fff !important;
}

.cg-download__store--google {
  background: linear-gradient(135deg, var(--cg-teal), #0e8f8a);
  box-shadow: 0 14px 28px rgba(25, 206, 199, 0.28);
}

.cg-download__store--apple {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.cg-download__store-icon {
  display: inline-flex;
  flex-shrink: 0;
}

.cg-download__store-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: left;
}

.cg-download__store-copy small {
  font-size: 0.72rem;
  opacity: 0.85;
  font-weight: 600;
}

.cg-download__store-copy strong {
  font-size: 1.2rem;
  font-weight: 800;
}

.cg-download__soon {
  display: grid;
  gap: 6px;
  max-width: 320px;
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.75);
}

.cg-download__soon strong {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
}

.cg-download__footer {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
  font-weight: 600;
}

.cg-download__footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.cg-download__footer a:hover {
  color: var(--cg-teal);
  border-bottom-color: var(--cg-teal);
}

@keyframes cg-download-phone {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 991.98px) {
  .cg-download__shell {
    grid-template-columns: 1fr;
    gap: 28px;
    justify-items: center;
    text-align: center;
  }

  .cg-download__copy {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .cg-download__lead {
    margin-left: auto;
    margin-right: auto;
  }

  .cg-download__actions,
  .cg-download__soon {
    width: 100%;
    max-width: 320px;
  }

  .cg-download__footer {
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .cg-download {
    padding: 20px 14px 28px;
    align-items: start;
  }

  .cg-download__logo {
    height: 52px;
  }

  .cg-download__phone {
    width: min(220px, 68vw);
    border-radius: 30px;
  }

  .cg-download__shot {
    border-radius: 22px;
  }

  .cg-download__store {
    padding: 14px;
  }
}
