.pattern-bg {
  background: url("./italiya-flag.webp") center center no-repeat;
  background-size: cover;
  height: 100%;
}

.mob_btn {
  display: none;
}

.horisontal {
  display: none !important;
}

.chat {
  border-radius: 20px;
}

#custom-form {
  display: none;
  align-items: center;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  height: auto;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 20px;
  flex-direction: column;
}

.aio-sdk-form {
  --aio-sdk-submit-bg: #ffd543 !important;
  --aio-sdk-submit-padding: 15px 20px;
  --aio-sdk-submit-border: 4px solid rgba(255, 213, 67, 0.3);
  --aio-sdk-submit-border-radius: 8px;
  --aio-sdk-submit-color: #000;
  --aio-sdk-submit-font-size: var(--aio-sdk-input-font-size);
}

.main-chat {
  padding: 13% 8% 8% 8%;
}

html,
body {
  overflow-y: hidden;
  overflow-x: hidden;
}

.top-avatar,
.profile-pic {
  border-radius: 50%;
}

@keyframes slideInAfter {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translate(0);
  }
}

.mob_btn {
  backdrop-filter: blur(10px) !important;

  background-color: rgba(255, 255, 255, 0.5);
}

.mob_btn .logo h2 {
  color: #000;
}

@media (max-width: 1400px) {
  .answer-btn {
    width: 35%;
  }

  .horizontal:before {
    display: none !important;
  }

  .chat {
    width: 100%;
    height: 85%;
    top: auto;
    bottom: 0;
    transform: translate(-50%, 0);
  }

  .chat .logo {
    display: none !important;
  }

  .horizontal {
    flex-direction: column;
  }

  .mob_btn {
    display: flex;
    padding: 12px 48px;
    border-radius: 40px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(3px);
    margin: 0 auto;
    margin-top: 0rem;
    transform: translateY(4rem);
  }

  .mob_btn img {
    display: flex;
    height: 21px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    align-self: stretch;
  }

  .mob_btn .logo {
    display: flex;
  }

  .mob_btn .logo h2 {
    font-size: 1.2rem;
    padding: 0;
    margin: 0;
    color: #000 !important;
  }

  .mob_btn {
    backdrop-filter: blur(10px) !important;
    background-color: rgba(255, 255, 255, 0.5);
  }

  .pattern-bg {
    height: 100dvh;
  }

  .rf-image {
    display: none;
  }

  .chat {
    border-radius: 36px 36px 0 0;
  }
}

@media (max-width: 1000px) {
  .logo img {
    width: 39px;
  }
}

#custom-form {
  width: 90%;
  height: auto;
  max-width: 700px;
}

@media (max-width: 768px) {
  .pattern-bg {
    height: 90dvh;
  }

  .answer-btn {
    width: 96%;
    border-radius: 8px;
    border: 4px solid rgb(248, 236, 196);
    background: #ffd543;
  }

  .main-chat {
    padding: 19% 8% 8% 8%;
  }

  .full-height {
    height: calc(100vh - env(safe-area-inset-bottom));
    box-sizing: border-box;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .pattern-bg {
    height: 100vh;
  }

  .mob_btn {
    display: flex;
    padding: 12px 48px;
    border-radius: 40px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(3px);
    margin: 0 auto;
    margin-top: 0rem;
    transform: translateY(4rem);
  }

  .mob_btn img {
    display: flex;
    height: 21px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    align-self: stretch;
  }

  .mob_btn .logo {
    display: flex;
  }

  .mob_btn .logo h2 {
    font-size: 1.2rem;
    padding: 0;
    margin: 0;
  }

  .chat {
    height: 77%;
  }

  .profile-info {
    flex-grow: 1;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .profile-name {
    color: var(--ios-status-bar-status-bar-text-color, #000);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
  }

  .top-avatar,
  .profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
  }

  .left-chat .chat-block,
  .right-chat .chat-block {
    color: #222;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 160%;
  }

  .horizontal:before {
    top: 0;
    left: 0;
    position: absolute;
  }
}

input.error-input {
  border: 2px solid red !important;
}

.iti {
  width: 100% !important;
}

.iti__selected-country {
  box-shadow: unset !important;
}

.hide {
  display: none;
}
