/* Blog detail — yorum listesi ve formu */

/* Baş harf avatarı */
.postbox__comment-avater .sulax-blog-comment-letter {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  font-family: inherit;
  user-select: none;
  line-height: 1;
}

.sulax-blog-comments__empty {
  margin: 0 0 10px;
  font-size: 15px;
  color: rgba(0, 0, 0, 0.55);
}

.sulax-blog-comment-replying {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 20px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgb(246, 246, 249);
  font-size: 14px;
  color: rgba(0, 0, 0, 0.75);
}

.sulax-blog-comment-replying[hidden] {
  display: none !important;
}

.sulax-blog-comment-replying__cancel {
  border: none;
  background: transparent;
  color: #FF5722;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.sulax-blog-comment-form__note {
  margin: 14px 0 0;
  font-size: 14px;
  color: #166534;
}

.sulax-blog-comment-form__note.is-error {
  color: #b91c1c;
}

.sulax-blog-comment-field__error {
  display: block;
  min-height: 18px;
  margin-top: -18px;
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.4;
  color: #b91c1c;
}

.postbox-details-input input.is-invalid,
.postbox-details-input textarea.is-invalid {
  border-color: #ec1f28;
  background: #fff5f5;
}

#sulax-blog-comment-form.is-disabled .postbox-details-input input,
#sulax-blog-comment-form.is-disabled .postbox-details-input textarea,
#sulax-blog-comment-form.is-disabled .sulax-blog-comment-form__btn {
  opacity: 0.6;
  pointer-events: none;
}

/* === Yorum Listesi === */
@media (max-width: 767px) {
  .postbox__comment {
    padding-top: 50px;
  }
}

.postbox__comment ul {
  margin-right: 75px;
  padding: 0;
}

@media only screen and (min-width: 1200px) and (max-width: 1399px),
       only screen and (min-width: 992px) and (max-width: 1199px),
       only screen and (min-width: 768px) and (max-width: 991px),
       (max-width: 767px) {
  .postbox__comment ul {
    margin-right: 0;
  }
}

.postbox__comment ul li {
  margin-bottom: 30px;
  list-style: none;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.postbox__comment ul li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* Yorum listesi ile form arası boşluk */
.sulax-blog-comments ul {
  margin-bottom: 24px;
}

.sulax-blog-comments .postbox-details-form {
  margin-top: 70px;
}

@media (max-width: 767px) {
  .sulax-blog-comments .postbox-details-form {
    margin-top: 48px;
  }
}

/* Üst yorum ile hemen altındaki yanıt arasında çizgi olmasın */
.postbox__comment ul li:has(+ li.children) {
  border-bottom: none;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.postbox__comment ul li.children,
.sulax-blog-comments ul > li.children {
  margin-left: 100px;
}

.sulax-blog-comments ul > li.children--deep {
  margin-left: 160px;
}

@media (max-width: 767px) {
  .postbox__comment ul li.children,
  .sulax-blog-comments ul > li.children {
    margin-left: 40px;
  }

  .sulax-blog-comments ul > li.children--deep {
    margin-left: 64px;
  }

  .postbox__comment-avater .sulax-blog-comment-letter {
    width: 56px;
    height: 56px;
    font-size: 22px;
    margin-bottom: 30px;
  }
}

.postbox__comment-title {
  font-weight: 600;
  font-size: 30px;
  line-height: 1.1;
  margin-bottom: 15px;
  letter-spacing: -0.04em;
  color: #000;
}

.postbox__comment-box {
  padding-top: 20px;
  display: flex;
  width: 100%;
  align-items: flex-start;
}

@media (max-width: 767px) {
  .postbox__comment-box {
    flex-wrap: wrap;
  }
}

.postbox__comment-info {
  flex: 0 0 auto;
}

.postbox__comment-avater {
  flex: 0 0 auto;
  margin-right: 30px;
}

@media (max-width: 767px) {
  .postbox__comment-avater {
    margin-right: 0;
  }
}

.postbox__comment-avater img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
}

@media (max-width: 767px) {
  .postbox__comment-avater img {
    margin-bottom: 30px;
  }
}

.postbox__comment-text {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.postbox__comment-name {
  margin-bottom: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 20px;
}

.postbox__comment-name h5 {
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  margin-bottom: 0;
  letter-spacing: -0.01em;
  color: #000;
  flex: 1 1 auto;
  min-width: 0;
}

.postbox__comment-name span,
.postbox__comment-name .post-meta {
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  color: rgba(0, 0, 0, 0.7);
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
  text-align: right;
}

.postbox__comment-text p {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: rgba(0, 0, 0, 0.7);
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
  .postbox__comment-text p {
    font-size: 15px;
  }
}

.postbox__comment-reply a {
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  padding: 11px 20px;
  border-radius: 40px;
  display: inline-block;
  text-transform: uppercase;
  text-decoration: none;
  color: #000;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}

.postbox__comment-reply a span {
  margin-left: 6px;
  display: inline-block;
  transform: translateY(-2px);
}

.postbox__comment-reply a:hover {
  color: #fff;
  border-color: #FF5722;
  background-color: #FF5722;
}

/* === Yorum Formu === */
.postbox-details-form {
  padding: 60px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
  .postbox-details-form {
    padding: 30px;
  }
}

@media (max-width: 767px) {
  .postbox-details-form {
    padding: 20px;
  }
}

.postbox-details-form p {
  font-weight: 500;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 23px;
  color: rgba(0, 0, 0, 0.7);
}

.postbox-details-form-title {
  font-weight: 600;
  font-size: 30px;
  line-height: 1.6;
  margin-bottom: 0;
  letter-spacing: -0.04em;
  color: #000;
}

.postbox-details-input label {
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  margin-bottom: 12px;
  display: block;
  color: #000;
}

.postbox-details-input input,
.postbox-details-input textarea {
  width: 100%;
  height: 60px;
  font-size: 17px;
  font-weight: 400;
  margin-bottom: 25px;
  border-radius: 14px;
  padding-left: 26px;
  padding-right: 26px;
  outline: none;
  background: rgb(246, 246, 249);
  color: #000;
  border: 1px solid rgb(246, 246, 249);
  transition: all 0.3s ease-in-out;
}

.postbox-details-input input::placeholder,
.postbox-details-input textarea::placeholder {
  font-size: 17px;
  font-weight: 400;
  color: #707072;
}

.postbox-details-input input:focus,
.postbox-details-input textarea:focus {
  background: transparent;
  border-color: #FF5722;
}

.postbox-details-input textarea {
  height: 160px;
  line-height: 1.5;
  padding-top: 20px;
  resize: none;
  margin-bottom: 20px;
}

.postbox-details-remeber input {
  display: none;
}

.postbox-details-remeber input:checked ~ label::before {
  visibility: visible;
  opacity: 1;
}

.postbox-details-remeber label {
  position: relative;
  padding-left: 30px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.7);
  cursor: pointer;
}

.postbox-details-remeber label::after {
  position: absolute;
  content: "";
  top: -3px;
  left: 0;
  width: 20px;
  height: 20px;
  z-index: -1;
  transition: 0.3s;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.postbox-details-remeber label::before {
  position: absolute;
  content: "✓";
  top: -2px;
  left: 4px;
  width: 16px;
  height: 16px;
  visibility: hidden;
  opacity: 0;
  transition: 0.3s;
  font-size: 12px;
  font-weight: 700;
  color: #000;
}

/* === Gönder Butonu === */
.tp-btn-yellow-green.sidebar-btn.sidebar-btn-style,
.sulax-blog-comment-form__btn {
  border: none;
  border-radius: 10px;
  padding: 20px 54px 16px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #fff;
  background-color: #ec1f28;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.tp-btn-yellow-green.sidebar-btn span {
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: inline-block;
}

.tp-btn-yellow-green.sidebar-btn span span.text-1 {
  position: relative;
  display: block;
  transition: 0.3s;
}

.tp-btn-yellow-green.sidebar-btn span span.text-2 {
  position: absolute;
  top: 100%;
  display: block;
  transition: 0.3s;
}

.tp-btn-yellow-green.sidebar-btn:hover span span.text-1 {
  transform: translateY(-150%);
}

.tp-btn-yellow-green.sidebar-btn:hover span span.text-2 {
  top: 50%;
  transform: translateY(-50%);
}

.sulax-blog-comment-form__btn:hover:not(:disabled) {
  background-color: #cb0a10;
}

.sulax-blog-comment-form__btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
