.as-comment-section * {
  box-sizing: border-box;
}
.as-comment-section h2 {
  font-weight: bold;
}
.as-comment-section p {
  margin: 0;
}

.as-comment-section a,
.as-comment-section p {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 400;
  color: var(--color-0070ff);
}

.as-comment-section span {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 400;
  color: white;
}

.as-comments strong {
  font-weight: bold;
  font-family: inherit;
}

/* Comment Section */
.as-comment-section {
  /*! max-width: 800px; */
  margin: 40px auto 0;
  background: var(--color-ffffff);

  border-radius: 8px;
  box-shadow: 0 0 10px var(--color-rgba-0-0-0-0-1);
  font-family: Arial, Helvetica, sans-serif;
}

.as-comment-section ::placeholder {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--color-888888);
  font-size: 14px;
}

/* Title */
.as-comment-section h2 {
  margin-bottom: 15px;
  color: var(--color-000000);
}

/* Comment Form */
.as-comment-section .as-comment-form {
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-cccccc);
}

.as-comment-section .as-comment-form textarea {
  appearance: none;
  width: 100%;
  height: 80px;
  padding: 10px;
  font-size: 14px;
  color: grey;
  padding-right: 40px;
  border: 1px solid rgb(200, 200, 200);
  border-radius: 5px;
  resize: none;
}

.as-comment-section .as-char-counter {
  color: var(--color-cccccc);
  font-size: 14px;
  position: absolute;
  z-index: 2;
  right: 10px;
  top: 10px;
}

.as-comment-section .as-comment-form textarea.error,
.as-comments-section .as-reply-box input.error {
  border-color: var(--color-ee2828);
}
.as-comment-section .as-reply-box {
  padding-left: 50px;
  padding-top: 20px;
}

.as-comment-section .as-comment-input-wrapper {
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-end;
  position: relative;
  margin-bottom: 10px;
  z-index: 1;
}

.as-comment-section .as-reply-box input,
.as-comment-section .as-edit-comment-input {
  appearance: none;
  width: 100%;
  padding: 10px;
  padding-right: 40px;
  border: 1px solid var(--color-cccccc);
  background: var(--color-ffffff);
  border-radius: 5px;
}

.as-comment-section .as-btn-block {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.as-comment-section .as-comment-form button {
  display: inline-flex;
  margin-top: 10px;
  margin-left: auto;
}

.as-comment-section .as-main-btn {
  appearance: none;
  padding: 8px 12px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 15px;
}

.as-comment-section .as-main-btn--submit {
  background-color: var(--color-2462ed);
  color: var(--color-ffffff);
}

.as-comment-section .as-main-btn--cancel {
  background-color: var(--color-cccccc);
  color: var(--color-000000);
}

/* Comments List */
.as-comment-section .as-comments {
  margin-top: 10px;
}

.as-comment-section .as-comment {
  display: flex;
  flex-flow: column;
  padding: 5px;
}

.as-comment-section .as-comment-text {
  font-size: 17px;
}

.as-comment-section .as-attachment-image {
  display: inline-block;
  margin-top: 10px;
  width: 100%;
  max-width: 500px;
}

.as-comment-section .as-comment-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.as-comment-section .as-comment-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.as-comment-section .as-comment-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.as-comment-section .as-top-dot {
  color: var(--color-b0b3b8);
  font-size: 0.9em;
  line-height: 1;
}

.as-comment-section .as-comment--reply {
  margin-left: 70px; /* Indent replies */
  padding-left: 15px;
  padding-top: 20px;
  margin-top: 5px;
  border-left: 1px solid var(--color-dadada);
}

/* Avatar */
.as-comment-section .as-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* Comment Content */
.as-comment-section .as-comment-content {
  flex: 1;
}

.as-comment-section .as-comment-top strong {
  font-size: 15px;
  color: var(--color-333333);
}

.as-comment-section .as-comment-content p {
  color: var(--color-1c1e21);
}

/* Timestamp */
.as-comment-section .as-timestamp {
  font-size: 13px;
  color: var(--color-888888);
}

/* Action Buttons */
.as-comment-section .as-comment-actions {
  display: flex;
  align-items: center;
  flex-flow: row wrap;
  gap: 10px;
  margin-top: 10px;
}
.as-comment-section .as-review {
  color: var(--color-cacaca);
  font-size: 14px;
}
.as-comment-section .as-action-btn {
  appearance: none;
  background: var(--color-f0f5f5);
  border: none;
  font-size: 13px;
  cursor: pointer;
  color: white;
  height: 30px;
  min-width: 50px;
  padding: 0;
  padding-left: 30px;
  padding-right: 10px;
  border-radius: 100px;
  position: relative;
  z-index: 1;
}

.as-comment-section .as-like-btn::before {
  content: '👍';
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
}
.as-comment-section .as-dislike-btn::before {
  content: '👎';
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
}

.as-comment-section .as-like-btn--marked {
  background: var(--color-2462ed);
}
.as-comment-section .as-dislike-btn--marked {
  background: var(--color-ee2828);
}
.as-comment-section .as-like-btn--marked span,
.as-comment-section .as-dislike-btn--marked span {
  color: var(--color-ffffff);
}

.as-comment-section .as-reply-btn::before {
  content: '💬';
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
}
.as-comment-section .as-edit-btn::before {
  content: '📝';
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
}
.as-comment-section .as-delete-btn::before {
  content: '❌';
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
}
.as-comment-section .as-new-comment,
.as-comment-section .as-reply-opened {
  animation: fadeIn 0.5s ease-in-out;
}

.as-comment-section .as-action-animation {
  transform: scale(1.2);
  transition: transform 0.3s ease;
}
.as-comment-section .closing,
.as-comment-section .deleting {
  animation: fadeOut 0.5s ease-in-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}
.as-modal-overlay {
  /* hidden by default */
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.112); /* dark overlay */
  opacity: 0; /* let the animation fade in */
  pointer-events: none;
  transition: opacity 0.3s ease-out;
  z-index: 100;
}

.as-modal-overlay.as-show {
  display: flex;
  pointer-events: all; /* activate clickable overlay */
  opacity: 1; /* fade in */
}

.as-modal {
  background: var(--color-ffffff);
  border-radius: 0.5rem;
  padding: 1rem;
  min-width: 250px;
  transform: scale(0.9); /* start slightly smaller */
  animation: modalPopIn 0.3s forwards ease-out;
  z-index: 101;
}

@keyframes modalPopIn {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.as-modal-text {
  margin-bottom: 1rem;
}

.as-modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 20px;
}

.as-modal-btn {
  appearance: none;
  padding: 8px 15px;
  border: none;
  border-radius: 100px;
  cursor: pointer;
}

.as-modal-btn--delete {
  background-color: var(--color-e41b1b);
  color: var(--color-ffffff);
}

.as-modal-btn--cancel {
  background-color: var(--color-cccccc);
  color: var(--color-000000);
}

.as-comment-section .as-error-message {
  width: 100%;
  text-align: left;
  font-size: 14px;
  color: var(--color-ee2828);
}

/* --------------------------------------------------
   Aurora Capital styling overrides
-------------------------------------------------- */
.comments-widget_section {
}

.comments-widget_section .as-comment-section {
  max-width: 1180px;
  margin: 0 auto;

  background: none;
  border-radius: 0;
  box-shadow: none;
  font-family: 'Exo 2', 'Montserrat', 'Segoe UI', sans-serif;
  color: var(--color-rgba-226-228-237-0-9);
}

.comments-widget_section .as-comment-section h2 {
  font-size: clamp(1.95rem, 2.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brand-color-accent);
  margin-bottom: 36px;
}

.comments-widget_section .as-comment-section p,
.comments-widget_section .as-comment-section span,
.comments-widget_section .as-comment-section a {
  font-size: 0.95rem;
  line-height: 1.6;
}

.comments-widget_section .as-comment-section a:hover,
.comments-widget_section .as-comment-section a:focus-visible {
  color: var(--color-7ed4ff);
}

.comments-widget_section .as-comment-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 36px;
  border-radius: 28px;
  border: 1px solid rgb(200, 200, 200);
  background-color: #e0e9f9;
  margin-bottom: 20px;
}

.comments-widget_section .as-comment-input-wrapper {
  margin: 0;
}

.comments-widget_section .as-comment-input {
  appearance: none;
  width: 100%;
  min-height: 140px;
  padding: 20px 24px;
  border-radius: 22px;
  background-color: white;
  font-size: 1rem;
  line-height: 1.6;
  resize: vertical;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.comments-widget_section .as-comment-section ::placeholder {
  color: grey;
}

.comments-widget_section .as-comment-input:focus {
  border-color: var(--color-rgba-126-212-255-0-65);
  box-shadow: 0 0 0 3px var(--color-rgba-126-212-255-0-18);
}

.comments-widget_section .as-reply-box {
  margin-top: 18px;
  padding-left: 20px;
}

.comments-widget_section .as-reply-box input,
.comments-widget_section .as-edit-comment-input {
  appearance: none;
  width: 100%;
  padding: 16px 22px;
  border-radius: 20px;
  border: 1px solid rgb(200, 200, 200);
  background-color: #e0e9f9;
  color: black;
  font-size: 0.95rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.comments-widget_section .as-reply-box input:focus,
.comments-widget_section .as-edit-comment-input:focus {
  border-color: var(--color-rgba-126-212-255-0-6);
  box-shadow: 0 0 0 3px var(--color-rgba-126-212-255-0-18);
}

.comments-widget_section .as-char-counter {
  font-size: 0.85rem;
  color: var(--color-rgba-160-169-189-0-7);
}

.comments-widget_section .as-main-btn {
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease;
  border: none;
}

.comments-widget_section .as-comment-form .as-main-btn {
  align-self: flex-end;
}

.comments-widget_section .as-main-btn--submit {
  background-color: #2870ed;
  color: white;
}

.comments-widget_section .as-main-btn--submit:hover,
.comments-widget_section .as-main-btn--submit:focus-visible {
  transform: translateY(-2px);
}

.comments-widget_section .as-main-btn--cancel {
  background: grey;
  color: white;
  border: 1px solid var(--color-rgba-126-212-255-0-2);
}

.comments-widget_section .as-comments {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.comments-widget_section .as-comment {
  padding: 28px 30px;
  border-radius: 26px;
  border: 1px solid rgb(200, 200, 200);
  background: #e0e9f9;

  gap: 18px;
}
.comments-widget_section .as-comment-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.comments-widget_section .as-comment-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.comments-widget_section .as-comment-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: black;
  font-size: 1.05rem;
}

.comments-widget_section .as-top-dot {
  color: var(--color-rgba-160-169-189-0-65);
  font-size: 1.15rem;
  margin: 0 2px;
  line-height: 1;
}

.comments-widget_section .as-avatar {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid var(--color-rgba-126-212-255-0-35);
}

.comments-widget_section .as-comment-top strong {
  font-weight: 600;
}

.comments-widget_section .as-comment-content p,
.comments-widget_section .as-comment-text {
  color: black;
  font-size: 1rem;
  line-height: 1.7;
}

.comments-widget_section .as-timestamp {
  font-size: 0.85rem;
  color: #000000;
}

.comments-widget_section .as-comment-actions {
  gap: 12px;
  margin-top: 18px;
}

.comments-widget_section .as-action-btn {
  background: #2870ed;
  border: 1px solid rgb(200, 200, 200);
  color: #fffefe;
  border-radius: 999px;
  padding: 0 15px 0 30px;
  height: 37px;
  font-size: 0.9rem;
}

.comments-widget_section .as-btn-block {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.comments-widget_section .as-btn-block .as-main-btn {
  align-self: center;
}

.comments-widget_section .as-action-btn::before {
  filter: saturate(1);
  opacity: 0.88;
}

.comments-widget_section .as-like-btn--marked {
  background: linear-gradient(150deg, var(--color-4a72ff), var(--color-7ed4ff));
  color: var(--color-071022);
}

.comments-widget_section .as-dislike-btn--marked {
  background: linear-gradient(150deg, var(--color-ff6e6e), var(--color-f54f4f));
  color: var(--color-1c0610);
}

.comments-widget_section .as-like-btn--marked span,
.comments-widget_section .as-dislike-btn--marked span {
  color: inherit;
}

.comments-widget_section .as-comment--reply {
  margin-left: 70px;
  padding-left: 24px;
  border-left: 1px solid var(--color-rgba-126-212-255-0-25);
  background: linear-gradient(150deg, #e0e9f9, #ffffff);
}

.comments-widget_section .as-review {
  color: var(--color-rgba-160-169-189-0-72);
}

.comments-widget_section .as-comment-section .as-error-message {
  color: var(--color-ff8888);
}

.comments-widget_section .as-modal {
  background-color: white;
  border: 1px solid rgb(200, 200, 200);
  color: black;
}

.comments-widget_section .as-modal-text {
  color: black;
}

.comments-widget_section .as-modal-btn {
  border-radius: 999px;
  font-weight: 600;
}

.comments-widget_section .as-modal-btn--delete {
  background: grey;
  color: white;
}

.comments-widget_section .as-modal-btn--cancel {
  background: #2870ed;
  color: white;
}

@media (max-width: 768px) {
  .comments-widget_section .as-comment-form {
    padding: 24px;
  }

  .comments-widget_section .as-comment {
    padding: 22px;
  }

  .comments-widget_section .as-comment-inner {
    flex-direction: column;
  }

  .comments-widget_section .as-comment--reply {
    margin-left: 32px;
  }

  .comments-widget_section .as-main-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .comments-widget_section .as-comment-section h2 {
    font-size: 1.8rem;
  }

  .comments-widget_section .as-comment-input {
    min-height: 110px;
  }

  .comments-widget_section .as-comment-actions {
    flex-direction: row;
    align-items: stretch;
  }
}
