:root{
  --straivv-bottom-nav-h: 57px;
}

body.single-session{
  --straivv-bottom-nav-h: 64px;
}

/* Sequenced session template has no bottom nav; remove consent bottom offset there only. */
body.single-session:has(#straivvRootA){
  --straivv-bottom-nav-h: 0px;
}

#straivv-consent{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999998; /* behind bottom nav */


  background: #16191d;
  color: #f2f5f7;
  border-top: 1px solid rgba(242,245,247,.18);
  border-radius: 20px 20px 0 0;

  padding: 12px 14px calc(var(--straivv-bottom-nav-h, 0px) + env(safe-area-inset-bottom) + 14px);

  display: none;
  align-items: stretch;
  justify-content: center;

  font-size: 13px;
  box-shadow: 0 -10px 24px rgba(0,0,0,.32);
}


#straivv-consent .straivv-consent__inner{
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  overflow: visible;
}

#straivv-consent .straivv-consent__gif-wrap{
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin-top: -52px;
  margin-right: 0;
  margin-bottom: -2px;
}

#straivv-consent .straivv-consent__gif{
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}

#straivv-consent .straivv-consent__text{
  margin: 0;
  line-height: 1.45;
  color: #f2f5f7;
}

#straivv-consent .straivv-consent__links{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

#straivv-consent .straivv-consent__links a{
  color: #f2f5f7;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#straivv-consent .straivv-consent__links a:hover{
  color: #87f25b;
}

#straivv-consent .straivv-consent__actions{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

#straivv-consent button{
  border: 1px solid transparent;
  background: #87f25b;
  color: #16191d;
  padding: 11px 18px;
  min-width: 106px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

#straivv-consent button[data-reject]{
  background: #f2f5f7;
  color: #16191d;
  border-color: #f2f5f7;
}

#straivv-consent button:hover{
  opacity: 0.9;
}

@media (max-width: 420px){
  #straivv-consent{
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* =========================================================
 * STRAIVV — Sessions updates opt-in drawer
 * Reuses consent drawer style language
 * ========================================================= */
#straivv-reminder-consent{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999997;

  background: rgba(22, 25, 29, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  color: #f2f5f7;
  border-top: 1px solid rgba(242,245,247,.18);
  border-radius: 20px 20px 0 0;

  padding: 12px 14px calc(var(--straivv-bottom-nav-h, 0px) + env(safe-area-inset-bottom) + 14px);

  display: none;
  align-items: stretch;
  justify-content: center;

  font-size: 13px;
  box-shadow: 0 -10px 24px rgba(0,0,0,.32);
}

#straivv-reminder-consent .straivv-consent__inner{
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  text-align: center;
  overflow: hidden;
}

#straivv-reminder-consent .straivv-consent__gif-wrap{
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
}

#straivv-reminder-consent .straivv-consent__gif{
  width: 110px;
  height: 110px;
  object-fit: contain;
  display: block;
}

#straivv-reminder-consent .straivv-reminder-consent__title{
  margin: 0;
  color: #f2f5f7;
  font-size: 18px;
  line-height: 1.28;
  font-weight: 700;
  width: 100%;
  text-align: center;
  margin-top: -6px;
}

#straivv-reminder-consent .straivv-reminder-consent__copy{
  margin: -6px 0 0;
  width: 100%;
  max-width: 480px;
  text-align: center;
  color: #f2f5f7;
  line-height: 1.42;
  font-size: 14px;
}

#straivv-reminder-consent .straivv-reminder-consent__error{
  margin: 0;
  color: #fead34;
  font-size: 12px;
  line-height: 1.35;
}

#straivv-reminder-consent .straivv-consent__actions{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-bottom: 10px;
}

#straivv-reminder-consent button[data-updates-optin-yes],
#straivv-reminder-consent button[data-updates-optin-no]{
  border: 1px solid transparent;
  padding: 11px 22px;
  min-width: 120px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

#straivv-reminder-consent button[data-updates-optin-yes]{
  background: #87f25b;
  color: #16191d;
}

#straivv-reminder-consent button[data-updates-optin-no]{
  background: rgba(242,245,247,.14);
  border-color: rgba(242,245,247,.32);
  color: #f2f5f7;
  padding: 10px 20px;
  min-width: 108px;
  font-size: 11.7px;
}

#straivv-reminder-consent button[data-updates-optin-yes]:disabled,
#straivv-reminder-consent button[data-updates-optin-no]:disabled{
  opacity: .65;
  cursor: default;
}

#straivv-reminder-consent button[data-updates-optin-yes]:hover,
#straivv-reminder-consent button[data-updates-optin-no]:hover{
  opacity: 0.9;
}

@media (max-width: 420px){
  #straivv-reminder-consent{
    padding-left: 10px;
    padding-right: 10px;
  }

  #straivv-reminder-consent .straivv-reminder-consent__title{
    font-size: 17px;
  }
}
