/* Homepage actions reuse the existing button and switch styles. */
.home-consents-actions {
  gap: 16px;
  padding-top: 32px;
}

.home-consents-actions .button {
  border: 0;
  cursor: pointer;
}

.home-consents-actions .button-text {
  text-transform: uppercase;
}

.home-consents-actions .home-consents-text-button {
  height: 40px;
  background-color: transparent;
}

.home-consents-text-button .button-text {
  color: var(--suuntoprimarycolor);
}

.home-consents-actions .button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.consent-confirmation {
  position: fixed;
  inset: auto 0 0;
  width: 90%;
  max-width: none;
  max-height: 90vh;
  max-height: 90dvh;
  margin: 0 auto;
  padding: 0 0 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 16px 16px 0 0;
  background-color: var(--commonwhite);
  color: var(--commonnearblack);
  font-family: var(--font-family-proxima_nova-regular);
}

@media (max-width: 600px) {
  .consent-confirmation {
    width: 100%;
  }
}

.consent-confirmation::backdrop {
  background-color: rgb(0 0 0 / 40%);
}

html:has(.consent-confirmation[open]) {
  overflow: hidden;
}

.consent-confirmation-handle {
  width: 32px;
  height: 4px;
  margin: 8px auto 4px;
  border-radius: 100px;
  background-color: var(--suuntocloudygrey);
}

.consent-confirmation-intro {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.consent-confirmation-intro h2,
.consent-confirmation-intro p {
  margin: 0;
}

.consent-confirmation-intro h2 {
  font-size: 18px;
}

.consent-confirmation-intro h2:focus {
  outline: none;
}

.consent-confirmation .link {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.consent-confirmation .home-consents-actions {
  padding-bottom: 0;
}
