/* Modal container */
.ui-dialog {
  border: none !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
  padding: 0 !important;
  overflow: hidden;
  font-family: inherit;
}

/* Header */
.ui-dialog-titlebar {
  display: none !important;
}

/* Close button */
.ui-dialog-titlebar-close {
  background: transparent !important;
  border: none !important;
  color: #fff !important;
  font-size: 18px;
}

/* Content area */
.ui-dialog-content {
  padding: 20px !important;
  background: #fff !important;
  max-height: 80vh;
  overflow-y: auto;
}

/* Footer (optional) */
.ui-dialog-buttonpane {
  border-top: 1px solid #eee !important;
  padding: 10px 16px !important;
  background: #f8f9fa;
}

/* Overlay (background blur) */
.ui-widget-overlay {
  background: rgba(0,0,0,0.6) !important;
}
/* Modal Container */
.member-modal {
  padding: 24px;
}

/* Header */
.member-header {
  position: relative;
}

.member-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 90% 3%;
}

/* Close button */
.dialog-close {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
}
/* Close button */
.dialog-close {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 22px;
  background: transparent;
  border: none;
  color: #333;
  cursor: pointer;
  line-height: 1;
}

/* Optional hover */
.dialog-close:hover {
  color: #000;
}
/* Role badge */
.member-role {
  background: #cfeaf3;
  padding: 10px;
  border-radius: 20px;
  font-weight: 500;
  width: 100%;
}

/* Info section */
.member-info p {
  margin-bottom: 16px;
  font-size: 14px;
  color: #000;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.member-info strong {
  color: #000;
  font-weight: 600;
}
.custom-member-modal {
  width: 90% !important;
  max-width: 545px !important;
}

.custom-member-modal .ui-dialog {
  height: auto !important;
}
.custom-member-modal {
  top: 50% !important;
  transform: translateY(-50%);
}
/* Container */
.address-box {
  background: #e9ecef; /* light grey like screenshot */
  padding: 20px;
  border-radius: 8px;
}

/* Header */
.address-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6c757d;
  font-weight: 600;
  letter-spacing: 3px;  
  font-size: 13px;
}

/* Icon */
.address-header i {
  font-size: 16px;
}

/* Underline */
.address-line {
  width: 40px;
  height: 2px;
  background: #6c757d;
  margin: 8px 0 12px;
}

/* Content */
.address-content {
  font-size: 15px;
  color: #212529;
  line-height: 1.6;
}
@media (max-width: 768px) {

  /* Dialog box */
  .ui-dialog {
    width: 92% !important;
    left: 4% !important;
    right: 4% !important;
    top: 15vh !important;
    margin: 0 !important;
    transform: none !important;
    max-height: 50vh !important;
    display: flex;
    flex-direction: column;
  }

  /* Scrollable content */
  .ui-dialog .ui-dialog-content {
    max-height: 50vh;
    padding: 12px;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
  }

  /* Reduce inner spacing */
  .ui-dialog p {
    margin-bottom: 6px;
  }

  /* Optional: make cards compact */
  .ui-dialog .card,
  .ui-dialog .address-box {
    padding: 10px !important;
    font-size: 14px;
  }
  .member-modal{
    padding: 0;
  }
}