/*
 * Comment section styling extracted from Foxiz single layout.
 * Scoped to the `.comment-box-wrap` widget so it mirrors the
 * original WordPress theme without overriding global styles.
 */

.comment-box-wrap.entry-sec {
  --comment-accent: #8224e3;
  --comment-accent-strong: #5b13a5;
  --comment-text: #04102f;
  --comment-muted: #666666;
  --comment-surface: #ffffff;
  --comment-divider: rgba(136, 136, 136, 0.15);
  --comment-soft: rgba(136, 136, 136, 0.07);
  --comment-form-gap: 20px;
  --comment-form-padding: 10px;
  --comment-heading-size: 25px;
  --comment-heading-spacing: -0.04em;
  --comment-meta-size: 13px;
  --comment-body-font: 'Manrope', 'Oxygen', Arial, Helvetica, sans-serif;
  position: relative;
  padding: 37px 0 35px;
  font-family: var(--comment-body-font);
  color: var(--comment-text);
  background-color: var(--comment-surface);
}

.comment-box-wrap.entry-sec::before {
  content: '';
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-image: linear-gradient(
    to right,
    var(--comment-divider) 20%,
    transparent 21%,
    transparent 100%
  );
  background-repeat: repeat-x;
  background-position: 0 0;
  background-size: 5px;
}

.comment-box-header {
  position: relative;
  display: block;
}

.comment-box-header .h3 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--comment-body-font);
  font-size: var(--comment-heading-size);
  font-weight: 700;
  letter-spacing: var(--comment-heading-spacing);
  line-height: 1.3;
  color: var(--comment-text);
}

.comment-box-wrap .rbi {
  display: inline-flex;
  width: 1.1em;
  height: 1.1em;
  background-color: currentColor;
  -webkit-mask: var(--comment-icon) center/contain no-repeat;
  mask: var(--comment-icon) center/contain no-repeat;
}

.comment-box-wrap .rbi-comment {
  --comment-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20d%3D%22M21%2015a2%202%200%200%201-2%202H7l-4%204V5a2%202%200%200%201%202-2h14a2%202%200%200%201%202%202z%22/%3E%3C/svg%3E");
}

.comment-holder,
.comment-holder * {
  box-sizing: border-box;
}

.comment-holder .comments-area {
  display: block;
}

.comment-holder .rb-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment-holder .comment-list {
  position: relative;
  margin: 35px 0 25px;
  border-bottom: 1px dashed var(--comment-divider);
}

.comment-holder .comment-list > li {
  position: relative;
}

.comment-holder .comment-body {
  position: relative;
  margin: 0 0 25px;
  padding: 0 clamp(40px, 10vw, 80px) 0 65px;
  color: var(--comment-text);
}

.comment-holder .comment-list li.parent > .comment-body {
  margin-bottom: 20px;
}

.comment-holder .comment-list ul.children {
  margin: 0;
  padding-left: 30px;
}

.comment-holder .comment-list li.depth-2 {
  margin-left: 0;
}

.comment-holder .comment-author {
  position: relative;
  font-size: 0.92rem;
  margin-bottom: 5px;
}

.comment-holder .comment-author .avatar {
  position: absolute;
  top: 3px;
  left: -65px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-holder .comment-author .says {
  display: none;
}

.comment-holder .comment-metadata {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.6em;
  font-family: var(--comment-body-font);
  font-size: var(--comment-meta-size);
  line-height: 1;
  color: var(--comment-muted);
}

.comment-holder .comment-metadata > * {
  margin-bottom: 7px;
}

.comment-holder .comment-content {
  margin-top: 10px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--comment-text);
}

.comment-holder .comment-content > * {
  margin: 0 0 1.5rem;
}

.comment-holder .comment-content > :last-child {
  margin-bottom: 0;
}

.comment-holder .comment-reply-link {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  line-height: 24px;
  font-family: var(--comment-body-font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--comment-text);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 0;
   transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.comment-holder .comment-reply-link::before {
  content: '';
  display: inline-flex;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpolyline%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20points%3D%2215%203%2021%209%2015%2015%22/%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20d%3D%22M4%2021v-4a8%208%200%200%201%208-8h9%22/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpolyline%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20points%3D%2215%203%2021%209%2015%2015%22/%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20d%3D%22M4%2021v-4a8%208%200%200%201%208-8h9%22/%3E%3C/svg%3E") center/contain no-repeat;
}

.comment-holder .comment-reply-link:hover,
.comment-holder .comment-reply-link:focus {
  transform: translateY(-1px);
  color: #ffffff;
  border-color: var(--comment-accent);
  background-color: var(--comment-accent);
  box-shadow: 0 3px 12px rgba(130, 36, 227, 0.4);
}

.comment-holder .comment-reply-title {
  margin: 0 0 10px;
  font-size: 1.4rem;
  line-height: 1.1;
  color: var(--comment-text);
}

.comment-holder .comment-reply-title small {
  font-size: 0.8em;
}

.comment-holder #cancel-comment-reply-link {
  display: none;
}

.comment-holder .comment-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--comment-form-gap);
  margin: 0;
  padding: 0 var(--comment-form-padding);
}

.comment-holder .comment-form > * {
  width: 100%;
  margin: 0;
}

.comment-holder .comment-form .comment-notes {
  margin-bottom: 15px;
  font-size: 0.8rem;
  color: var(--comment-muted);
}

.comment-holder .comment-form .required {
  color: #ff4545;
}

.comment-holder .comment-form textarea,
.comment-holder .comment-form input[type='text'],
.comment-holder .comment-form input[type='email'],
.comment-holder .comment-form input[type='url'] {
  width: 100%;
  font-family: 'Manrope', 'Oxygen', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.6;
  padding: 12px 20px;
  color: var(--comment-text);
  background-color: var(--comment-soft);
  border: none;
  border-radius: 0;
  outline: none;
  transition: background-color 0.2s ease;
}

.comment-holder .comment-form textarea {
  min-height: 160px;
  resize: vertical;
  padding: 15px 20px;
}

.comment-holder .comment-form textarea:focus,
.comment-holder .comment-form input[type='text']:focus,
.comment-holder .comment-form input[type='email']:focus,
.comment-holder .comment-form input[type='url']:focus {
  background-color: rgba(130, 36, 227, 0.08);
  box-shadow: 0 0 0 2px rgba(130, 36, 227, 0.15);
}

.comment-holder .comment-form label {
  display: none;
}

.comment-holder .comment-form .comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 5px;
}

.comment-holder .comment-form .comment-form-cookies-consent label {
  display: inline;
  margin: 0;
  padding-left: 0;
  font-size: 0.8rem;
}

.comment-holder .comment-form .form-submit {
  margin: 0;
  padding-bottom: 0;
}

.comment-holder .comment-form input[type='submit'] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  min-height: 40px;
  line-height: 40px;
  font-family: 'Manrope', 'Oxygen', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #ffffff;
  background-color: var(--comment-accent);
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.comment-holder .comment-form input[type='submit']:hover,
.comment-holder .comment-form input[type='submit']:focus {
  background-color: var(--comment-accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(91, 19, 165, 0.35);
}

.comment-holder .comment-notes #email-notes {
  font-style: italic;
}

.comment-holder .comment-list a,
.comment-holder .comment-form a {
  color: inherit;
  text-decoration: none;
}

.comment-holder .comment-list a:hover,
.comment-holder .comment-form a:hover,
.comment-holder .comment-list a:focus,
.comment-holder .comment-form a:focus {
  text-decoration: underline;
}

.comment-holder .akismet-fields-container {
  display: none !important;
}

.comment-holder .comment-list img {
  max-width: 100%;
  height: auto;
  border: 0;
}

@media (min-width: 768px) {
  .comment-holder .comment-form {
    column-gap: var(--comment-form-gap);
  }

  .comment-holder .comment-form .comment-form-author,
  .comment-holder .comment-form .comment-form-email,
  .comment-holder .comment-form .comment-form-url {
    flex: 1 1 220px;
  }
}

@media (max-width: 767px) {
  .comment-holder .comment-body {
    padding: 0;
  }

  .comment-holder .comment-author .avatar {
    position: static;
    margin-bottom: 12px;
  }

  .comment-holder .comment-reply-link {
    position: relative;
    margin-top: 12px;
  }
}