/**
 * @file
 * AI popup related styles
 */
.ai-feedback-popup {
  --popup-inner-width: 560px;
}

.ai-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  z-index: 151;
  display: none;
  padding: 20px;
}

.ai-popup.active {
  display: flex;
}

.ai-feedback-popup-inner {
  background-color: var(--white);
  padding: 15px 25px 30px 30px;
  border-radius: 10px;
  width: var(--popup-inner-width);
  max-width: 100%;
  position: relative;
}

.ai-popup-title {
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--black-1);
  padding-bottom: 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid;
  display: none;
}

.ai-popup[data-popup-type="like"] .like-title {
  border-color: #6de354;
  display: block;
}

.ai-popup[data-popup-type="dislike"] .dislike-title {
  border-color: #ee402d;
  display: block;
}

.ai-feedback-form label,
.popup-sub-title,
.captcha__title {
  font-size: 1.125rem;
  line-height: 1.4;
  font-weight: 700;
  color: var(--black-2);
  margin-bottom: 10px;
}

.ai-feedback-form textarea {
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 1rem;
  line-height: 1.375;
}

.ai-feedback-form textarea,
.ai-feedback-form textarea::placeholder {
  color: var(--card-border-05);
}

.ai-feedback-form textarea:focus,
.ai-feedback-form textarea:focus-visible {
  box-shadow: none;
  border-color: var(--gray-light);
  outline: none;
}

.ai-feedback-form .form-submit {
  margin: 0;
  background: transparent;
}

.ai-feedback-form .form-submit:hover,
.ai-feedback-form .form-submit:focus-visible {
  color: var(--white);
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.ai-feedback-form .form-item {
  margin: 0 0 16px;
}

.ai-feedback-form .form-type-select {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 5px;
  padding: 3px 0;
}

.ai-feedback-form .form-type-select:has(+.form-type-textarea) {
  margin-bottom: 15px;
}

.ai-feedback-form .form-type-select label {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.375;
  margin: 0;
  width: 150px;
}

.ai-pop-close {
  position: absolute;
  right: 15px;
  top: 19px;
  font-size: 0;
  background-repeat: no-repeat;
  background-position: center center;
  width: 20px;
  height: 20px;
  background-image: url(img/close-pop.svg);
}

.ai-pop-close:hover,
.ai-pop-close:focus-visible {
  background-image: url(img/close-pop-hover.svg);
}

.ai-popup-scroll {
  max-height: calc(100vh - 100px);
  overflow: auto;
  padding-right: 5px;
}

.ai-popup-scroll::-webkit-scrollbar {
  width: 6px;
}

.ai-popup-scroll::-webkit-scrollbar {
  width: 6px;
}

.ai-popup-scroll::-webkit-scrollbar-track {
  background: #e6e6e6;
  border-radius: 5px;
  margin-top: 30px;
}

.ai-popup-scroll::-webkit-scrollbar-thumb {
  background: #7a7a7a;
  border-radius: 10px;
}

.ai-popup-scroll::-webkit-scrollbar-thumb:hover {
  background: #555555;
}

.popup-component-content ul::-webkit-scrollbar-button {
  display: none;
}

.ai-popup .captcha,
.ai-popup .btn-submit-og {
  display: none;
}

.show-captcha .captcha,
.show-captcha .btn-submit-og {
  display: block;
}

.show-captcha .form-type-select,
.show-captcha .popup-sub-title,
.show-captcha .form-type-textarea,
.show-captcha .show-captcha-btn {
  display: none;
}

.captcha__description {
  font-size: .875rem;
  margin-top: 5px;
}

.captcha-error .captcha__title {
  color: #ee0000;
}
