.red {
  color: #F33A5B;
}
.order_product_modal input.input-error {
  border-color: #F33A5B;
}
.error-text {
  color: #F33A5B;
  margin-top: 5px;
  font-weight: 300;
  font-size: 14px;
  line-height: 18px;
}
#order_product.order_product_modal .modal-dialog {
  width: 570px;
}
.order_product_modal .modal_content {
  padding: 45px 50px 50px 50px;
}
.order_product_modal .modal_title {
  text-transform: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.order_product_modal .modal_title span {
  font-size: 24px;
  line-height: 30px;
  color: #39393B;
  text-transform: uppercase;
}
.order_product_modal .modal_title span.step {
  font-size: 18px;
  line-height: 24px;
  color: #553285;
}
.order_product_modal .modal_content .close {
  margin-top: 0;
  top: 20px;
  right: 20px;
}
.order_product_modal .modal_content .close path {
  stroke: #39393B;
}
.order_product_modal label {
  font-weight: 300;
  font-size: 14px;
  line-height: 18px;
  margin-bottom: 10px;
}
.order_product_modal input {
  border: 2px solid #e7e4ed;
  border-radius: 10px;
  padding: 0 15px;
  background: #ffffff;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.2;
  height: 50px;
}
.line_blck {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}
.line_blck .input_blck {
  width: 100%;
}
.line_blck.line_flex .input_blck {
  width: 48%;
}
.line_blck .input_blck_date {
  position: relative;
}
.line_blck .input_blck_date .date_button {
  position: absolute;
  bottom: 15px;
  right: 15px;
}
.line_blck .input_flex {
  display: flex;
  align-items: center;
  gap: 20px;
}
.line_blck #order_matquan {
  font-size: 18px;
  line-height: 24px;
  font-weight: 300;
}
.order_product_btn {
  display: flex;
  gap: 20px;
}
.order_product_btn .left {
  background-color: #f5f5fa;
  color: #553285;
  padding: 0 20px !important;
  font-weight: 300;
  font-size: 18px;
  height: 50px;
  border: none;
  border-radius: 8px;
  width: 48%;
}
.order_product_btn .right {
  width: 48%;
  color: #fff;
  font-weight: 300;
}
.order_product_modal .form-step:first-child .order_product_btn {
  margin-top: 40px;
}
.order_product_modal .dropzone {
  position: relative;
}
.order_product_modal .file-upload-area {
  border: 1.3px dashed #ccc;
  font-weight: 300;
  padding: 25px 15px;
  text-align: center;
  border-radius: 10px;
  cursor: pointer;
  transition: .2s;
}
.order_product_modal .file-upload-area.active {
  border-color: #553285;
  background: #f5f5fa;
}
.order_product_modal .file_input {
  position: absolute;
  bottom: 0;
  height: 100px;
  z-index: 1;
  opacity: 0;
  cursor: pointer;
}
.order_product_modal .uploaded-files {
  margin-top: 10px;
}
.order_product_modal .uploaded-files .file-item {
  padding: 10px;
  margin-bottom: 5px;
  background: #F5F5FA;
  border-radius: 8px;
  display: flex;
  align-items: center;
}
.order_product_modal .uploaded-files .file-status {
  margin-right: 10px;
}
.order_product_modal .uploaded-files .spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #553285;
  border-top: 3px solid #F5F5FA;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.order_product_modal .uploaded-files .remove-file {
  margin-left: auto;
  border: none;
  background: transparent;
}
.order_product_modal .upload-title {
  font-size: 18px;
  line-height: 24px;
  margin-bottom: 5px;
  color: #5B5B5D;
}
.order_product_modal .upload-title .txt_info {
  color: #553285;
  text-decoration: underline;
}
.order_product_modal .upload-sub {
  color: #9F9FA2;
  line-height: 18px;
  font-size: 14px;
}
.order_product_modal .order_textarea {
  margin-top: 20px;
  margin-bottom: 70px;
}
.order_product_modal .comment_txt {
  font-weight: 300;
  font-size: 18px;
  line-height: 24px;
  color: #39393B;
  border: 1.3px solid #ccc;
  padding: 15px;
  border-radius: 8px;
}
.order_product_modal .textarea-counter {
  font-weight: 300;
  font-size: 14px;
  line-height: 18px;
  float: right;
  color: #9F9FA2;
  margin-top: 5px;
}
.order_product_modal .desk_caller_check .custom_checkbox {
  position: relative;
  margin-bottom: 0;
}
.order_product_modal .desk_caller_check input {
  position: absolute;
  z-index: -1;
  opacity: 0;
  margin: 10px 0 0 20px;
  height: auto;
}
.order_product_modal .desk_caller_check span {
  position: relative;
  padding: 0 0 0 40px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 300;
  line-height: 18px;
  display: block;
}
.order_product_modal .desk_caller_check span a {
  color: #553285;
}
.order_product_modal .desk_caller_check span::after {
  content: "";
  position: absolute;
  top: 0px;
  left: 0px;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #f7f7fb;
  background-position: center center;
  transition: 0.2s;
  border: 1.5px solid var(--Primary, #553285);
}
.order_product_modal .desk_caller_check input:checked + span::after {
	/* background: url(/wp-content/uploads/2024/05/check.svg) no-repeat center center/12px auto; */
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='6' viewBox='0 0 9 6' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M7.40028 1L3.40028 5L1 2.59972' fill='%23553285'/%3E%3Cpath d='M7.40028 1L3.40028 5L1 2.59972' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
	no-repeat center center/10px auto;
	background-color: var(--Primary, #553285);
}

.order_success {
  margin-top: -30px;
}
.order_success .success_svg {
  margin-bottom: 25px;
}
.order_success .success_txt {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.order_success .success_title {
  font-size: 24px;
  font-weight: 300;
  line-height: 30px;
  margin-bottom: 5px;
}
.order_success .success_info {
  font-size: 18px;
  text-align: center;
  font-weight: 300;
  line-height: 24px;
  width: 65%;
}


@media (max-width: 991px) {
  #order_product.order_product_modal .modal-dialog {
    width: 100%;
    margin: 0;
    max-width: 100%;
    height: 100%;
  }
  .line_blck #order_matquan {
    font-size: 14px;
    line-height: 18px;
  }
  .order_product_modal .modal_content {
    border-radius: 0;
    height: auto;
    padding: 45px 20px 25px 20px;
    min-height: 100%;
  }
  .order_product_modal .modal_title {
    flex-direction: column;
  }
  .order_product_modal .modal_title span,
  .order_product_modal .modal_title span.step {
    font-size: 18px;
    line-height: 24px;
  }
  .line_blck {
    margin-bottom: 20px;
  }
  .line_blck.line_flex {
    flex-direction: column;
  }
  .line_blck.line_flex .input_blck {
    width: 100%;
    margin-bottom: 20px;
  }
  .line_blck.line_flex .input_blck:last-child {
    margin-bottom: 0;
  }
  .order_product_modal input {
    height: 45px;
    font-size: 14px;
  }
  .line_blck .input_blck_date .date_button {
    bottom: 11px;
  }
  .order_product_modal .form-step:first-child .order_product_btn .left {
    display: none;
  }
  .order_product_modal .form-step:first-child .order_product_btn .right {
    width: 100%;
  }
  .order_product_modal .upload-title {
    font-size: 14px;
    line-height: 18px;
  }
  .order_product_modal .uploaded-files {
    font-size: 12px;
  }
  .order_product_modal .comment_txt {
    font-size: 14px;
    line-height: 18px;
  }
  .order_product_modal .form-step:nth-child(2) {
    height: auto;
    display: flex;
    flex-direction: column;
  }
  .order_product_modal .form-step:nth-child(2) .div_last:nth-last-child(-n+2) {
    margin-top: auto;
  }
  .order_success {
    margin-top: -30px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
  }
  .order_success .success_svg {
    margin-bottom: 20px;
  }
  .order_success .success_title {
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
  }
  .order_success .success_info {
    font-size: 14px;
    line-height: 18px;
  }
  .order_product_btn {
    flex-direction: column-reverse;
    gap: 10px;
  }
  .order_product_btn .left,
  .order_product_btn .right {
    width: 100%;
    height: 42px;
    font-size: 14px;
    line-height: 18px;
  }
}

/* Календарь */
.flatpickr-calendar .flatpickr-monthDropdown-months {
  display: inline-block !important;
  color: #39393B;
  font-weight: 400;
}
.flatpickr-calendar .nice-select.flatpickr-monthDropdown-months {
  display: none !important;
}
.flatpickr-calendar .flatpickr-weekdays {
  display: none;
}
/* ----- Размеры календаря ----- */
.flatpickr-calendar {
  width: 200px !important;
  padding: 10px 15px;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
/* ----- Заголовок (месяц + год) ----- */
.flatpickr-months {
  padding: 4px 0 6px;
}
.flatpickr-month {
  width: 100%;
}
.flatpickr-current-month {
  font-size: 15px;
  font-weight: 500;
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 0;
  justify-content: space-between;
  width: 100%;
  left: auto;
  height: 30px;
  padding-bottom: 5px;
  border-bottom: 1px solid #E7E4ED;
}
/* ----- Стрелки ----- */
.flatpickr-prev-month,
.flatpickr-next-month {
  top: 6px;
}
.flatpickr-prev-month svg,
.flatpickr-next-month svg {
  display: none;
}
.arrow-left,
.arrow-right {
  width: 10px;
  height: 10px;
  display: block;
  border-top: 2px solid #666;
  border-right: 2px solid #666;
  margin-top: 6px;
}
.arrow-left {
  transform: rotate(-135deg);
}
.arrow-right {
  transform: rotate(45deg);
}
/* ----- Сетка календаря ----- */
.flatpickr-innerContainer {
  padding: 2px 0;
}
.flatpickr-days {
  width: 100%;
}
/* ----- Сегодня ----- */
.flatpickr-day.today {
  background: rgba(121,85,255,0.1);
  color: #7A50E8;
}
/* ----- Выбранная дата ----- */
.flatpickr-day.selected {
  background: #553285 !important;
  color: #fff !important;
}
/* ----- Ховер ----- */
.flatpickr-day:hover {
  background: rgba(0,0,0,0.07);
}
/* ----- Воскресенья – красные ----- */
.flatpickr-day:nth-child(7n),
.flatpickr-day:nth-child(7n-1),
.flatpickr-day.weekend {
  color: #D9534F;
}
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: transparent;
  pointer-events: none;
}
.dayContainer {
  width: 170px;
  min-width: 170px;
  max-width: 170px;
}
.flatpickr-day {
  width: 24px;
  height: 24px;
  margin: 0;
  line-height: 18px;
  font-size: 14px;
  border: none;
  font-weight: 300;
  border-radius: 50%;
  transition: 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flatpickr-next-month,
.flatpickr-prev-month {
  display: none;
  align-items: center;
  justify-content: center;
}
.flatpickr-next-month span,
.flatpickr-prev-month span {
  margin: 0;
}
.flatpickr-current-month .flatpickr-monthDropdown-months {
  width: 70px;
  padding: 0;
}
.flatpickr-current-month .numInputWrapper {
  font-size: 14px;
  line-height: 16px;
  width: 55px;
  display: flex;
  background: transparent;
  height: 25px;
}
.numInputWrapper span {
  opacity: 1;
  border: none;
  height: 40%;
}
.numInputWrapper span:after {
  border: none !important;
  width: 10px;
  height: 5px;
}
.flatpickr-current-month .numInputWrapper span.arrowUp:after {
  background: url('../img/Pathtop.svg') no-repeat;
}
.flatpickr-current-month .numInputWrapper span.arrowDown:after {
  background: url('../img/Pathbottom.svg') no-repeat;
}
.flatpickr-current-month input.cur-year {
  color: #39393B;
  font-weight: 400;
}
