/* Post description Read more modal fix */
body.rp-desc-modal-open {
  overflow: hidden !important;
}

#rpDescModal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 6, 23, 0.58) !important;
  backdrop-filter: blur(3px);
}

#rpDescModal.is-open {
  display: flex !important;
}

#rpDescModal .rp-desc-dialog {
  position: relative;
  width: min(760px, calc(100vw - 28px));
  max-height: calc(100vh - 52px);
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.32);
  transform: translateY(0);
}

#rpDescModal .rp-desc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #075f45 0%, #0f7a5a 58%, #126a9a 100%);
  color: #ffffff;
}

#rpDescModal .rp-desc-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 900;
}

#rpDescModal .rp-desc-close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#rpDescModal .rp-desc-close:hover,
#rpDescModal .rp-desc-close:focus {
  background: #ffffff;
  color: #075f45;
  outline: none;
}

#rpDescModal .rp-desc-body {
  max-height: calc(100vh - 156px);
  overflow: auto;
  padding: 22px;
  color: #172033;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 550;
}

#rpDescModal .rp-desc-body h1,
#rpDescModal .rp-desc-body h2,
#rpDescModal .rp-desc-body h3,
#rpDescModal .rp-desc-body h4 {
  margin: 0 0 12px;
  color: #172033;
  font-weight: 900;
  line-height: 1.25;
}

#rpDescModal .rp-desc-body p {
  margin: 0 0 12px;
}

#rpDescModal .rp-desc-body ul,
#rpDescModal .rp-desc-body ol {
  margin: 0 0 14px 22px;
  padding: 0;
}

#rpDescModal .rp-desc-body li {
  margin: 0 0 8px;
}

#rpDescModal .rp-desc-footer {
  display: flex;
  justify-content: flex-end;
  padding: 14px 20px 18px;
  border-top: 1px solid #e5e7eb;
  background: #f8fafc;
}

#rpDescModal .rp-desc-btn {
  border: 0;
  cursor: pointer;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 14px;
  background: #075f45;
  color: #ffffff;
  font-weight: 900;
}

#rpDescModal .rp-desc-btn:hover,
#rpDescModal .rp-desc-btn:focus {
  background: #064b38;
  outline: none;
}

.rp-desc-readmore,
.rp-read-more,
.read-more,
.readmore {
  cursor: pointer;
}

@media (max-width: 640px) {
  #rpDescModal {
    padding: 14px;
  }
  #rpDescModal .rp-desc-head {
    padding: 15px 16px;
  }
  #rpDescModal .rp-desc-title {
    font-size: 17px;
  }
  #rpDescModal .rp-desc-body {
    padding: 17px;
    font-size: 15px;
  }
}
