.gradient-gold {
  background: linear-gradient(90deg, #F8CE7C 0%, #F2EBB5 51.44%, #EFD26E 100%);
}
.gradient-text {
  background-clip: text;
  /* Standard property for clipping background to text */
  -webkit-text-fill-color: transparent;
}
.popup {
  background: #0000008C;
  height: 100dvh;
}
.popup__close {
  width: 68rem;
  height: 68rem;
  top: -35rem;
  background: url(../img/popup-close.svg) no-repeat center / contain;
  right: -35rem;
}
.popup__close.icon {
  width: 68rem;
}
.popup__close:before {
  display: none;
}
.popup .uploader {
  margin-top: 20rem;
}
.popup__container.default {
  text-align: center;
  position: relative;
  border-radius: 0;
  background: linear-gradient(90deg, #8E1316 0%, #E62226 50.96%, #8B1315 100%);
  box-shadow: 0 30rem 50rem 0 #00000066;
  width: 635rem;
  padding: 50rem 108rem;
  color: var(--color-gold);
  font-size: 18rem;
  line-height: 1.1;
  font-family: var(--default-font-family);
}
.popup__container.default:before {
  content: '';
  width: calc(100% - 20rem);
  height: calc(100% - 20rem);
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  border: 1px solid var(--color-gold);
}
.check-grabber {
  position: relative;
  z-index: 5;
}
.check-grabber__scanner {
  padding-top: 70%;
  width: 70%;
  margin-inline: auto;
}
.check-grabber__title {
  font-family: var(--default-font-family);
  margin-bottom: 30rem;
  text-align: center;
  font-weight: 800;
  font-size: 50rem;
  line-height: 1;
  text-transform: uppercase;
  background: linear-gradient(90deg, #F8CE7C 0%, #F2EBB5 51.44%, #EFD26E 100%);
  background-clip: text;
  /* Standard property for clipping background to text */
  -webkit-text-fill-color: transparent;
}
.check-grabber__title + .check-grabber__sub-title {
  margin-top: -14rem;
}
.check-grabber__sub-title {
  font-family: var(--default-font-family);
  color: var(--color-gold);
  margin-top: 0;
  text-wrap: balance;
  font-size: 20rem;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 30rem;
}
.check-grabber__btn-set {
  margin-top: 20rem;
  display: flex;
  gap: 10rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: stretch;
}
.check-grabber__btn-set .field {
  width: 100%;
}
.check-grabber__btn-back-icon {
  color: currentColor;
  font-size: 16rem;
  width: 24rem;
  height: 24rem;
  background: transparent;
}
.check-grabber__hint {
  display: none;
}
.check-grabber__form {
  margin-top: 0;
  gap: 10rem;
}
.check-grabber__photos {
  gap: 12rem;
  flex-wrap: wrap;
  margin-top: 20rem;
  width: auto;
  display: flex;
  justify-content: center;
}
.check-grabber__photo {
  min-height: 64rem;
  width: 64rem;
  height: 64rem;
  border: none;
  border-radius: 8rem;
  overflow: hidden;
}
.check-grabber__photo-x {
  top: 50%;
  right: 50%;
  translate: 50% -50%;
  border-radius: 4rem;
  background: var(--color-black);
  font-size: 12rem;
  padding: 3rem;
}
.check-grabber__photo-x.icon {
  width: auto;
}
.check-grabber__fail-icon {
  display: none;
  width: 60rem;
  aspect-ratio: 1;
  background: url(../img/error.svg) no-repeat center / contain;
  border-radius: 50%;
}
.check-grabber__fail-icon:before {
  display: none;
}
.default .btn,
.check-grabber__btn-back {
  display: inline flex;
  align-items: center;
  gap: 16rem;
  height: 60rem;
  color: var(--color-black);
  border-radius: 16rem;
  padding-inline: 24rem;
  text-decoration: none;
  font-family: var(--default-font-family);
  cursor: pointer;
  font-weight: 700;
  width: 100%;
  font-size: 24rem;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  justify-content: center;
  padding-block: 0;
}
.default .btn:hover,
.check-grabber__btn-back:hover {
  opacity: 1;
  text-decoration: none;
  color: var(--color-black);
}
.default .btn:not(.-red),
.check-grabber__btn-back:not(.-red) {
  transition: --gradient-color-start 0.3s, --gradient-color-center 0.3s, --gradient-color-end 0.3s;
  /* Requires @property for smooth transition */
  background: linear-gradient(90deg, var(--gradient-color-start) 0%, var(--gradient-color-center) 51.44%, var(--gradient-color-end) 100%);
}
.default .btn:not(.-red):hover,
.check-grabber__btn-back:not(.-red):hover {
  --gradient-color-start: #F5DF9E;
  --gradient-color-center: #F2EBB5;
  --gradient-color-end: #F5DF9E;
}
.default .btn.-red,
.check-grabber__btn-back.-red {
  background: var(--color-red-dark);
  color: var(--color-gold);
}
.default .btn.-red:hover,
.check-grabber__btn-back.-red:hover {
  color: var(--color-gold);
  background: #CD1E21;
}
.default .field {
  font-family: var(--default-font-family);
}
.default .field__label {
  font-size: 14rem;
  line-height: 1.3;
  margin-bottom: 4rem;
  color: var(--color-gold);
  text-transform: none;
  padding-left: 24rem;
}
.default .field__input {
  height: 60rem;
  padding-inline: 18rem;
  border-radius: 20rem;
  background: var(--color-white);
  width: 100%;
  font-family: var(--default-font-family);
  box-shadow: none;
  border: 2rem solid var(--color-white);
  font-weight: 600;
  font-size: 20rem;
  line-height: 1;
  color: var(--color-black);
}
.default .field__input::placeholder {
  color: #999;
}
.default .field__error {
  margin-top: 4rem;
  color: var(--color-black);
  font-size: 14rem;
  line-height: 1.3;
}
.default .field__label-hint {
  color: var(--color-white);
}
.dp__input_icon {
  left: 12rem;
}
.dp__theme_light {
  --dp-calendar-header-cell-padding: 10rem;
  --dp-font-size: 16rem;
  --dp-preview-font-size: 12rem;
  --dp-time-font-size: 20rem;
  --dp-background-color: #fff;
  --dp-text-color: #212121;
  --dp-hover-color: #f3f3f3;
  --dp-hover-text-color: #212121;
  --dp-hover-icon-color: #959595;
  --dp-primary-color: #1976d2;
  --dp-primary-disabled-color: #6bacea;
  --dp-primary-text-color: #f8f5f5;
  --dp-secondary-color: #c0c4cc;
  --dp-border-color: #ddd;
  --dp-menu-border-color: #ddd;
  --dp-border-color-hover: #aaaeb7;
  --dp-disabled-color: #f6f6f6;
  --dp-scroll-bar-background: #f3f3f3;
  --dp-scroll-bar-color: #959595;
  --dp-success-color: #76d275;
  --dp-success-color-disabled: #a3d9b1;
  --dp-icon-color: var(--blue);
  --dp-danger-color: #ff6f60;
  --dp-marker-color: #ff6f60;
  --dp-tooltip-color: #fafafa;
  --dp-disabled-color-text: #8e8e8e;
  --dp-highlight-color: rgba(25, 118, 210, 0.1);
}
.dp__action_select {
  background: var(--dp-primary-color) !important;
  color: var(--dp-primary-text-color);
}
.field:has(.dp--menu-wrapper) {
  position: relative;
  z-index: 999;
}
.popup::-webkit-scrollbar-thumb {
  background: var(--color-red);
}
.popup::-webkit-scrollbar-track {
  background: var(--color-gold);
}
@media (width < 1024px) {
  .popup__container.default {
    width: 340rem;
    height: auto;
    padding: 30rem;
    box-shadow: 0 2rem 23rem 0 #FFBF0066;
    border-radius: 0;
  }
  .popup__close {
    width: 44rem;
    height: 44rem;
    top: 0;
    right: 0;
  }
  .popup__close.icon {
    width: 44rem;
  }
  .check-grabber__scanner {
    padding-top: 70%;
    width: 70%;
  }
  .check-grabber__btn-set {
    flex-direction: column;
    margin-top: 20rem!important;
  }
  .check-grabber .btn.w-100 {
    width: 100%;
  }
  .dp__theme_light {
    --dp-calendar-header-cell-padding: 10rem;
    --dp-font-size: 16rem;
    --dp-preview-font-size: 12rem;
    --dp-time-font-size: 20rem;
  }
  .default .btn,
  .check-grabber__btn-back {
    gap: 10rem;
    height: 45rem;
    border-radius: 12rem;
    padding-inline: 12rem;
    font-size: 17rem;
  }
  .default .field__input {
    height: 40rem;
    border-radius: 12rem;
    font-size: 17rem;
  }
}
