/* Comments Section Styles */

/* Container Styles */
.general-tablet.s-detail .component-comments,
.general-tablet.s-detail .component-comments-2 {
  gap: 30px;
  padding: 50px 0;
  background-color: #f9f9f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}


.general-tablet.s-detail .component-comments-3 {
  gap: 30px;
  padding: 80px 0;
  background-color: #f9f9f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.general-tablet.s-detail .component-comments-4 {
  gap: 30px;
  padding: 100px 0;
  background-color: #f9f9f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.general-tablet.s-detail .component-comments > *,
.general-tablet.s-detail .component-comments-4 > * {
  width: 100%;
  padding-left: 30px;
  padding-right: 30px;
  align-self: center !important;
}

.general-tablet.s-detail .component-comments-2 > * {
  width: 100%;
  padding-left: 50px;
  padding-right: 50px;
  align-self: center !important;
}

.general-tablet.s-detail .component-comments-3 > * {
  width: 100%;
  padding-left: 80px;
  padding-right: 80px;
  align-self: center !important;
}

/* Desktop overrides for width */
@media (min-width: 1440px) {
  .general-tablet.s-detail .component-comments > *,
  .general-tablet.s-detail .component-comments-2 > *,
  .general-tablet.s-detail .component-comments-3 > *,
  .general-tablet.s-detail .component-comments-4 > * {
    max-width: 1024px;
  }
}

/* Comment Entry Box */
.general-tablet.s-detail .comment-entry {
  flex-direction: column;
  align-items: center;
  gap: 32px;
  display: flex;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.general-tablet.s-detail .text-area {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  padding: 16px;
  position: relative;
  flex: 1;
  flex-grow: 1;
  background-color: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid;
  border-color: #e2e8f0;
}

.interactive-comment-box {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}

.comment-input {
  flex: 1;
  width: 100%;
  border: none;
  outline: none;
  resize: vertical;
  font-family: "DM Sans", Helvetica;
  font-size: 14px;
  color: #111111;
  background: transparent;
  min-height: 40px;
  padding: 5px 0;
}

.comment-input::placeholder {
  color: #999;
}

.comment-submit-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.comment-submit-btn:hover {
  transform: scale(1.1);
}

.general-tablet.s-detail .button-icon {
  position: relative;
  width: 40px;
  height: 40px;
}

/* Comment List */
.general-tablet.s-detail .comment-set {
  flex-direction: column;
  align-items: flex-start;
  gap: 29px;
  display: flex;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

/* Individual Comment Item */
.general-tablet.s-detail .div-17,
.general-tablet.s-detail .div-26 {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.general-tablet.s-detail .avatar,
.general-tablet.s-detail .avatar-2,
.general-tablet.s-detail .avatar-3,
.general-tablet.s-detail .avatar-4 {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-size: cover;
  background-position: 50% 50%;
  flex-shrink: 0;
}

.general-tablet.s-detail .info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  position: relative;
  flex: 1;
  flex-grow: 1;
}

.general-tablet.s-detail .name-date-options,
.general-tablet.s-detail .name-date-options-2 {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.general-tablet.s-detail .name-date,
.general-tablet.s-detail .name-date-2 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  position: relative;
  flex: 1;
  flex-grow: 1;
}

.general-tablet.s-detail .name,
.general-tablet.s-detail .name-2 {
  position: relative;
  width: fit-content;
  margin-top: -1.00px;
  font-family: "DM Sans", Helvetica;
  font-weight: 700;
  color: #111111;
  font-size: 15px;
  line-height: 18.0px;
  white-space: nowrap;
}

.general-tablet.s-detail .date {
  position: relative;
  width: fit-content;
  font-family: "DM Sans", Helvetica;
  font-weight: 400;
  color: #666666;
  font-size: 13px;
  letter-spacing: 0;
  line-height: 15.6px;
  white-space: nowrap;
}

.general-tablet.s-detail .comment {
  position: relative;
  align-self: stretch;
  font-family: "DM Sans", Helvetica;
  font-weight: 400;
  color: #111111;
  font-size: 14px;
  letter-spacing: 0;
  line-height: 25.2px;
}

/* Likes and Reply Actions */
.general-tablet.s-detail .likes-reply,
.general-tablet.s-detail .likes-reply-2 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  align-self: stretch;
  width: 100%;
  position: relative;
  flex: 0 0 auto;
}

.general-tablet.s-detail .likes-2 {
  display: inline-flex;
  align-items: baseline;
  gap: 25px;
  position: relative;
  flex: 0 0 auto;
}

.likes-2 .div-2, .likes .div-2 {
  cursor: pointer;
  transition: transform 0.2s ease;
  padding: 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.likes-2 .div-2:hover, .likes .div-2:hover {
  background-color: rgba(0,0,0,0.05);
}

.likes-2 .div-2.active .text-wrapper-3,
.likes .div-2.active .text-wrapper-3,
.likes-2 .div-2.active .icon-7 {
  color: #ce4257;
}

.general-tablet.s-detail .text-wrapper-20 {
  position: relative;
  width: fit-content;
  font-family: "DM Sans", Helvetica;
  font-weight: 700;
  color: #111111;
  font-size: 14px;
  letter-spacing: 0;
  line-height: 14px;
  white-space: nowrap;
}

    .general-tablet.s-detail .icon-7 {
      position: relative;
      width: fit-content;
      font-family: "Font Awesome 6 Sharp-Regular", Helvetica;
      color: #666666;
      font-size: 16px;
      text-align: center;
      letter-spacing: 0;
      line-height: 16px;
      white-space: nowrap;
      transition: color 0.2s ease;
    }

    .general-tablet.s-detail .icon-4 {
      position: relative;
      width: fit-content;
      font-family: "Font Awesome 6 Sharp-Regular", Helvetica;
      color: #666666;
      font-size: 14px;
      text-align: center;
      letter-spacing: 0;
      line-height: normal;
      white-space: nowrap;
      transition: color 0.2s ease;
    }

    /* Override text-wrapper-3 in comments to match icon-7 style */
    .general-tablet.s-detail .component-comments .text-wrapper-3,
    .general-tablet.s-detail .component-comments-2 .text-wrapper-3,
    .general-tablet.s-detail .component-comments-3 .text-wrapper-3,
    .general-tablet.s-detail .component-comments-4 .text-wrapper-3 {
      font-family: "Font Awesome 6 Sharp-Regular", Helvetica;
      color: #666666;
      transition: color 0.2s ease;
    }

/* Replies Styles */
.replies-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.replies-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px 0;
  transition: opacity 0.2s;
}

.replies-toggle:hover {
  opacity: 0.8;
}

.toggle-icon {
  transition: transform 0.3s ease;
}

.replies-toggle[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
}

.replies-container {
  width: 100%;
  padding-left: 20px;
  margin-top: 15px;
  border-left: 2px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.replies-container.hidden {
  display: none;
}

.comment-reply {
  display: flex;
  gap: 12px;
  padding: 10px;
  background-color: #ffffff;
  border-radius: 8px;
}

.reply-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #ce4257;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}

.reply-content {
  flex: 1;
}

.reply-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.reply-name {
  font-family: "DM Sans", Helvetica;
  font-weight: 700;
  font-size: 13px;
  color: #111111;
}

.reply-date {
  font-family: "DM Sans", Helvetica;
  font-weight: 400;
  font-size: 12px;
  color: #666666;
}

.reply-text {
  font-family: "DM Sans", Helvetica;
  font-weight: 400;
  font-size: 13px;
  color: #333333;
  line-height: 1.4;
}

/* Tabs (Popular/Newest) */
.general-tablet.s-detail .tab-group {
  display: inline-flex;
  align-items: flex-start;
  padding: 4px;
  position: relative;
  flex: 0 0 auto;
  background-color: #ce4257;
  border-radius: 9999px;
}

.general-tablet.s-detail .tab-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  position: relative;
  flex: 0 0 auto;
  border-radius: 1234px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.general-tablet.s-detail .tab-item:hover, 
.general-tablet.s-detail .tab-item-2:hover {
  opacity: 0.9;
}

.general-tablet.s-detail .tab-item-2 {
  background-color: #ffffff;
  box-shadow: 0px 2px 4px -2px rgba(23, 23, 23, 0.06), 0px 4px 8px -2px rgba(23, 23, 23, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  position: relative;
  flex: 0 0 auto;
  border-radius: 1234px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.general-tablet.s-detail .text-wrapper-15 {
  position: relative;
  width: fit-content;
  margin-top: -1.00px;
  font-family: "DM Sans", Helvetica;
  font-weight: 700;
  color: #ffffff;
  font-size: 14px;
  letter-spacing: -0.08px;
  line-height: 20px;
  white-space: nowrap;
}

.general-tablet.s-detail .text-wrapper-16 {
  position: relative;
  width: fit-content;
  margin-top: -1.00px;
  font-family: "DM Sans", Helvetica;
  font-weight: 700;
  color: #111111;
  font-size: 14px;
  letter-spacing: -0.08px;
  line-height: 20px;
  white-space: nowrap;
}

.general-tablet.s-detail .vector {
  position: relative;
  width: 14.5px;
  height: 9.5px;
}

.general-tablet.s-detail .vector-2 {
  position: relative;
  width: 12.5px;
  height: 13.5px;
}

.general-tablet.s-detail .div-18 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  align-self: stretch;
  width: 100%;
  position: relative;
  flex: 0 0 auto;
}

.general-tablet.s-detail .text-wrapper-14,
.general-tablet.s-detail .text-wrapper-38 {
  position: relative;
  font-family: "DM Sans", Helvetica;
  font-weight: 700;
  color: var(--colors-global-black);
  font-size: 18px;
  letter-spacing: 0;
}
