:root {
  --primary-color: rgb(250, 136, 71);
  --secondary-color: #c97e37;
  --accent-color: #4895ef;
  --text-color: #2b2d42;
  --light-text: #8d99ae;
  --background: #f8f9fa;
  --commentbg: #ffffff;
  --border-color: #e9ecef;
  --success-color: rgb(250, 136, 71);
  --danger-color: #f72585;
  --warning-color: #f8961e;
  --commentborder: 1px solid #cecece;
  --comment-mention: #fa8947be;
  --commenttlb: #242424;
  --border: 1px solid #cecece;
  --Mainbg: rgb(255, 255, 255);
  --color: rgb(65, 65, 65);
  --accordionbg: rgb(247 247 247);
  --solid-fill: #424242;
  --search-header-x: #eeeeee;
  --footerbg: #ffffff;
  --bookmark-shimmer: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  --beige-dual: rgb(65, 65, 65);
}

/* Font family used in comments */
body {
  font-family: Outfit;
}
/* Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* Firefox */
html {
  scrollbar-width: none;
}

/* IE/Old Edge */
body {
  -ms-overflow-style: none;
}
.button-center {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.comment-trig-end-post {
  padding: 15px 65px;
  font-size: 16px;
  font-family: outfit;
  font-weight: 500;
  color: var(--beige-dual);
  background-color: transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border: var(--border);
}

.comment-trig-end-post:hover {
  background-color: #212121;
  color: white;
  border: var(--border);
}

/* Selection styling */
::selection {
  background: rgba(243, 147, 83, 0.357);
  color: inherit;
}

::-moz-selection {
  background: rgba(243, 147, 83, 0.357);
  color: inherit;
}

/* Tap highlight */
a,
button,
div {
  -webkit-tap-highlight-color: transparent;
}

/* Box sizing */
* {
  box-sizing: border-box;
  margin: 0px;
  padding: 0px;
}

.comment-box {
  background: var(--Mainbg);
  border-radius: 12px;
}

.add-comment {
  position: relative;
  margin-bottom: 30px;
  border: var(--commentborder);
  border-radius: 12px;
  overflow: hidden;
}

.add-comment textarea {
  width: 100%;
  border: none;
  padding: 16px;
  font-size: 15px;
  resize: none;
  min-height: 100px;
  font-family: outfit;
  box-sizing: border-box;
  background: #fff0;
  color: var(--color);
}

.add-comment textarea:focus {
  outline: none;
}

.add-comment textarea::placeholder {
  color: var(--light-text);
}

.comment-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background-color: var(--Mainbg);
  border-top: var(--commentborder);
}

.markdown-note {
  font-size: 13px;
  color: var(--light-text);
  padding: 8px;
  background-color: var(--background);
}

.markdown-note a {
  color: var(--primary-color);
  text-decoration: none;
}

.markdown-note a:hover {
  text-decoration: underline;
}

.submit-btn {
  padding: 6px 16px;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-family: inherit;
}

.submit-btn:hover {
  background-color: var(--secondary-color);
}

.comments-section {
  margin-top: 30px;
}

.comment-sort {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: var(--commentborder);
}

.comment-sort span {
  font-weight: 500;
  color: var(--color);
}

.comment-sort strong {
  color: var(--primary-color);
}

.comment-sort select {
  padding: 6px 10px;
  border-radius: 8px;
  border: var(--commentborder);
  font-family: outfit;
  background-color: var(--commentbg);
  color: var(--color);
  cursor: pointer;
}

.comment {
  padding: 18px;
  border-radius: 12px;
  background-color: var(--commentbg);
  margin-bottom: 15px;
  border: var(--commentborder);
  margin-top: 10px;
}

.replies-container {
  margin-top: 15px;
  overflow: hidden;
  transition: 0.3s;
  max-height: 0;
}

.replies-container.expanded {
  max-height: 2000px;
}

.replies {
  margin-left: 0px !important;
  padding-left: 0px !important;
}

.comment.reply {
  background-color: rgb(238 155 67 / 3%);
  border-left: 3px solid #fa8847;
  margin-left: 0px !important;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.comment-user {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2px;
}

.comment-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.comment-user strong {
  font-weight: 500;
  color: var(--color);
  line-height: 1.2;
}

.comment-user .time {
  font-size: 13px;
  color: var(--light-text);
  line-height: 1.2;
  margin-top: 0;
}

.comment-content {
  font-size: 15px;
  color: var(--color);
  line-height: 1.4;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
}

.comment-content .mention {
  font-weight: 500;
  color: #fff;
  display: inline;
  margin-right: 6px;
  font-size: 13px;
}

.mention {
  color: #2563eb;
  font-weight: 700;
  background-color: var(--comment-mention);
  border-radius: 27px;
  padding: 3px 8px 5px 7px;
  display: inline-flex;
  align-items: center;
  line-height: 1.8;
}

.comment-content p {
  margin: 0 0 10px;
  color: var(--color);
  word-break: break-word;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.comment-content pre {
  background: rgb(0 0 0 / .05);
  padding: 12px;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 14px;
}

.comment-content code {
  font-family: "Courier New", monospace;
  background: rgb(0 0 0 / .05);
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 14px;
}

.comment-content blockquote {
  border-left: 3px solid var(--accent-color);
  padding-left: 12px;
  margin-left: 0;
  color: var(--light-text);
}

.comment-footer {
  margin-top: 12px;
  display: flex;
  gap: 15px;
  font-size: 14px;
  color: var(--light-text);
  align-items: center;
}

.comment-footer span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.reply-btn,
.toggle-replies-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
}

.toggle-replies-btn i {
  transition: transform 0.2s;
}

.toggle-replies-btn.expanded i {
  transform: rotate(180deg);
}

.show-more {
  background: none;
  border: none;
  color: var(--primary-color);
  font-weight: 500;
  cursor: pointer;
  margin: 20px auto 0;
  display: block;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: inherit;
}

.verified-badge {
  color: var(--success-color);
  font-size: 14px;
  margin-left: 4px;
}

.reply-input-container {
  margin-top: 15px;
  display: none;
}

.reply-input {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 15px;
}

.reply-input textarea {
  width: 100%;
  border: none;
  padding: 16px;
  font-size: 15px;
  resize: none;
  min-height: 80px;
  font-family: outfit;
  box-sizing: border-box;
}

.reply-input textarea:focus {
  outline: none;
}

.reply-input .comment-toolbar {
  padding: 8px 16px;
  background-color: var(--background);
  border-top: 1px solid var(--border-color);
}

@media (max-width:768px) {
  .comment-box {
    padding: 0;
  }
  .comment.reply {
    margin-left: 0px !important;
  }
}

@media (max-width:600px) {
  .comment.reply {
    margin-left: 0px !important;
  }
  .comment-header {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
}

@media (max-width:480px) {
  .comment-box {
    padding: 0;
  }
  .comment.reply {
    margin-left: 0px !important;
  }
  .submit-btn {
    width: 100%;
    justify-content: center;
  }
}

.name-input-container {
  padding: 12px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.input-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.name-input,
.email-input {
  width: 100%;
  border: var(--commentborder);
  padding: 8px 12px;
  border-radius: 6px;
  font-family: outfit;
  font-size: 14px;
  box-sizing: border-box;
  background-color: var(--commentbg);
  color: var(--color);
}

.name-input:focus,
.email-input:focus {
  outline: none;
  border-color: var(--accent-color);
}

.name-input::placeholder,
.email-input::placeholder {
  color: var(--light-text);
}

@media (min-width:600px) {
  .name-input-container {
    flex-direction: row;
    gap: 16px;
  }
  .input-wrapper {
    width: 50%;
  }
}

.comment-footer .delete-btn {
  background: #fff0;
  color: #e74c3c;
  border: none;
  cursor: pointer;
  font-size: .85rem;
  margin-left: 10px;
}

.comment-footer .delete-btn:hover {
  text-decoration: underline;
}

.comment-avatar-gradient {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: hsla(18, 71%, 49%, 1);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1885 1885' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"), radial-gradient(circle at 98% 98%, hsla(0, 0%, 2%, 1) 15%, transparent 63.310997437284335%), radial-gradient(circle at 3% 6%, hsla(18, 72%, 49%, 1) 15%, transparent 65%), radial-gradient(circle at 46% 98%, hsla(240, 0%, 2%, 1) 20.593893049449022%, transparent 49.606606188780056%), radial-gradient(circle at 97% 7%, hsla(240, 7%, 29%, 1) 15%, transparent 65%), radial-gradient(circle at 3% 6%, hsla(18, 72%, 49%, 1) 15%, transparent 65%), radial-gradient(circle at 3% 101%, hsla(0, 0%, 2%, 1) 13.797574811818231%, transparent 65%);
  background-blend-mode: overlay, normal, normal, normal, normal, normal, normal;
}

.loading-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #ccc;
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: -2px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-width: 2px;
  border-style: solid;
  border-color: #fff rgb(255 255 255 / .3) rgb(255 255 255 / .3);
  border-image: initial;
  border-radius: 50%;
  animation: 0.6s linear 0s infinite normal none running spin;
  vertical-align: middle;
  margin-right: 6px;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.loader {
  border-right: 3px solid rgb(0 0 0 / .1);
  border-bottom: 3px solid rgb(0 0 0 / .1);
  border-left: 3px solid rgb(0 0 0 / .1);
  border-image: initial;
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: 0.3s linear 0s infinite normal none running spin;
  display: block;
  margin: 10px auto;
}

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: 200px 0;
  }
}

.skeletoncom {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 12px;
  border: var(--border);
}

.skeletoncom-circle {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bookmark-shimmer);
  background-size: 200% 100%;
  animation: shimmer 2.5s infinite linear;
}

.skeletoncom-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeletoncom-line {
  height: 10px;
  margin-bottom: 8px;
  border-radius: 5px;
  background: var(--bookmark-shimmer);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
  margin-top: 0;
}

.skeletoncom-line.short {
  width: 30%;
}

.skeletoncom-line.medium {
  width: 50%;
}

.skeletoncom-line.long {
  width: 80%;
}

.skeletoncom-line:last-child {
  margin-bottom: 0;
}

.spinner-btn {
  border-right: 3px solid rgb(0 0 0 / .1);
  border-bottom: 3px solid rgb(0 0 0 / .1);
  border-left: 3px solid rgb(0 0 0 / .1);
  border-image: initial;
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  animation: 0.8s linear 0s infinite normal none running spin;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.char-counter {
  position: absolute;
  bottom: 55px;
  right: 10px;
  font-size: 12px;
  color: var(--accordionbg);
  background: var(--solid-fill);
  border-radius: 5px;
  padding: 0 6px 0 6px;
  backdrop-filter: blur(10px);
}

.load-more-btn {
  margin: 20px auto;
  display: block;
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  font-family: inherit;
  transition: background 0.3s;
}

.load-more-btn:hover {
  background-color: #0056b3;
}

.comment-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / .6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.comment-modal-overlay.active {
  display: flex;
  animation: 0.25s ease-out 0s 1 normal forwards running fadeIn;
}

.comment-mdl {
  background: #fff;
  border-radius: 16px;
  width: 95%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: rgb(0 0 0 / .25) 0 20px 60px;
  animation: 0.3s ease 0s 1 normal forwards running modalScaleIn;
  position: relative;
  transform-origin: center center;
  transition: 0.3s;
  border: var(--border);
}

.comment-mdl.closing {
  animation: 0.3s ease 0s 1 normal forwards running modalScaleOut;
}

.comment-mdl-header {
  padding: 14px 20px;
  border-bottom: var(--border);
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--Mainbg);
}

.comment-close-btn {
  width: 14px;
  height: 14px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #ff5f57;
  cursor: pointer;
  font-size: 0;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.comment-close-btn:hover {
  filter: brightness(0.9);
  transform: scale(1.1);
}

.comment-mdl-body {
  padding: 20px;
  flex-grow: 1;
  overflow-y: auto;
  position: relative;
  background: var(--Mainbg);
}

.comment-mdl-footer {
  border-top: var(--border);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  color: var(--color);
  position: relative;
  background: var(--Mainbg);
}

.scroll-to-top-btn {
  width: 34px;
  height: 34px;
  background: var(--search-header-x);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: rgb(0 0 0 / .1) 0 2px 6px;
  transition: background 0.2s;
  color: var(--color);
}

.scroll-to-top-btn:hover {
  background: #dcdcdc;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes modalScaleIn {
  0% {
    transform: scale(.9);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes modalScaleOut {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(.9);
    opacity: 0;
  }
}

@keyframes slideUp {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0%);
    opacity: 1;
  }
}

@keyframes slideDown {
  0% {
    transform: translateY(0%);
    opacity: 1;
  }
  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}

@media (max-width:600px) {
  .comment-modal-overlay {
    align-items: flex-end;
  }
  .comment-mdl {
    width: 100%;
    max-height: 70vh;
    border-radius: 16px 16px 0 0;
    animation: 0.3s ease 0s 1 normal forwards running slideUp;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }
  .comment-mdl.closing {
    animation: 0.3s ease 0s 1 normal forwards running slideDown;
  }
}

@media (min-width:601px) and (max-width:1024px),
(min-device-width:601px) and (max-device-width:1024px) and (orientation:portrait) {
  .comment-modal-overlay {
    align-items: flex-end;
  }
  .comment-mdl {
    width: 100%;
    max-height: 60vh;
    border-radius: 16px 16px 0 0;
    animation: 0.3s ease 0s 1 normal forwards running slideUp;
    border-left: none;
    border-right: none;
    border-bottom: none;
    max-width: none;
  }
  .comment-mdl.closing {
    animation: 0.3s ease 0s 1 normal forwards running slideDown;
  }
}

.comment-disabled-notice {
  text-align: center;
  background: var(--footerbg);
  border: var(--border);
  border-radius: 12px;
  padding: 30px 24px 24px;
  margin: 24px 0;
}

.comment-disabled-notice-icon {
  width: 46px;
  height: 46px;
  background: var(--Mainbg);
  border: var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--beige-dual);
  font-size: 19px;
  margin: 0 auto 14px;
}

.comment-disabled-notice-content {
  text-align: center;
}

.comment-disabled-notice-title {
  font-weight: 600;
  color: var(--beige-dual);
  margin-bottom: 5px;
  font-size: 15px;
  letter-spacing: 0.2px;
}

.comment-disabled-notice-text {
  font-size: 13.5px;
  color: var(--color);
  line-height: 1.6;
  max-width: 380px;
  margin: 0 auto;
}
