/**
 * @file
 * First-visit healthcare professional confirmation modal.
 */

.teva-welcome-modal {
  position: fixed;
  z-index: 20000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 16px;
  background: rgb(0 0 0 / 50%);
}

.teva-welcome-modal[hidden],
.teva-welcome-modal__panel[hidden] {
  display: none;
}

.teva-welcome-modal__surface {
  box-sizing: border-box;
  width: min(720px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  color: #1a1a1a;
  background: #fff;
  border-radius: 20px;
  font-family: "Teva Sans", Arial, sans-serif;
}

.teva-welcome-modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  padding: 44px 24px 32px;
}

.teva-welcome-modal-focus-target {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip-path: inset(50%);
}

.teva-welcome-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 7px;
  cursor: pointer;
  background: transparent;
  border: 0;
  place-items: center;
}

.teva-welcome-modal__close span {
  display: block;
  width: 22px;
  height: 22px;
  background: url("../icons/close.svg") center / 22px 22px no-repeat;
}

.teva-welcome-modal__close:hover,
.teva-welcome-modal__close:focus-visible {
  background: #f2f4f6;
  border-radius: 50%;
}

.teva-welcome-modal__description {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
}

.teva-welcome-modal__description--question {
  gap: 12px;
}

.teva-welcome-modal__description--restriction {
  gap: 28px;
}

.teva-welcome-modal__title {
  width: 100%;
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.teva-welcome-modal__title--question {
  color: #3a9141;
  line-height: 24px;
  text-transform: uppercase;
}

.teva-welcome-modal__title--restriction {
  color: #1c3f6a;
  line-height: 26px;
}

.teva-welcome-modal__body {
  width: 100%;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
}

.teva-welcome-modal__body p {
  margin: 0;
}

.teva-welcome-modal__body--restriction {
  box-sizing: border-box;
  padding-top: 20px;
  text-align: left;
  border-top: 1px solid #bfbfbf;
}

.teva-welcome-modal__body--restriction p {
  position: relative;
  min-height: 40px;
  padding-left: 52px;
  width: auto;
  word-break: break-word;
}

.teva-welcome-modal__body--restriction p + p {
  margin-top: 16px;
}

.teva-welcome-modal__body--restriction p::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  content: "";
  background-position: center;
  background-repeat: no-repeat;
  background-size: 40px 40px;
}

.teva-welcome-modal__body--restriction p:nth-child(1)::before {
  background-image: url("../icons/patient.svg");
}

.teva-welcome-modal__body--restriction p:nth-child(2)::before {
  background-image: url("../icons/world.svg");
}

.teva-welcome-modal__body--restriction a {
  color: #3a9141;
  font-weight: 700;
  text-decoration: underline;
}

.teva-welcome-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.teva-welcome-modal__button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 20px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: normal;
  cursor: pointer;
  border: 1.5px solid #1c3f6a;
  border-radius: 999px;
}

.teva-welcome-modal__button--primary {
  color: #fff;
  background: #1c3f6a;
}

.teva-welcome-modal__button--secondary {
  color: #1c3f6a;
  background: #fff;
}

.teva-welcome-modal__button:hover {
  filter: brightness(0.9);
}

.teva-welcome-modal__close:focus-visible,
.teva-welcome-modal__button:focus-visible,
.teva-welcome-modal a:focus-visible {
  outline: 3px solid #3a9141;
  outline-offset: 2px;
}

.teva-welcome-modal-is-open {
  overflow: hidden;
}

@media (min-width: 768px) {
  .teva-welcome-modal__panel {
    padding: 40px 60px;
  }

  .teva-welcome-modal__panel.js-teva-welcome-modal-restriction {
    padding-inline: 100px;
  }

  .teva-welcome-modal__close {
    top: 15px;
    right: 15px;
  }
}
