/* Overlay for modal */
.rcd-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.rcd-modal-overlay.active {
  opacity: 1;
  pointer-events: auto !important;
}
/* Overlay for modal END */

/* Share modal */
.rcd-custom-share-modal {
  position: fixed;
  bottom: -100%; /* Initially hidden */
  left: 0;
  right: 0;
  margin: 0 auto;
  max-width: 580px; /* limit width on large screens */
  width: 100%;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999 !important;
  transition: bottom 0.4s ease-in-out;
  padding: 0 !important;
}

/* When modal is active */
.rcd-custom-share-modal.active {
  bottom: 0;
}

/* Header */
.rcsm-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 0px;
}

.rcsm-header h4.rc-modal-title {
  font-size: 20px !important;
}

.rcsm-header .rcsm-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px;
  border-radius: 100%;
  font-size: 20px;
  background: #f0f0f0;
  cursor: pointer;
}

.rcsm-header .rcsm-close-btn:hover {
  background: #e0e0e0;
}
/* Header END */

/* Body Content */

.rcsm-body {
  padding: 15px !important;
}

.rcsm-body .rcsm-author {
  display: flex;
  align-items: center;
  margin-bottom: 15px !important;
}

.rcsm-author .image {
  overflow: hidden;
  height: 62px !important;
  width: 62px !important;
  border-radius: 100%;
  margin-right: 12px !important;
}

.rcsm-author .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rcsm-author .meta .title {
  font-size: 18px !important;
  margin-bottom: 5px !important;
}

.rcsm-author .meta .btn-group {
  display: flex;
  gap: 12px;
}

.rcsm-author .meta button.dropdown-btn {
  background: #f0f0f0;
  border: none;
  border-radius: 12px;
  padding: 8px 16px;
  color: #292929;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  transition: background-color 0.3s ease;
  min-width: 90px;
  justify-content: center;
}

.rcsm-author .meta button.dropdown-btn .dropdown-text {
  display: flex;
  align-items: center;
  gap: 4px !important;
}

.rcsm-author .meta button.dropdown-btn:hover,
.rcsm-author .meta button.dropdown-btn:focus {
  background: #e0e0e0;
  outline: none;
}

.rcsm-author .meta svg.chevron {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: #292929;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
  pointer-events: none;
}

.dpd-item {
  padding: 8px 14px !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dpd-item:hover {
  background: #e0e0e0;
}

.rcd-textarea textarea {
  width: 100%;
  background: transparent !important;
  border: none !important;
  padding: 10px !important;
  font-size: 15px !important;
  resize: none; /* Disable manual resize */
  overflow-y: hidden; /* Hide scrollbars */
  min-height: 3em; /* Or your preferred row height */
  max-height: 15rem !important;
  margin-bottom: 5px !important;
}

.rcsm-submit-btn {
  background-color: #b21923 !important;
  color: #ffffff !important;
  padding: 0 36px !important;
  border-radius: 12px !important;
}

.rcsm-submit-btn:hover {
  color: #fff;
  background-color: #96161f !important;
}

.rcsm-post-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rcsm-post-actions .rcsm-pa-act {
  display: flex;
  align-items: center;
  gap: 8px !important;
}
.rcsm-pa-act span {
  cursor: pointer !important;
}
.rcsm-pa-act span svg {
  stroke: #666;
}

.rcsm-pa-act span:hover>svg {
  stroke: #363636;
}

.rcsm-separator {
  margin: 6px 0;
}

.rcsm-common-icons {
    display: flex;
    align-items: center;
    gap: 24px;
    overflow-x: auto;  /* Scroll horizontally */
    overflow-y: hidden; /* Prevent vertical scroll */
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.rcsm-common-icons::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.rcsm-common-icons > * {
    flex-shrink: 0;
}

.rcsm-icon {
    width: 70px; 
    height: 70px; 
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex; 
    align-items: center;
    justify-content: center; 
    transition: background-color 0.3s;
    padding: 5px;
    color: #3e3e3e;
    font-size: 24px;
}
.rcsm-icon:hover {
    background-color: #d7d7d7;
    cursor: pointer; 
}

.rcsm-icon-hint {
  font-size: 14px;
  color: #3e3e3e;
  margin-top: 8px !important;
  margin-bottom: 0 !important;
  text-align: center;
  width: 100%;
}

.rcsm-icon::before {
    content: "";
}

.rc-footer-title {
  font-size: 20px !important;
  margin-bottom: 12px !important;
}

.rcd-hint-holder {
  padding: 10px 20px;
  border-radius: 10px;
  margin: 14px 0;
}

.rcd-hint-holder.success {
  background-color: #1f4209;
  color: #5fee0c;
}

.rcd-hint-holder.danger{
  background-color: #420909;
  color: #ee0c0c;
}

.rcsmPaActEmoji {
  position: relative; /* So the picker is positioned relative to this icon */
}

.rcsmPaActEmoji .rcsm-emoji-holder {
  position: absolute;
  bottom: 110%; /* Push it above the trigger */
  right: calc(100% + 20px); /* Place it on the left side of the trigger with gap */
  width: 280px;
  height: 260px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  z-index: 99999;

  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 10px;

  overflow-y: auto; /* Scroll vertically */
  overflow-x: hidden; /* Disable horizontal scroll */
}

/* Optional scrollbar styling */
.rcsmPaActEmoji .rcsm-emoji-holder::-webkit-scrollbar {
  width: 6px;
}
.rcsmPaActEmoji .rcsm-emoji-holder::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}


/* Body Content END */

/* Responsive */
@media (max-width: 765px) {
  .rcd-custom-share-modal {
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    left: 0;
    right: 0;
  }
}