body.modal-shown {
  overflow: hidden;
}
.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: #0070ff;
}

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

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

/* Comment Section */
.as-comment-section {
  /*! max-width: 800px; */
  margin: 40px auto 0;
  background: #fff;

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

.as-comment-section ::placeholder {
  font-family: Arial, Helvetica, sans-serif;
  color: #888;
  font-size: 14px;
}

/* Title */
.as-comment-section h2 {
  margin-bottom: 15px;
  color: #000;
}

/* Comment Form */
.as-comment-section .as-comment-form {
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
  border-bottom: 1px solid #ccc;
}

.as-comment-section .as-comment-form textarea {
  appearance: none;
  width: 100%;
  height: 80px;
  padding: 10px;
  font-size: 14px;
  color: white;
  padding-right: 40px;
  border: 1px solid #ccc;
  background: #2c2c2c;
  border-radius: 5px;
  resize: none;
}

.as-comment-section .as-char-counter {
  color: #ccc;
  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: #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 #ccc;
  background: #fff;
  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: #2462ed;
  color: white;
}

.as-comment-section .as-main-btn--cancel {
  background-color: #ccc;
  color: black;
}

/* 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: #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 #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: #333;
}

.as-comment-section .as-comment-content p {
  color: #1c1e21;
}

/* Timestamp */
.as-comment-section .as-timestamp {
  font-size: 13px;
  color: #888;
}

/* 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: #cacaca;
  font-size: 14px;
}
.as-comment-section .as-action-btn {
  appearance: none;
  background: #f0f5f5;
  border: none;
  font-size: 13px;
  cursor: pointer;
  color: #1e1e1e;
  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: #2462ed;
}
.as-comment-section .as-dislike-btn--marked {
  background: #ee2828;
}
.as-comment-section .as-like-btn--marked span,
.as-comment-section .as-dislike-btn--marked span {
  color: #fff;
}

.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: rgba(0, 0, 0, 0.5); /* 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: #fff;
  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: #e41b1b;
  color: white;
}

.as-modal-btn--cancel {
  background-color: #ccc;
  color: black;
}

.as-comment-section .as-error-message {
  width: 100%;
  text-align: left;
  font-size: 14px;
  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: 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;
  text-align: center;
  color: #f5f6ff;
  margin-bottom: 36px;
}

.comments-widget_section .as-comment-section p,
.comments-widget_section .as-comment-section span,
.comments-widget_section .as-comment-section a {
  color: rgba(226, 228, 237, 0.78);
  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: #7ed4ff;
}

.comments-widget_section .as-comment-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 36px;
  border-radius: 28px;
  border: 1px solid rgba(160, 169, 189, 0.35);
  background: linear-gradient(145deg, rgba(18, 20, 31, 0.95), rgba(7, 9, 16, 0.9));
  box-shadow: 0 22px 55px rgba(2, 12, 30, 0.45);
  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;
  border: 1px solid rgba(126, 212, 255, 0.32);
  background: rgba(11, 14, 23, 0.95);
  color: #f5f6ff;
  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: rgba(226, 228, 237, 0.45);
}

.comments-widget_section .as-comment-input:focus {
  border-color: rgba(126, 212, 255, 0.65);
  box-shadow: 0 0 0 3px 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 rgba(126, 212, 255, 0.28);
  background: rgba(11, 14, 23, 0.95);
  color: #f5f6ff;
  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: rgba(126, 212, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(126, 212, 255, 0.18);
}

.comments-widget_section .as-char-counter {
  font-size: 0.85rem;
  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: linear-gradient(150deg, #ffffff, #cdeeff);
  color: #071022;
  box-shadow: 0 18px 45px rgba(178, 200, 255, 0.38);
}

.comments-widget_section .as-main-btn--submit:hover,
.comments-widget_section .as-main-btn--submit:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 55px rgba(85, 152, 255, 0.45);
}

.comments-widget_section .as-main-btn--cancel {
  background: rgba(26, 32, 48, 0.85);
  color: rgba(226, 228, 237, 0.8);
  border: 1px solid 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 rgba(160, 169, 189, 0.28);
  background: linear-gradient(150deg, rgba(20, 24, 35, 0.92), rgba(8, 10, 18, 0.96));
  box-shadow: 0 20px 55px rgba(0, 10, 32, 0.4);
  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: rgba(226, 228, 237, 0.86);
  font-size: 1.05rem;
}

.comments-widget_section .as-top-dot {
  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 rgba(126, 212, 255, 0.35);
  box-shadow: 0 12px 30px rgba(67, 120, 255, 0.28);
}

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

.comments-widget_section .as-comment-content p,
.comments-widget_section .as-comment-text {
  color: rgba(226, 228, 237, 0.86);
  font-size: 1rem;
  line-height: 1.7;
}

.comments-widget_section .as-timestamp {
  font-size: 0.85rem;
  color: rgba(160, 169, 189, 0.7);
}

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

.comments-widget_section .as-action-btn {
  background: rgba(23, 30, 47, 0.82);
  border: 1px solid rgba(126, 212, 255, 0.18);
  color: rgba(226, 228, 237, 0.82);
  border-radius: 999px;
  padding: 0 15px 0 30px;
  height: 37px;
  font-size: 0.9rem;
}

.comments-widget_section .as-action-btn:hover,
.comments-widget_section .as-action-btn:focus-visible {
  border-color: rgba(126, 212, 255, 0.45);
  color: #7ed4ff;
}

.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(0.8);
  opacity: 0.88;
}

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

.comments-widget_section .as-dislike-btn--marked {
  background: linear-gradient(150deg, #ff6e6e, #f54f4f);
  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 rgba(126, 212, 255, 0.25);
  background: linear-gradient(150deg, rgba(17, 21, 32, 0.92), rgba(7, 8, 16, 0.96));
}

.comments-widget_section .as-review {
  color: rgba(160, 169, 189, 0.72);
}

.comments-widget_section .as-comment-section .as-error-message {
  color: #ff8888;
}

.comments-widget_section .as-modal {
  background: linear-gradient(150deg, rgba(17, 21, 32, 0.98), rgba(7, 9, 16, 0.94));
  border: 1px solid rgba(126, 212, 255, 0.28);
  color: #f5f6ff;
  box-shadow: 0 24px 55px rgba(0, 10, 32, 0.45);
}

.comments-widget_section .as-modal-text {
  color: rgba(226, 228, 237, 0.86);
}

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

.comments-widget_section .as-modal-btn--delete {
  background: linear-gradient(150deg, #ff6e6e, #f54f4f);
  color: #1c0610;
}

.comments-widget_section .as-modal-btn--cancel {
  background: rgba(26, 32, 48, 0.85);
  color: rgba(226, 228, 237, 0.8);
}

@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;
  }
}
