@media (max-width: 640px) {
  .site-header {
    background: rgba(15, 18, 30, 0.6);
    height: 64px;
    padding: 8px 20px;
  }

  .custom-logo-link {
    min-width: auto;
  }

  .site-additional {
    display: flex;
    align-items: center;
  }

  .kae-head-container {
    background-image: url(/wp-content/uploads/2024/01/kazairexpress-head-mobile-447x1024.webp);
  }

  #kae_main_form,
  .kae-reviews-wrapper {
    min-width: auto;
    width: 100%;
    overflow-x: auto;
  }

  #kae_main_form {
    overflow-x: hidden;
  }

  /* 
  ::-webkit-scrollbar {
    width: 0;  ширина всей полосы прокрутки 
  } */

  #kae_main_form input[type="text"],
  #kae_main_form input[type="number"] {
    max-width: calc(100% - 24px);
    font-size: 16px;
    margin-left: 0;
    flex: auto;
  }

  .kae-head {
    padding: 80px 19px 24px;
  }

  h1.kae-head-title {
    font-size: 30px;
    line-height: 40px;
  }

  .kae-create-form {
    padding: 16px 24px;
    font-size: 14px;
  }

  .kae-from-to-wrapper {
    gap: 16px;
    flex-direction: column;
    align-items: baseline;
  }
  .kae-from,
  .kae-to {
    max-width: 100%;
    width: 100%;
  }

  .kae-box-fields {
    column-gap: 16px;
    flex-wrap: wrap;
  }

  #kae_order_form .kae-box-fields {
    gap: 8px;
  }

  .kae-box-fields .kae-input-wrap,
  #kae_order_form .kae-box-wrapper .kae-input-wrap {
    max-width: calc(50% - 8px);
  }

  #kae_order_form .kae-box-wrapper .kae-weight,
  #kae_order_form .kae-box-wrapper .kae-length {
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
  }

  .kae-create-measurement-wrapper {
    flex-wrap: wrap;
    align-items: baseline;
  }
  .kae-create-measurement-title {
    padding-bottom: 8px;
  }
  .kae-create-measurement-metric,
  .kae-create-measurement-imperial {
    flex: 0 0 50%;
    font-size: 12px; /*   изменить на 14! ! ! !  */
  }

  #kae_place_order,
  #kae_more_questions,
  #kae_less_questions {
    width: 100%;
    text-align: center;
  }

  .kae-create-footer {
    display: flex;
    flex-direction: column-reverse;
    font-size: 18px;
  }

  .kae_create_amount {
    font-size: 30px;
  }

  .kae-create-amount {
    padding-left: 0;
  }

  #kae_about .kae-section-title {
    padding: 0;
    padding-bottom: 16px;
    font-size: 32px;
    line-height: 40px;
  }

  .kae-about {
    padding: 44px 19px 20px;
  }

  .kae-about-logo {
    padding: 52px 24px;
    background-image: url(/wp-content/uploads/2024/01/kazairexpress-about-us-300x138.webp);
    border-radius: 16px;
    background-size: cover;
  }

  .kae-about-text {
    padding: 24px 0 24px;
  }

  .kae-process {
    padding: 19px;
  }

  .kae-section-title,
  .kae-why .kae-section-title {
    max-width: 100%;
    font-size: 32px;
    line-height: 40px;
    padding-bottom: 24px;
  }

  .kae-process-body {
    flex-direction: column;
    padding-bottom: 40px;
  }

  .kae-process-item {
    width: 100%;
    height: 80px;
    min-height: auto;
  }

  .kae-process-item .kae-process-number {
    text-align: center;
  }
  .kae-process-active {
    width: 100%;
    height: auto;
    min-height: 200px;
  }
  .kae-process-active .kae-process-number {
    text-align: left;
  }

  .kae-process-item-0 {
    border-radius: 8px 8px 0 0;
  }

  .kae-process-item-5 {
    border-radius: 0 0 8px 8px;
  }

  .kae-why-body {
    gap: 8px;
  }
  .kae-why {
    padding: 40px 19px;
  }

  .kae-why-item {
    flex-direction: column;
    width: calc(50% - 4px);
    padding: 0;
  }

  .kae-why-icon-wrapper {
    width: 48px;
    height: 48px;
  }

  .kae-why-icon-wrapper img {
    max-height: 30px;
    max-width: 38px;
  }

  .kae-why-title {
    font-size: 18px;
    line-height: 24px;
    padding: 11px 0 4px;
  }

  .kae-why-text {
    padding: 0;
  }

  .kae-why-description {
    font-size: 10px;
    line-height: 14px;
  }

  .kae-question {
    padding: 64px 19px;
  }

  .kae-question-left {
    display: none;
  }

  .kae-question-body {
    padding: 0;
    margin: 0 auto;
  }

  .kae-question-text-title {
    font-size: 16px;
    flex: 1 0 78%;
  }

  .kae-question-paragraph {
    padding-bottom: 16px;
  }

  .kae-question-buttons {
    padding-top: 24px;
  }

  .kae-contacts-container {
    padding: 40px 19px;
  }
  .kae-contacts {
    background-image: url(/wp-content/uploads/2024/01/kazairexpress-contacts-mobile-300x191.webp);
  }

  .kae-contacts-title {
    font-size: 32px;
    line-height: 40px;
    padding-bottom: 24px;
  }

  .kae-contacts-body {
    align-items: baseline;
    flex-direction: column;
    font-size: 18px;
    line-height: 24px;
  }

  .kae-reviews {
    padding: 64px 19px;
    overflow: hidden;
  }

  .kae-reviews-title {
    font-size: 32px;
    line-height: 40px;
    padding: 0;
  }

  .kae-reviews-body {
    /* margin: auto -312px; */
    margin: auto -19px;
  }

  .kae-reviews-wrapper {
    gap: 8px;
    padding: 21px 0 16px;
  }

  .kae-review {
    width: 320px;
    min-width: 320px;
    flex: auto;
    padding: 24px 16px;
    max-height: 400px;
    overflow: hidden;
  }
  .kae-review:first-of-type {
    /* margin-left: 8px; */
    margin-left: calc(50% - 160px);
  }

  .kae-review:last-of-type {
    margin-right: 8px;
  }

  .kae-reviews-wrapper::after,
  .kae-reviews-next-previous {
    display: none;
  }

  .kae-footer {
    padding: 36px 19px;
    align-items: center;
    gap: 40px;
    gap: 8px 16px;
    flex-wrap: wrap;
    flex-direction: row;
  }
  .kae-box-wrapper {
    gap: 8px;
  }
  .kae-box-delete {
    align-self: flex-end;
  }

  h1.kae-head-title,
  .kae-head-description {
    max-width: 100%;
  }

  .kae-about-media {
    flex-direction: column;
  }

  .kae-section-title {
    padding-left: 0;
  }
  .kae-review::after {
    content: none;
  }

  .kae-footer-menu {
    flex: 100%;
  }
  .kae-footer #menu-ru,
  .kae-footer #menu-en {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: flex-start;
    gap: 16px;
  }
  .kae-footer #menu-ru li.menu-item:not(:last-of-type),
  .kae-footer #menu-en li.menu-item:not(:last-of-type) {
    padding: 0;
  }

  .kae-footer-services,
  .kae-search-order {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .kae-footer-logo {
    max-width: 40%;
  }

  .kae-footer-labels {
    max-width: 55%;
    gap: 4px;
  }

  .kae-footer-label {
    height: auto;
  }

  .kae-footer-label img {
    max-height: 35px;
  }

  .kae-search-form {
    padding: 16px 24px;
  }

  .kae-search-order .kae-input-wrap {
    flex: 100%;
  }

  .kae-order-body {
    gap: 32px;
  }
  .kae-add-review-title,
  .kae-add-review-title {
    padding-bottom: 16px;
  }

  #kae_order_form,
  #kae_order_search_form {
    margin: 0;
    max-width: 420px;
  }

  #kae_order_form {
    max-width: auto;
    min-width: auto;
    margin-bottom: 0;
  }

  /* - - - - pop-up windows mobile styles - - - - - */

  .kae-add-review-content {
    width: 85%;
    padding: 24px;
    overflow-y: auto;
    max-height: calc(100% - 20px);
    max-width: 450px;
  }

  .kae-invoice-wrapper {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    padding: 24px;
    overflow-y: auto;
  }
  .kae-payment-wrapper {
    height: 100%;
    width: 100%;
  }
  .kae-payment-content {
    margin: 0 auto;
    padding: 16px 24px 24px;
    gap: 0;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  #kae_payment_iframe {
    min-width: auto;
    margin: 0;
  }

  .kae-payment-data {
    font-size: 14px;
    gap: 8px;
  }

  .kae-form-title {
    font-size: 24px;
    line-height: 32px;
  }

  .kae-invoice-title {
    padding-bottom: 8px;
    gap: 8px;
    align-items: flex-start;
  }

  .kae-invoice-id-wrap {
    font-size: 22px;
  }

  .kae-invoice-status-wrap {
    font-size: 20px;
  }

  .kae-invoice-message {
    padding: 8px 0;
  }

  .kae-invoice-form {
    padding-right: 0;
    padding-top: 8px;
  }

  .kae-invoice-form input {
    font-size: 16px;
  }
  .kae-invoice .kae-invoice-label {
    font-size: 14px;
  }

  .kae-shipping .kae-input-wrap.kae-from-country,
  .kae-shipping .kae-input-wrap.kae-to-country,
  .kae-shipping .kae-input-wrap.kae-from-address,
  .kae-shipping .kae-input-wrap.kae-to-address,
  .kae-input-wrap.kae-from-name,
  .kae-input-wrap.kae-from-phone,
  .kae-invoice-date,
  .kae-input-wrap.kae-to-name,
  .kae-input-wrap.kae-to-phone {
    flex: auto;
  }

  .kae-shipping .kae-input-wrap.kae-from-address,
  .kae-shipping .kae-input-wrap.kae-to-address,
  .kae-input-wrap.kae-from-name,
  .kae-input-wrap.kae-to-name,
  .kae-input-wrap.kae-from-phone,
  .kae-input-wrap.kae-to-phone {
    flex-wrap: wrap;
    justify-content: flex-start;
    row-gap: 2px;
  }

  .kae-sender,
  .kae-invoice-date,
  .kae-item-wrapper,
  .kae-item-fields,
  .kae-add-review-order,
  .kae-invoice-total,
  .kae-create-boxes,
  .kae-order-body,
  .kae-pickup,
  .kae-shipment-total {
    flex-wrap: wrap;
  }

  .kae-pickup-from {
    max-width: 82px;
  }

  .kae-invoice select {
    padding: 5px 10px;
    font-size: 14px;
    font-weight: 400;
  }

  .kae-sender-header {
    flex-direction: column;
    align-items: baseline;
  }

  .kae-sender-body,
  .kae-from-body,
  .kae-to-body {
    flex-direction: column;
  }

  .iti--show-selected-dial-code .iti__selected-flag {
    font-size: 14px;
    padding-right: 4px;
  }

  .kae-sender-body .kae-input-wrap,
  .kae-shipping .kae-input-wrap,
  .kae-to-body .kae-input-wrap,
  .kae-pickup-time,
  .kae-invoice .kae-input-wrap .iti {
    width: 100%;
  }

  .kae-invoice-date {
    justify-content: flex-start;
  }
  .kae-sender-email,
  .kae-sender-phone,
  .kae-from-name,
  .kae-from-phone,
  .kae-to-name,
  .kae-to-phone,
  .kae-item-qty,
  .kae-item-cost {
    width: calc(50% - 8px);
  }

  .kae-shipping {
    flex-direction: column;
  }

  .kae-invoice-tooltip-content {
    right: 0;
    width: 100%;
    top: 30px;
    font-size: 12px;
  }

  .kae-invoice .kae-input-wrap .iti {
    flex: 1 1 100%;
  }

  .kae-item-wrapper {
    justify-content: flex-start;
    gap: 8px;
  }

  .kae-item-wrapper:not(:last-of-type) {
    border-bottom: 1px solid rgb(15 18 30 / 16%);
  }

  .kae-item-fields {
    gap: 16px;
    justify-content: flex-start;
  }

  .kae-invoice-items-head {
    gap: 4px;
  }

  .kae-invoice-tooltip-icon {
    min-width: 24px;
  }

  .kae-items-head {
    display: none;
  }

  .kae-items-footer {
    flex-direction: column;
    gap: 8px;
  }

  .kae-item-labels {
    display: block;
    font-size: 14px;
  }

  .kae-item-name {
    min-width: 100%;
  }

  .kae-item-qty {
    flex: 0 1 100px;
  }

  .kae-item-cost {
    flex: 1 1 auto;
  }

  .kae-item-amount-label {
    line-height: 32px;
    font-size: 16px;
    font-weight: 700;
  }

  .kae-invoice-item-amount {
    max-width: fit-content;
    min-width: 0;
  }

  .kae-item-amount-wrapper {
    padding-left: 0;
    flex: 0;
    flex-direction: row;
    align-items: center;
  }

  input#kae_insurance + label::before {
    align-self: flex-start;
    margin-top: 5px;
  }

  .kae-invoice-footer,
  .kae-review-footer {
    flex-direction: column-reverse;
    padding: 0 0 24px;
    gap: 16px;
  }

  .kae-add-review-body {
    padding: 0;
  }

  .kae-add-review-form {
    display: flex;
    flex-direction: column;
    gap: 29px;
  }

  .kae-add-review-rating,
  .kae-add-review-order {
    padding: 0;
  }

  .kae-add-review-order .kae-input-wrap {
    flex: 100%;
  }

  .kae-order {
    overflow-x: hidden;
    padding: 24px 19px 64px;
  }
  .kae-order-head {
    padding: 0 0 24px;
  }

  .kae-order-body-left,
  .kae-order-body-right {
    width: 100%;
    min-width: auto;
  }

  .kae-order-body-left .kae-order-title {
    padding-bottom: 16px;
  }

  #kae_order .kae-order-body-right .kae-add-review-title {
    align-items: center;
  }

  .kae-create-boxes {
    display: flex;
  }

  .kae-payment-main {
    min-width: auto;
    max-width: 530px;
    margin: 0 auto;
  }

  /* - - - - - - OTP pop-up window for mobile- - - - - --  */
  .kae-otp-wrapper {
    width: 90%;
    /* height: 80vh; */
    padding: 24px;
    overflow-y: auto;
    height: 100%;
    max-height: 100vh;
    width: 100%;
    border-radius: 0;
  }

  .kae-otp-body {
    padding-right: 0;
    height: 100%;
  }

  .kae-otp-title {
    flex-direction: column;
  }

  .kae-otp-input::placeholder {
    font-size: 20px;
  }

  .kae-otp-message {
    font-size: 16px;
    text-align: center;
    max-width: 80%;
  }

  .kae-otp-title .kae-form-title {
    font-size: 20px;
  }
  .kae-otp-form {
    flex: 1 1 auto;
  }

  .kae-otp-field {
    gap: 48px;
    flex: 50%;
    justify-content: center;
  }
  .kae-otp-field-wrapper {
    width: fit-content;
  }

  .kae-otp-button {
    flex: 50%;
    display: flex;
    align-items: flex-end;
  }

  .kae-otp-button .kae-button {
    width: 100%;
  }

  .kae-otp-orders-wrapper {
    padding-right: 0;
    gap: 24px;
    min-width: auto;
  }

  .kae-otp-body.kae-hide + .kae-otp-orders-wrapper {
    min-width: auto;
  }

  .kae-otp-order {
    flex-wrap: wrap;
    row-gap: 4px;
    column-gap: 8px;
    font-size: 14px;
  }

  .kae-otp-order-date,
  .kae-otp-order-content,
  .kae-otp-order-from,
  .kae-otp-order-to,
  .kae-otp-order-status {
    min-width: calc(50% - 4px);
    flex: auto;
  }

  .kae-otp-actions {
    width: 100%;
    flex: 0 0 100%;
  }

  .kae-otp-action-edit,
  .kae-otp-action-display {
    justify-content: start;
  }

  .kae-thankyou-form,
  .kae-otp-wrapper {
    max-width: 100%;
    padding: 40px;
  }

  .kae-thankyou-data {
    font-size: 16px;
  }
  /* datapicker mobile styles */
  #ui-datepicker-div {
    width: 85%;
    margin-inline: 15px;
  }
}

@media (max-width: 500px) {
  .kae-thankyou-form {
    padding: 40px 20px;
  }

  .kae-thankyou-data {
    font-size: 14px;
  }

  .kae-otp-wrapper {
    padding: 24px;
  }

  .kae-otp-body {
    text-align: center;
  }
}

@media (max-width: 375px) {
  .kae-create-form {
    padding: 16px 12px;
  }
}

@media (max-width: 350px) {
  .kae-why-item {
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .kae-create-measurement-metric,
  .kae-create-measurement-imperial {
    flex: 100%;
    padding: 4px 0;
  }
  .kae-box-fields {
    gap: 12px;
    flex-direction: column;
  }

  .kae-box-fields .kae-input-wrap,
  #kae_order_form .kae-box-wrapper .kae-input-wrap {
    max-width: 100%;
    width: 100%;
  }

  #kae_order_form .kae-box-fields input[type="number"] {
    max-width: 100%;
  }
  #kae_order_form .kae-create-boxes,
  .kae-create-boxes {
    flex-direction: column;
  }

  #kae_main_form input[type="number"] {
    max-width: 150px;
  }

  .kae-box-fields {
    flex: auto;
  }
}
