/* ============= Validation Messages ============= */

.validation__message-container * {
  color: #141414 !important;
}

.validation__message-popUp {
  background-color: var(--white-color) !important;
  border-radius: 15px !important;
}

.validation__message-title {
  color: #141414 !important;
}

.validation__message-content {
  color: #141414 !important;
}

.validation__message-icon * {
  color: var(--second-color) !important;
}

.validation__message-icon {
  border-color: var(--second-color) !important;
}

div:where(.swal2-icon).swal2-success .swal2-success-ring {
  border: .25em solid var(--second-color) !important;
}

div:where(.swal2-icon).swal2-success [class^=swal2-success-line] {
  background-color: var(--second-color) !important;
}

.validation__message-btn--cancel,
.validation__message-btn {
  background: linear-gradient(to right, #F58713 0%, #B63700 100%) !important;
  color: var(--white-color) !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 12px 20px !important;
  position: relative !important;
  z-index: 1 !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.validation__message-btn--cancel{
  background: #F58713 !important;
}

.validation__message-btn--cancel:hover,
.validation__message-btn:hover {
  color: var(--white-color) !important;
}

.validation__message-btn--cancel:focus,
.validation__message-btn:focus {
  border: none !important;
  overflow: none !important;
  box-shadow: none !important;
}


div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line] {
  background-color: var(--second-color) !important;
}

/* ============= Success Messages ============= */

.success__message-container {
  border-radius: 31px;
  width: 970px;
  max-width: 80%;
  height: 390px;
  padding: 0;
  background-color: var(--white-color);
}

.success__message-content {
  padding: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
}

.success__message-items {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  width: 100%;
  height: 390px;
  overflow: hidden;
  border-radius: 31px;

}

.success__message-items>div:first-child {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  overflow: hidden;
}

.success__message-items>div:first-child figure {
  width: auto;
  height: 100%;
}

.success__message-items>div:first-child figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.success__message-items>div:nth-child(2) {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 60px;
  gap: 15px;
  overflow: hidden;
}

.success__message-title {
  text-align: left;
  font-weight: bold;
  font-size: 40px;
  letter-spacing: 0px;
  color: var(--second-color);
  text-shadow: 0px 3px 6px #00000029;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}

.success__message-items>div:nth-child(2)>p {
  font-size: 16px;
  text-align: left;
}

.success__message-items>div:nth-child(2) .btn {
  margin: 0 auto;
}

.success__message-close {
  color: var(--second-color);
  border: none;
  background-color: transparent;
  box-shadow: none;
  font-size: 50px;
}

.success__message-close:hover {
  color: var(--second-color);
  box-shadow: none;
}

.success__message-close:focus {
  border: none;
  outline: none;
  box-shadow: none;
}


@media (width <=1200px) {

  .swal2-container.swal2-bottom,
  .swal2-container.swal2-center,
  .swal2-container.swal2-top {
    padding: 0;
  }

  .success__message-container {
    width: 358px;
    max-width: 90%;
    height: 678px;
    max-height: 88vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .success__message-items {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    height: 88vh;
    overflow: hidden;
    gap: 15px;
    width: 358px;
    height: 678px;
    max-height: 88vh;
  }

  .success__message-close {
    position: absolute;
    right: 0;
    top: 0;
  }

  .success__message-items {
    max-width: 100%;
  }

  .success__message-items>div:first-child {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
  }

  .success__message-items>div:first-child figure {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
  }

  .success__message-items>div:first-child figure img {
    object-position: top;
  }

  .success__message-items>div:nth-child(2) h3 {
    font-size: 28px;
  }

  .success__message-items>div:nth-child(2) {
    padding: 20px 20px;
    padding-top: 0;
    justify-content: flex-start;
  }

}

@media (width <=375px) and (height <=670px) {
  .success__message-items>div:nth-child(2) h3 {
    font-size: 22px;
  }

  .success__message-items>div:nth-child(2)>p {
    font-size: 14px;
  }
}