/**
 * Risk Tolerance Quiz - Invite Bar Styles
 * Ported from sportsshock-risk-profile-popup prototype.
 */

:root {
  --ss-header-background: #ffffff;
  --ss-header-text: #000101;
  --ss-page-background: #ffffff;
  --ss-text: #404040;
  --ss-primary: #2aa2e4;
  --ss-secondary: #0059bf;
  --ss-cta-red: #d62828;
  --ss-cta-text: #ffffff;
}

.ss-risk-popup,
.ss-risk-popup * {
  box-sizing: border-box;
}

.ss-risk-popup {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 36px; /* Third column for close button */
  align-items: center;
  gap: 16px;
  width: min(100% - 32px, 1120px);
  margin: 14px auto 0;
  padding: 14px 14px 14px 20px;
  color: var(--ss-text);
  background: var(--ss-header-background);
  border: 1px solid color-mix(in srgb, var(--ss-secondary) 28%, transparent);
  box-shadow: 0 9px 20px color-mix(in srgb, var(--ss-header-text) 12%, transparent);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 16px !important;
}

.ss-risk-popup__copy h2 {
  margin: 0 0 4px !important;
  color: var(--ss-header-text);
  font-family: inherit;
  font-size: 18px !important; /* 1.125rem = 18px */
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

.ss-risk-popup__copy p {
  max-width: 760px;
  margin: 0 !important;
  font-size: 15px !important; /* .9375rem = 15px */
  line-height: 1.45 !important;
  font-weight: 400 !important;
}

.ss-risk-popup__cta,
.ss-risk-popup__close {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.ss-risk-popup__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  color: var(--ss-cta-text) !important;
  background: var(--ss-cta-red) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  white-space: nowrap;
  text-decoration: none !important;
}

.ss-risk-popup__cta:hover,
.ss-risk-popup__cta:focus-visible {
  background: color-mix(in srgb, var(--ss-cta-red) 86%, var(--ss-header-text)) !important;
  color: var(--ss-cta-text) !important;
}

.ss-risk-popup__close {
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  justify-self: end;
  width: 28px;
  height: 28px;
  padding: 0;
  color: var(--ss-text);
  background: transparent;
  font-size: 20px !important; /* 1.25rem = 20px */
  line-height: 1;
}

.ss-risk-popup__close:hover,
.ss-risk-popup__close:focus-visible {
  color: var(--ss-secondary);
}

.ss-risk-popup.is-dismissed {
  display: none !important;
}

@media (max-width: 640px) {
  .ss-risk-popup {
    display: block;
    width: 100%;
    margin-top: 0;
    padding: 16px 42px 14px 20px;
    border-right: 0;
    border-left: 0;
    box-shadow: none;
  }

  .ss-risk-popup__copy h2 {
    font-size: 17px !important; /* 1.0625rem = 17px */
  }

  .ss-risk-popup__cta {
    width: 100%;
    margin-top: 12px;
  }

  .ss-risk-popup__close {
    position: absolute;
    top: 10px;
    right: 10px;
  }
}
