/* ========================================
   Button — Base
======================================== */

.cta-button a,
.cta-button button,
input[type="submit"].cta-button,
.access-page__form-confirmation a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 11px 22px;

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

  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;

  text-decoration: none;
  white-space: nowrap;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}


/* Arrow */

.cta-button a::after,
.cta-button button::after {
  content: "";
  display: block;
  flex-shrink: 0;

  width: 20px;
  height: 20px;

  background-color: currentColor;

  -webkit-mask: url("../../images/icons/arrow-right.svg") center / contain no-repeat;
  mask: url("../../images/icons/arrow-right.svg") center / contain no-repeat;
}


/* ========================================
   Light
======================================== */

.cta-button--light a,
.cta-button--light button,
footer input[type="submit"].cta-button.cta-button--dark {
  background-color: #FFFFFF;
  color: var(--color-black);
}

.cta-button--light a:hover,
.cta-button--light button:hover,
footer input[type="submit"].cta-button.cta-button--dark:hover {
  background-color: #F2F2F2;
  color: var(--color-black);

}

footer input[type="submit"].cta-button.cta-button--dark {
  background-blend-mode: exclusion;
  min-height: 44px;
}

footer input[type="submit"].cta-button.cta-button--dark:hover {
  box-shadow: 0 0 0 2px var(--color-indigo), 0 0 0 4px var(--color-white-main);
}

/* ========================================
   Dark
======================================== */

.cta-button--dark a,
.cta-button--dark button,
input[type="submit"].cta-button--dark,

input[type="submit"].webform-button--next,
.access-page__form-confirmation a {
  background-color: var(--color-black);
  color: #FFFFFF;
  transition: all .3s linear;
}

.cta-button--dark a:hover,
.cta-button--dark button:hover,
input[type="submit"].cta-button--dark:hover,

input[type="submit"].webform-button--next:hover,
.access-page__form-confirmation a:hover {
  background-color: var(--color-black);
  box-shadow: 0 0 0 2px var(--color-white-main), 0 0 0 4px var(--color-indigo);
  /* background-color: #343640;
  color: #FFFFFF; */
}

.cta-button--dark a:focus,
.cta-button--dark a:active,

.cta-button--dark button:focus,
.cta-button--dark button:active,

input[type="submit"].cta-button--dark:focus,
input[type="submit"].cta-button--dark:active,

input[type="submit"].webform-button--next:focus,
input[type="submit"].webform-button--next:active,

.access-page__form-confirmation a:focus,
.access-page__form-confirmation a:active {
  box-shadow: 0px 4px 4px 0px #FFFFFF40 inset;
}

input[type="submit"].cta-button--dark,
input[type="submit"].webform-button--next {
  padding: 12px 48px 12px 24px;
  background-image: url("../../images/icons/arrow-right.svg");
  background-position: calc(100% - 24px) center;;
  background-size: 20px;
  background-repeat: no-repeat;

  font-size: 16px;
  line-height: 1.1;
}

/* ========================================
   Outline
======================================== */

.cta-button--outline a,
.cta-button--outline button,
input[type="submit"].webform-button--previous {
  /* padding-block: 14px; */
  background-color: var(--color-white-secondary);
  border-color: var(--color-black);
  color: var(--color-black);
  transition: all .3s linear;
}

.cta-button--outline a:hover,
.cta-button--outline button:hover,
input[type="submit"].webform-button--previous:hover {
  box-shadow: 0 0 0 2px var(--color-white-main), 0 0 0 4px var(--color-indigo);
}

.cta-button--outline a:focus,
.cta-button--outline a:active,

.cta-button--outline button:focus,
.cta-button--outline button:active,

input[type="submit"].webform-button--previous:focus,
input[type="submit"].webform-button--previous:active {
  color: #FFFFFF;
  background-color: var(--color-black);
  box-shadow: 0px 4px 4px 0px #FFFFFF40 inset;
}

input[type="submit"].webform-button--previous {
  font-size: 16px;
  line-height: 1;
  padding: 12px 22px;
  font-weight: 500;
}


/* ========================================
  Download
======================================== */
.cta-button--dwnld a::before, 
.cta-button--dwnld button::before,
/* case for the link with Download icon */
.cta-button--link.cta-button--noarrow.cta-button--dwnld a::after,
.cta-button--link.cta-button--noarrow.cta-button--dwnld button::after {
  content: "";
  display: block;
  flex-shrink: 0;

  width: 20px;
  height: 20px;

  background-color: currentColor;

  -webkit-mask: url("../../images/icons/document-download.svg") center / contain no-repeat;
  mask: url("../../images/icons/document-download.svg") center / contain no-repeat;
}
.cta-button--link.cta-button--noarrow.cta-button--dwnld a,
.cta-button--link.cta-button--noarrow.cta-button--dwnld button {
  flex-direction: row-reverse;
}


/* ========================================
   Link
======================================== */

.cta-button--link a,
.cta-button--link button {
  border-radius: 4px;
  padding: 6px 8px;
  background: transparent;
  color: var(--color-black);
  position: relative;

  border: none;
}

.cta-button--link a::before,
.cta-button--link button::before {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background-color: var(--color-black);
  transition: width .2s ease;
  mask: unset;

  position: absolute;
  left: 8px;
  bottom: 4px;
}

.cta-button--link a:hover,
.cta-button--link button:hover {
  background-color: var(--color-neutral-100);
}

.cta-button--link a:focus,
.cta-button--link a:active,

.cta-button--link button:focus,
.cta-button--link button:active {
  background: transparent;
}

.cta-button--link a:focus::before,
.cta-button--link a:active::before,

.cta-button--link button:focus::before,
.cta-button--link button:active::before{
  width: calc( 100% - 44px);
}

/* Light link */
.cta-button--link-light a,
.cta-button--link-light a:focus,
.cta-button--link-light a:active,

.cta-button--link-light button,
.cta-button--link-light button:focus,
.cta-button--link-light button:active {
  color: var(--color-white-main);
}

.cta-button--link-light a:hover,
.cta-button--link-light button:hover {
  color: var(--color-black);
}

.cta-button--link-light a::before,
.cta-button--link-light button::before {
  background-color: var(--color-white-main);
}

.cta-button--link-light a:hover::before,
.cta-button--link-light button:hover::before {
  background-color: var(--color-black);
}


/* ========================================
   No arrow
======================================== */
.cta-button--noarrow a::after,
.cta-button--noarrow button::after,
.access-page__form-confirmation a::after {
  display: none;
}

.cta-button--link.cta-button--noarrow a:focus::before,
.cta-button--link.cta-button--noarrow a:active::before,

.cta-button--link.cta-button--noarrow button:focus::before,
.cta-button--link.cta-button--noarrow button:active::before{
  width: calc( 100% - 16px);
}





/* ========================================
   Accessibility
======================================== */

.cta-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}


/* ========================================
   Disabled button
======================================== */
.btn.cta-button:disabled,
.cta-button:disabled,
.cta-button[aria-disabled="true"],
.cta-button:hover:disabled,
.cta-button[aria-disabled="true"]:hover,
.cta-button:focus:disabled,
.cta-button[aria-disabled="true"]:focus,
.cta-button:active:disabled,
.cta-button[aria-disabled="true"]:active {
  opacity: 1;
  background-color: var(--color-neutral-200);
  color: var(--color-neutral-400);
  cursor: not-allowed;
}