.event-wrapper.checkout-invitation-page,
.event-wrapper.rsvp-invitation-page,
.event-wrapper.checkout-status-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.event-wrapper.checkout-invitation-page .event-main-content,
.event-wrapper.rsvp-invitation-page .event-main-content,
.event-wrapper.checkout-status-page .event-main-content {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.event-wrapper.checkout-status-page #hkust-mcp-checkout{
  width: 100%;
}

.hkust-non-invited-page {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 0;
}

.hkust-non-invited-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(195, 198, 209, 0.45);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 51, 102, 0.08);
}

.hkust-non-invited-card__media {
  position: relative;
  min-height: 280px;
  background: #fff;
}

.hkust-non-invited-card__image {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: contain;
  display: block;
}

.hkust-non-invited-card__image-placeholder {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #003366;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hkust-non-invited-card__content {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
  padding: 0 28px;
}

.hkust-non-invited-card__header{
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hkust-non-invited-card__title {
  margin: 0 16px 16px 16px;
  color: #003366;
  font-family: Manrope, Inter, "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  font-size: 20px;
}

.hkust-non-invited-card__event_detail{
  margin-bottom: 16px;
}

.hkust-non-invited-card__event {
  margin: 8px 0;
  color: #3b475d;
  font-family: Manrope, Inter, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;

}

.hkust-status-message-page .hkust-non-invited-card__description , .hkust-non-invited-card__description {
  margin: 0;
  color: #8c8c8c;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.6;
}

/* Date/time rows: same stroke icons as checkout / RSVP (see theme main.css). */
.hkust-non-invited-card__datetime {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #4a5568;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.hkust-non-invited-card__datetime .event_date h3,
.hkust-non-invited-card__datetime .event_time h3,
.hkust-non-invited-card__datetime .event_venue h3 {
  font-size: 14px;
  font-weight: 500;
  color: #4a5568;
  margin: 0;
  display: flex;
  gap: 8px;
}

.hkust-non-invited-card__datetime .event_date h3::before,
.hkust-non-invited-card__datetime .event_time h3::before,
.hkust-non-invited-card__datetime .event_venue h3::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 7px;
}

.hkust-non-invited-card__datetime .event_date h3::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") no-repeat center / contain;
}

.hkust-non-invited-card__datetime .event_time h3::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E") no-repeat center / contain;
}

.hkust-non-invited-card__datetime .event_venue h3::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") no-repeat center / contain;
}

.hkust-non-invited-card__actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.hkust-non-invited-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: Manrope, Inter, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: box-shadow 0.5s ease, background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}

.hkust-non-invited-btn:hover{
  text-decoration: none;
}

.hkust-non-invited-btn--primary {
  background: #003366;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 51, 102, 0.14);
  gap: 8px;
}

/* Envelope icon before "Contact Organizer" (stroke, matches date/time icons). */
.hkust-non-invited-btn--primary::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E") no-repeat center / contain;
}

.hkust-non-invited-btn--primary:hover {
  background: #0b3f74;
  color: #ffffff;
}

.hkust-non-invited-btn--secondary {
  background: #edf3ff;
  border-color: #c8d9f7;
  color: #1f477b;
}

.hkust-non-invited-btn--secondary:hover {
  background: #e1ecff;
  color: #1f477b;
}

.hkust-non-invited-btn--ghost {
  background: #f3f4f5;
  color: #3b475d;
  border-color: rgba(115, 119, 128, 0.25);
}

.hkust-non-invited-btn--ghost:hover {
  background: #e9ebee;
  color: #2e3132;
}

.hkust-non-invited-btn.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

@media (min-width: 960px) {
  .hkust-non-invited-card {
    flex-direction: row;
    min-height: 440px;
  }

  .hkust-non-invited-card__media {
    flex: 0 0 60%;
    min-height: 440px;
    padding: 28px;
  }

  .hkust-non-invited-card__image,
  .hkust-non-invited-card__image-placeholder {
    min-height: 440px;
  }

  .hkust-non-invited-card__content {
    flex: 0 0 40%;
    padding: 28px;
    border-left: 1px solid rgba(195, 198, 209, 0.45);
  }

  .hkust-non-invited-card__description{
    text-align: left;
  }

  .hkust-non-invited-card__event_detail{
    margin-bottom: 0;
  }

  .hkust-non-invited-card__actions{
    flex-direction: column;
  }

  .hkust-status-message-page .hkust-non-invited-card__actions {
    align-items: flex-start;
  }
}

@media(max-width: 430px){
  .hkust-non-invited-card__actions{
    flex-direction: column;
  }
}