/* Brand colours from src/resources/styles/scss/variables.scss
   Submit red #D70000, black #000000, white #ffffff, neutral #E7E7E7.
   Type is Roboto, the same face as the rest of the site. */
#cc-main {
  --cc-font-family: Roboto, "Open Sans", sans-serif;
  --cc-modal-border-radius: 16px;
  --cc-btn-border-radius: 12px;
  color: #000000;
}

#cc-main .cm,
#cc-main .pm {
  background: #ffffff;
  color: #000000;
  border: 1px solid #e7e7e7;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
}

#cc-main .cm {
  max-width: 24rem;
}

#cc-main .cm__title,
#cc-main .pm__title {
  color: #000000;
  font-weight: 700;
  /* Roboto has no emoji. These fallbacks draw the cookie on iOS and Android. */
  font-family: Roboto, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  line-height: 1.3;
}

@media (max-width: 640px) {
  #cc-main .cm__title {
    font-size: 1.15rem;
    white-space: nowrap;
  }
}

#cc-main .cm__desc,
#cc-main .pm__section-desc,
#cc-main .section__desc {
  color: #3d3d3d;
  font-size: 0.95rem;
  line-height: 1.45;
}

#cc-main .cm__desc a,
#cc-main .pm a {
  color: #d70000;
  font-weight: 600;
}

#cc-main .cm__btn,
#cc-main .pm__btn {
  min-height: 44px;
  border-radius: 12px;
  font-weight: 700;
  border-width: 2px;
}

#cc-main .cm__btn[data-role="all"],
#cc-main .pm__btn[data-role="all"] {
  background: #d70000;
  border-color: #d70000;
  color: #ffffff;
}

#cc-main .cm__btn[data-role="necessary"],
#cc-main .pm__btn[data-role="necessary"] {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}

#cc-main .cm__btn--secondary,
#cc-main .pm__btn--secondary {
  background: #ffffff;
  border-color: #000000;
  color: #000000;
}

@media (max-width: 640px) {
  #cc-main .cm {
    max-width: calc(100vw - 1.25rem);
    margin: 0.5rem;
  }

  #cc-main .cm__btns,
  #cc-main .pm__btns {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  #cc-main .cm__btn,
  #cc-main .pm__btn {
    width: 100%;
  }
}
