/* =========================================================
   STICKY CTA
   Vavada Mirror
========================================================= */

/* =========================================================
   1. FIXED WRAPPER
========================================================= */

.sticky-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 95;

  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));

  pointer-events: none;
}

/* =========================================================
   2. STICKY CONTAINER
========================================================= */

.sticky-cta__inner {
  display: grid;
  grid-template-columns:
    minmax(250px, 300px)
    minmax(220px, 250px)
    minmax(175px, 190px);
  align-items: center;
  justify-content: center;
  gap: 10px;

  width: min(100%, 800px);
  min-height: 66px;
  margin: 0 auto;
  padding: 8px;

  background: linear-gradient(180deg, rgba(31, 31, 52, 0.985) 0%, rgba(19, 20, 38, 0.985) 100%);

  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;

  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  pointer-events: auto;
}

/* =========================================================
   3. BRAND
========================================================= */

.sticky-cta__brand {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;

  min-width: 0;
  padding: 2px 8px;
}

.sticky-cta__logo {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 46px;
  height: 46px;

  overflow: hidden;

  background: #202238;

  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;

  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
}

.sticky-cta__logo-img,
.sticky-cta__logo img {
  display: block;

  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;

  object-fit: contain;
  object-position: center;

  border: 0;
  border-radius: 0;

  box-shadow: none;
}

/* =========================================================
   4. BRAND INFO
========================================================= */

.sticky-cta__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;

  min-width: 0;

  text-align: left;
}

.sticky-cta__title {
  display: block;

  max-width: 100%;

  color: #ffffff;

  font-size: 13px;
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: -0.02em;

  white-space: nowrap;
}

.sticky-cta__bonus {
  display: block;

  max-width: 100%;

  color: rgba(255, 255, 255, 0.58);

  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;

  white-space: nowrap;
}

/* =========================================================
   5. PROMO CONTROL
========================================================= */

.sticky-cta__promo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  gap: 7px;

  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 5px 5px 5px 13px;

  overflow: hidden;

  color: inherit;

  background:
    linear-gradient(180deg, #27243c 0%, #1d1e34 52%, #17192d 100%) padding-box,
    linear-gradient(110deg, rgba(255, 47, 91, 0.58) 0%, rgba(126, 82, 157, 0.52) 48%, rgba(112, 117, 148, 0.42) 100%) border-box;

  border: 1px solid transparent;
  border-radius: 10px;

  box-shadow:
    0 7px 18px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);

  text-align: left;

  cursor: pointer;

  transition:
    filter 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.sticky-cta__promo:hover {
  filter: brightness(1.045);

  box-shadow:
    0 9px 21px rgba(0, 0, 0, 0.19),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);

  transform: translateY(-1px);
}

/* =========================================================
   6. PROMO CONTENT
========================================================= */

.sticky-cta__promo-content {
  display: grid;
  gap: 4px;

  min-width: 0;
}

.sticky-cta__promo-label {
  display: block;

  color: var(--accent);

  font-size: 7px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sticky-cta__promo-value {
  display: block;

  min-width: 0;
  overflow: hidden;

  color: #ffffff;

  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.02em;

  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================================================
   7. COPY BUTTON
========================================================= */

.sticky-cta__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;

  color: var(--accent);

  background: linear-gradient(180deg, rgba(255, 47, 91, 0.08), rgba(255, 47, 91, 0.035));

  border: 1px solid rgba(255, 47, 91, 0.28);
  border-radius: 8px;

  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.sticky-cta__copy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;

  color: inherit;

  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1;
}

.sticky-cta__promo:hover .sticky-cta__copy {
  color: #ffffff;

  background: rgba(255, 47, 91, 0.12);

  border-color: rgba(255, 47, 91, 0.55);
}

.sticky-cta__promo.is-copied {
  filter: none;

  border-color: rgba(255, 47, 91, 0.62);

  transform: none;
}

.sticky-cta__promo.is-copied .sticky-cta__copy {
  color: #ffffff;

  background: rgba(255, 47, 91, 0.14);

  border-color: rgba(255, 47, 91, 0.68);
}

.sticky-cta__promo.is-copied .sticky-cta__copy-icon {
  color: #ffffff;

  font-size: 14px;
  font-weight: 900;
}

/* =========================================================
   8. CTA BUTTON
========================================================= */

.sticky-cta__button {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 48px;
  padding: 10px 16px;

  overflow: hidden;

  color: #ffffff !important;
  text-decoration: none !important;

  background:
    linear-gradient(105deg, #b91f50 0%, #cf2459 34%, #df2a61 68%, #e93668 100%) padding-box,
    linear-gradient(110deg, rgba(255, 76, 124, 0.9) 0%, rgba(216, 62, 112, 0.82) 52%, rgba(164, 76, 145, 0.7) 100%) border-box;

  box-shadow:
    0 8px 20px rgba(190, 28, 79, 0.24),
    0 0 12px rgba(255, 47, 91, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.11);

  border: 1px solid transparent;
  border-radius: 10px;

  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;

  transition:
    filter 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.sticky-cta__button::after {
  position: absolute;
  bottom: 0;
  left: 0;

  width: 32%;
  height: 2px;

  content: '';

  background: linear-gradient(90deg, #ff2f66 0%, #d72b79 62%, rgba(215, 43, 121, 0) 100%);

  border-radius: 0 999px 999px 0;

  opacity: 0.82;

  transition:
    width 220ms ease,
    opacity 180ms ease;
}

.sticky-cta__button:hover {
  color: #ffffff !important;

  filter: brightness(1.08);

  transform: translateY(-1px);
}

.sticky-cta__button:hover::after {
  width: 55%;
  opacity: 1;
}

/* =========================================================
   9. TABLET
========================================================= */

@media (max-width: 900px) {
  .sticky-cta {
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  }

  .sticky-cta__inner {
    grid-template-columns:
      minmax(215px, 250px)
      minmax(180px, 210px)
      minmax(140px, 155px);
    gap: 8px;

    width: min(100%, 660px);
    min-height: 62px;
    padding: 7px;

    border-radius: 14px;
  }

  .sticky-cta__brand {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 9px;

    padding: 2px 5px;
  }

  .sticky-cta__logo {
    width: 40px;
    height: 40px;

    border-radius: 9px;
  }

  .sticky-cta__title {
    font-size: 12px;
  }

  .sticky-cta__bonus {
    font-size: 10px;
  }

  .sticky-cta__promo,
  .sticky-cta__button {
    min-height: 46px;
  }

  .sticky-cta__button {
    font-size: 9px;
  }
}

/* =========================================================
   10. MOBILE
========================================================= */

@media (max-width: 680px) {
  .sticky-cta {
    padding: 6px 7px calc(6px + env(safe-area-inset-bottom));
  }

  .sticky-cta__inner {
    grid-template-columns:
      minmax(112px, 1.15fr)
      minmax(104px, 0.95fr)
      minmax(90px, 0.8fr);
    gap: 6px;

    width: 100%;
    min-height: auto;
    padding: 6px;

    border-radius: 12px;
  }

  .sticky-cta__brand {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 7px;

    padding: 0 2px;
  }

  .sticky-cta__logo {
    width: 32px;
    height: 32px;

    border-radius: 8px;
  }

  .sticky-cta__info {
    gap: 2px;
  }

  .sticky-cta__title,
  .sticky-cta__bonus {
    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sticky-cta__title {
    font-size: 10px;
    line-height: 1.1;
  }

  .sticky-cta__bonus {
    font-size: 9px;
    line-height: 1.1;
  }

  .sticky-cta__promo {
    grid-template-columns: minmax(0, 1fr) 28px;
    gap: 4px;

    min-height: 42px;
    padding: 4px 4px 4px 8px;

    border-radius: 9px;
  }

  .sticky-cta__promo-content {
    gap: 3px;
  }

  .sticky-cta__promo-label {
    font-size: 6px;
  }

  .sticky-cta__promo-value {
    font-size: 10px;
  }

  .sticky-cta__copy {
    width: 28px;
    height: 28px;

    border-radius: 7px;
  }

  .sticky-cta__copy-icon {
    font-size: 11px;
  }

  .sticky-cta__button {
    min-width: 0;
    min-height: 42px;
    padding: 8px 7px;

    border-radius: 9px;

    font-size: 8px;
  }

  .scroll-top {
    right: 10px;
    bottom: calc(68px + env(safe-area-inset-bottom));
  }
}

/* =========================================================
   11. SMALL MOBILE
========================================================= */

@media (max-width: 390px) {
  .sticky-cta {
    padding-inline: 5px;
  }

  .sticky-cta__inner {
    grid-template-columns:
      minmax(104px, 1.1fr)
      minmax(94px, 0.95fr)
      minmax(80px, 0.8fr);
    gap: 5px;

    padding: 5px;
  }

  .sticky-cta__brand {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 5px;
  }

  .sticky-cta__logo {
    width: 28px;
    height: 28px;
  }

  .sticky-cta__title {
    font-size: 9px;
  }

  .sticky-cta__bonus {
    font-size: 8px;
  }

  .sticky-cta__promo {
    grid-template-columns: minmax(0, 1fr) 26px;

    min-height: 40px;
    padding-left: 7px;
  }

  .sticky-cta__promo-label {
    font-size: 5px;
  }

  .sticky-cta__promo-value {
    font-size: 9px;
  }

  .sticky-cta__copy {
    width: 26px;
    height: 26px;
  }

  .sticky-cta__button {
    min-height: 40px;

    font-size: 7px;
  }

  .scroll-top {
    bottom: calc(64px + env(safe-area-inset-bottom));
  }
}

/* =========================================================
   12. VERY SMALL MOBILE
========================================================= */

@media (max-width: 340px) {
  .sticky-cta__inner {
    grid-template-columns:
      minmax(98px, 1.1fr)
      90px
      74px;
    gap: 4px;
  }

  .sticky-cta__brand {
    grid-template-columns: 26px minmax(0, 1fr);
  }

  .sticky-cta__logo {
    width: 26px;
    height: 26px;
  }

  .sticky-cta__title {
    font-size: 8px;
  }

  .sticky-cta__bonus {
    font-size: 7px;
  }

  .sticky-cta__promo-label {
    display: none;
  }

  .sticky-cta__promo-content {
    display: block;
  }

  .sticky-cta__promo-value {
    font-size: 8px;
  }

  .sticky-cta__button {
    font-size: 7px;
  }
}

/* =========================================================
   13. TOUCH DEVICES
========================================================= */

@media (hover: none) {
  .sticky-cta__promo:hover,
  .sticky-cta__button:hover {
    filter: none;

    transform: none;
  }

  .sticky-cta__promo:hover {
    box-shadow:
      0 7px 18px rgba(0, 0, 0, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.03);
  }

  .sticky-cta__button:hover {
    box-shadow:
      0 8px 18px rgba(0, 0, 0, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  .sticky-cta__button:hover::after {
    width: 32%;

    opacity: 0.82;
  }
}

/* =========================================================
   14. REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .sticky-cta__promo,
  .sticky-cta__copy,
  .sticky-cta__button,
  .sticky-cta__button::after {
    transition: none;
  }
}
