
/**
 * @file
 * MyEvent group-management pages.
 *
 * Reference implementation: /group/{group}/itinerary
 *
 * This layer styles native/module management output so pages such as
 * Itinerary, Ceremony, Tickets and similar group-management screens feel
 * like part of the same MyEvent application.
 *
 * It intentionally does not style the public Event Companion itself.
 */

/* ------------------------------------------------------------------ */
/* Management page content width and rhythm                           */
/* ------------------------------------------------------------------ */

body.path-group #block-myevent-theme-content:has(> .ptah-rsvp-actions) {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 48px;
}

body.path-group #block-myevent-theme-content:has(> .ptah-rsvp-actions)
  > .ptah-rsvp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 0 14px;
}

/* ------------------------------------------------------------------ */
/* Primary management action                                          */
/* ------------------------------------------------------------------ */

body.path-group #block-myevent-theme-content
  > .ptah-rsvp-actions > a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--myevent-ui-primary);
  border-radius: 9px;
  background: var(--myevent-ui-primary);
  color: #fff !important;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

body.path-group #block-myevent-theme-content
  > .ptah-rsvp-actions > a:hover,
body.path-group #block-myevent-theme-content
  > .ptah-rsvp-actions > a:focus-visible {
  border-color: var(--myevent-ui-primary-hover);
  background: var(--myevent-ui-primary-hover);
  color: #fff !important;
  text-decoration: none;
}

/* Lightweight plus icon without changing module markup. */
body.path-group #block-myevent-theme-content
  > .ptah-rsvp-actions > a::before {
  content: "+";
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(255 255 255 / .7);
  border-radius: 50%;
  color: #fff;
  font-size: .9rem;
  font-weight: 500;
  line-height: 1;
}

/* ------------------------------------------------------------------ */
/* Table container                                                    */
/* ------------------------------------------------------------------ */

body.path-group #block-myevent-theme-content
  > .ptah-rsvp-actions + .solo-table-wrapper {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--myevent-ui-border);
  border-radius: 9px;
  background: #fff;
}

body.path-group #block-myevent-theme-content
  > .ptah-rsvp-actions + .solo-table-wrapper
  .tableresponsive-toggle-columns {
  margin: 0;
}

body.path-group #block-myevent-theme-content
  > .ptah-rsvp-actions + .solo-table-wrapper
  .tableresponsive-toggle {
  margin: 8px 10px 0 auto;
  color: var(--myevent-ui-primary);
  font-size: .74rem;
  font-weight: 700;
}

/* ------------------------------------------------------------------ */
/* Native table treatment                                             */
/* ------------------------------------------------------------------ */

body.path-group #block-myevent-theme-content
  > .ptah-rsvp-actions + .solo-table-wrapper
  > table.solo-table-all {
  width: 100%;
  margin: 0;
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 9px;
  background: #fff !important;
}

body.path-group #block-myevent-theme-content
  > .ptah-rsvp-actions + .solo-table-wrapper
  > table.solo-table-all thead,
body.path-group #block-myevent-theme-content
  > .ptah-rsvp-actions + .solo-table-wrapper
  > table.solo-table-all thead tr,
body.path-group #block-myevent-theme-content
  > .ptah-rsvp-actions + .solo-table-wrapper
  > table.solo-table-all thead th {
  background: #fff !important;
  background-image: none !important;
}

body.path-group #block-myevent-theme-content
  > .ptah-rsvp-actions + .solo-table-wrapper
  > table.solo-table-all thead th {
  padding: 13px 16px;
  border: 0 !important;
  border-bottom: 1px solid var(--myevent-ui-border) !important;
  color: var(--myevent-ui-ink);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}

body.path-group #block-myevent-theme-content
  > .ptah-rsvp-actions + .solo-table-wrapper
  > table.solo-table-all tbody,
body.path-group #block-myevent-theme-content
  > .ptah-rsvp-actions + .solo-table-wrapper
  > table.solo-table-all tbody tr,
body.path-group #block-myevent-theme-content
  > .ptah-rsvp-actions + .solo-table-wrapper
  > table.solo-table-all tbody td {
  background: #fff !important;
  background-image: none !important;
}

body.path-group #block-myevent-theme-content
  > .ptah-rsvp-actions + .solo-table-wrapper
  > table.solo-table-all tbody td {
  padding: 15px 16px;
  border: 0 !important;
  border-bottom: 1px solid var(--myevent-ui-border) !important;
  color: var(--myevent-ui-text);
  font-size: .84rem;
  line-height: 1.45;
  vertical-align: middle;
}

body.path-group #block-myevent-theme-content
  > .ptah-rsvp-actions + .solo-table-wrapper
  > table.solo-table-all tbody tr:last-child td {
  border-bottom: 0 !important;
}

body.path-group #block-myevent-theme-content
  > .ptah-rsvp-actions + .solo-table-wrapper
  > table.solo-table-all tbody tr:hover td {
  background: #fbfcfe !important;
}

/* Status text should feel softer than an admin report. */
body.path-group #block-myevent-theme-content
  > .ptah-rsvp-actions + .solo-table-wrapper
  > table.solo-table-all tbody td:nth-last-child(2) {
  color: var(--myevent-ui-success);
  font-weight: 700;
}

/* ------------------------------------------------------------------ */
/* Dropbuttons / row operations                                       */
/* ------------------------------------------------------------------ */

body.path-group #block-myevent-theme-content
  .dropbutton-wrapper {
  min-width: 96px;
}

body.path-group #block-myevent-theme-content
  .dropbutton-widget {
  overflow: hidden;
  border: 1px solid #d8cdfb !important;
  border-radius: 9px !important;
  background: #fff !important;
  box-shadow: none !important;
}

body.path-group #block-myevent-theme-content
  .dropbutton {
  min-height: 36px;
  border: 0 !important;
  background: #fff !important;
}

body.path-group #block-myevent-theme-content
  .dropbutton-action a {
  display: flex;
  min-height: 36px;
  align-items: center;
  padding: 7px 11px;
  color: var(--myevent-ui-primary) !important;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
}

body.path-group #block-myevent-theme-content
  .dropbutton-toggle {
  border-left: 1px solid var(--myevent-ui-border);
}

body.path-group #block-myevent-theme-content
  .dropbutton-toggle button {
  min-height: 36px;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: var(--myevent-ui-primary) !important;
  box-shadow: none !important;
}

body.path-group #block-myevent-theme-content
  .dropbutton-action a:hover,
body.path-group #block-myevent-theme-content
  .dropbutton-action a:focus-visible,
body.path-group #block-myevent-theme-content
  .dropbutton-toggle button:hover,
body.path-group #block-myevent-theme-content
  .dropbutton-toggle button:focus-visible {
  background: var(--myevent-ui-primary-soft) !important;
}

body.path-group #block-myevent-theme-content
  .dropbutton .secondary-action a {
  color: var(--myevent-ui-danger) !important;
}

/* ------------------------------------------------------------------ */
/* Local tasks: MyEvent utility navigation rather than Solo buttons   */
/* ------------------------------------------------------------------ */

body.path-group #highlighted-inner
  #block-myevent-theme-primary-local-tasks nav.tabs {
  margin: 0 !important;
  padding: 14px 18px 16px;
  border-bottom: 1px solid var(--myevent-ui-border);
  background: #fff;
}

body.path-group #highlighted-inner
  #block-myevent-theme-primary-local-tasks ul.tabs.primary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.path-group #highlighted-inner
  #block-myevent-theme-primary-local-tasks li.task-local {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.path-group #highlighted-inner
  #block-myevent-theme-primary-local-tasks li.task-local > a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--myevent-ui-border);
  border-radius: 9px;
  background: #fff;
  color: var(--myevent-ui-muted);
  font-size: .75rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
}

body.path-group #highlighted-inner
  #block-myevent-theme-primary-local-tasks li.task-local > a:hover,
body.path-group #highlighted-inner
  #block-myevent-theme-primary-local-tasks li.task-local > a:focus-visible {
  border-color: #d7ccfb;
  background: var(--myevent-ui-primary-soft);
  color: var(--myevent-ui-primary);
}

body.path-group #highlighted-inner
  #block-myevent-theme-primary-local-tasks li.task-local.is-active > a,
body.path-group #highlighted-inner
  #block-myevent-theme-primary-local-tasks li.task-local > a.is-active {
  border-color: #d7ccfb;
  background: var(--myevent-ui-primary-soft);
  color: var(--myevent-ui-primary);
  font-weight: 750;
}

/* ------------------------------------------------------------------ */
/* Maintenance message integration                                    */
/* ------------------------------------------------------------------ */

body.path-group #highlighted-inner > .messages-list {
  margin: 0;
  padding: 16px 18px 0;
}

body.path-group #highlighted-inner .messages--status {
  margin: 0;
  border: 1px solid #c8eadc;
  border-radius: 9px;
  background: var(--myevent-ui-success-soft);
  color: #17694f;
  box-shadow: none;
}

body.path-group #highlighted-inner .messages--status a {
  color: #17694f;
  font-weight: 700;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                         */
/* ------------------------------------------------------------------ */

@media (max-width: 760px) {
  body.path-group #block-myevent-theme-content:has(> .ptah-rsvp-actions) {
    width: min(100% - 20px, 1180px);
    margin-top: 22px;
  }

  body.path-group #block-myevent-theme-content:has(> .ptah-rsvp-actions)
    > .ptah-rsvp-actions {
    justify-content: stretch;
  }

  body.path-group #block-myevent-theme-content
    > .ptah-rsvp-actions > a {
    width: 100%;
  }

  body.path-group #highlighted-inner
    #block-myevent-theme-primary-local-tasks nav.tabs {
    padding-inline: 10px;
  }
}


/* ------------------------------------------------------------------ */
/* Dropbutton overflow fix                                            */
/* ------------------------------------------------------------------ */

/*
 * Drupal's expanded dropbutton menu extends outside the table cell.
 * The previous management-page pass clipped it because both the table
 * wrapper and dropbutton widget were using overflow:hidden.
 */
body.path-group #block-myevent-theme-content
  > .ptah-rsvp-actions + .solo-table-wrapper {
  overflow: visible;
}

body.path-group #block-myevent-theme-content
  > .ptah-rsvp-actions + .solo-table-wrapper
  > table.solo-table-all {
  overflow: visible;
}

body.path-group #block-myevent-theme-content
  .dropbutton-wrapper,
body.path-group #block-myevent-theme-content
  .dropbutton-multiple,
body.path-group #block-myevent-theme-content
  .dropbutton-widget {
  overflow: visible !important;
}

body.path-group #block-myevent-theme-content
  .dropbutton-widget {
  position: relative;
  z-index: 3;
}

body.path-group #block-myevent-theme-content
  .dropbutton-wrapper.open,
body.path-group #block-myevent-theme-content
  .dropbutton-wrapper:focus-within {
  z-index: 20;
}

body.path-group #block-myevent-theme-content
  .dropbutton-wrapper.open .dropbutton,
body.path-group #block-myevent-theme-content
  .dropbutton-wrapper:focus-within .dropbutton {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 112px;
  overflow: visible;
  border: 1px solid #d8cdfb !important;
  border-radius: 9px !important;
  background: #fff !important;
  z-index: 25;
}

body.path-group #block-myevent-theme-content
  .dropbutton-wrapper.open .dropbutton-action,
body.path-group #block-myevent-theme-content
  .dropbutton-wrapper:focus-within .dropbutton-action {
  display: block;
  width: 100%;
}

body.path-group #block-myevent-theme-content
  .dropbutton-wrapper.open .secondary-action,
body.path-group #block-myevent-theme-content
  .dropbutton-wrapper:focus-within .secondary-action {
  position: static;
  display: block;
  width: 100%;
  border-top: 1px solid var(--myevent-ui-border);
}

body.path-group #block-myevent-theme-content
  .dropbutton-wrapper.open .dropbutton-action a,
body.path-group #block-myevent-theme-content
  .dropbutton-wrapper:focus-within .dropbutton-action a {
  width: 100%;
  white-space: nowrap;
}

/* Preserve rounded table corners visually without clipping menus. */
body.path-group #block-myevent-theme-content
  > .ptah-rsvp-actions + .solo-table-wrapper {
  border-radius: 9px;
}

body.path-group #block-myevent-theme-content
  > .ptah-rsvp-actions + .solo-table-wrapper
  > table.solo-table-all thead th:first-child {
  border-top-left-radius: 9px;
}

body.path-group #block-myevent-theme-content
  > .ptah-rsvp-actions + .solo-table-wrapper
  > table.solo-table-all thead th:last-child {
  border-top-right-radius: 9px;
}

body.path-group #block-myevent-theme-content
  > .ptah-rsvp-actions + .solo-table-wrapper
  > table.solo-table-all tbody tr:last-child td:first-child {
  border-bottom-left-radius: 9px;
}

body.path-group #block-myevent-theme-content
  > .ptah-rsvp-actions + .solo-table-wrapper
  > table.solo-table-all tbody tr:last-child td:last-child {
  border-bottom-right-radius: 9px;
}


/* ================================================================== */
/* Tickets management page                                            */
/* Reference: /group/{group}/tickets                                  */
/* ================================================================== */

body.path-group #block-myevent-theme-content
  > ul.links.solo-ul {
  display: flex;
  width: min(1180px, calc(100% - 32px));
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 34px auto 14px;
  padding: 0;
  list-style: none;
}

body.path-group #block-myevent-theme-content
  > ul.links.solo-ul > li {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.path-group #block-myevent-theme-content
  > ul.links.solo-ul > li > a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid #d8cdfb;
  border-radius: 9px;
  background: #fff;
  color: var(--myevent-ui-primary);
  font-size: .8rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

body.path-group #block-myevent-theme-content
  > ul.links.solo-ul > li:first-child > a {
  border-color: var(--myevent-ui-primary);
  background: var(--myevent-ui-primary);
  color: #fff;
}

body.path-group #block-myevent-theme-content
  > ul.links.solo-ul > li:first-child > a::before {
  content: "+";
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(255 255 255 / .7);
  border-radius: 50%;
  color: currentColor;
  font-size: .9rem;
  font-weight: 500;
  line-height: 1;
}

body.path-group #block-myevent-theme-content
  > ul.links.solo-ul > li > a:hover,
body.path-group #block-myevent-theme-content
  > ul.links.solo-ul > li > a:focus-visible {
  border-color: var(--myevent-ui-primary);
  background: var(--myevent-ui-primary-soft);
  color: var(--myevent-ui-primary);
}

body.path-group #block-myevent-theme-content
  > ul.links.solo-ul > li:first-child > a:hover,
body.path-group #block-myevent-theme-content
  > ul.links.solo-ul > li:first-child > a:focus-visible {
  border-color: var(--myevent-ui-primary-hover);
  background: var(--myevent-ui-primary-hover);
  color: #fff;
}

/* Ticket table container. */
body.path-group #block-myevent-theme-content
  > ul.links.solo-ul + .solo-table-wrapper {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 48px;
  overflow: visible;
  border: 1px solid var(--myevent-ui-border);
  border-radius: 9px;
  background: #fff;
}

/* Table. */
body.path-group #block-myevent-theme-content
  > ul.links.solo-ul + .solo-table-wrapper
  > table.solo-table-all {
  width: 100%;
  margin: 0;
  overflow: visible;
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 9px;
  background: #fff !important;
}

body.path-group #block-myevent-theme-content
  > ul.links.solo-ul + .solo-table-wrapper
  > table.solo-table-all thead,
body.path-group #block-myevent-theme-content
  > ul.links.solo-ul + .solo-table-wrapper
  > table.solo-table-all thead tr,
body.path-group #block-myevent-theme-content
  > ul.links.solo-ul + .solo-table-wrapper
  > table.solo-table-all thead th {
  background: #fff !important;
  background-image: none !important;
}

body.path-group #block-myevent-theme-content
  > ul.links.solo-ul + .solo-table-wrapper
  > table.solo-table-all thead th {
  padding: 13px 15px;
  border: 0 !important;
  border-bottom: 1px solid var(--myevent-ui-border) !important;
  color: var(--myevent-ui-ink);
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}

body.path-group #block-myevent-theme-content
  > ul.links.solo-ul + .solo-table-wrapper
  > table.solo-table-all tbody,
body.path-group #block-myevent-theme-content
  > ul.links.solo-ul + .solo-table-wrapper
  > table.solo-table-all tbody tr,
body.path-group #block-myevent-theme-content
  > ul.links.solo-ul + .solo-table-wrapper
  > table.solo-table-all tbody td {
  background: #fff !important;
  background-image: none !important;
}

body.path-group #block-myevent-theme-content
  > ul.links.solo-ul + .solo-table-wrapper
  > table.solo-table-all tbody td {
  padding: 15px;
  border: 0 !important;
  border-bottom: 1px solid var(--myevent-ui-border) !important;
  color: var(--myevent-ui-text);
  font-size: .84rem;
  line-height: 1.4;
  vertical-align: middle;
}

body.path-group #block-myevent-theme-content
  > ul.links.solo-ul + .solo-table-wrapper
  > table.solo-table-all tbody tr:last-child td {
  border-bottom: 0 !important;
}

body.path-group #block-myevent-theme-content
  > ul.links.solo-ul + .solo-table-wrapper
  > table.solo-table-all tbody tr:hover td {
  background: #fbfcfe !important;
}

/* Ticket status. */
body.path-group #block-myevent-theme-content
  > ul.links.solo-ul + .solo-table-wrapper
  > table.solo-table-all tbody td:nth-last-child(2) {
  color: var(--myevent-ui-success);
  font-weight: 700;
}

/* Operations: single dropbutton should read as a compact action. */
body.path-group #block-myevent-theme-content
  > ul.links.solo-ul + .solo-table-wrapper
  .dropbutton-single .dropbutton-widget {
  overflow: hidden !important;
  border: 1px solid #d8cdfb !important;
  border-radius: 9px !important;
  background: #fff !important;
  box-shadow: none !important;
}

body.path-group #block-myevent-theme-content
  > ul.links.solo-ul + .solo-table-wrapper
  .dropbutton-single .dropbutton {
  position: static !important;
  min-width: 0;
  overflow: hidden !important;
  border: 0 !important;
  background: #fff !important;
}

body.path-group #block-myevent-theme-content
  > ul.links.solo-ul + .solo-table-wrapper
  .dropbutton-single .dropbutton-action a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 7px 12px;
  color: var(--myevent-ui-primary) !important;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
}

body.path-group #block-myevent-theme-content
  > ul.links.solo-ul + .solo-table-wrapper
  .dropbutton-single .dropbutton-action a:hover,
body.path-group #block-myevent-theme-content
  > ul.links.solo-ul + .solo-table-wrapper
  .dropbutton-single .dropbutton-action a:focus-visible {
  background: var(--myevent-ui-primary-soft) !important;
}

/* Rounded table corners without clipping. */
body.path-group #block-myevent-theme-content
  > ul.links.solo-ul + .solo-table-wrapper
  > table.solo-table-all thead th:first-child {
  border-top-left-radius: 9px;
}

body.path-group #block-myevent-theme-content
  > ul.links.solo-ul + .solo-table-wrapper
  > table.solo-table-all thead th:last-child {
  border-top-right-radius: 9px;
}

body.path-group #block-myevent-theme-content
  > ul.links.solo-ul + .solo-table-wrapper
  > table.solo-table-all tbody tr:last-child td:first-child {
  border-bottom-left-radius: 9px;
}

body.path-group #block-myevent-theme-content
  > ul.links.solo-ul + .solo-table-wrapper
  > table.solo-table-all tbody tr:last-child td:last-child {
  border-bottom-right-radius: 9px;
}

/* Responsive. */
@media (max-width: 760px) {
  body.path-group #block-myevent-theme-content
    > ul.links.solo-ul,
  body.path-group #block-myevent-theme-content
    > ul.links.solo-ul + .solo-table-wrapper {
    width: min(100% - 20px, 1180px);
  }

  body.path-group #block-myevent-theme-content
    > ul.links.solo-ul > li {
    flex: 1 1 calc(50% - 5px);
  }

  body.path-group #block-myevent-theme-content
    > ul.links.solo-ul > li > a {
    width: 100%;
  }
}

@media (max-width: 480px) {
  body.path-group #block-myevent-theme-content
    > ul.links.solo-ul > li {
    flex-basis: 100%;
  }
}


/* ================================================================== */
/* Group media library                                                */
/* Reference: /group/{group}/media                                    */
/* ================================================================== */

body.path-group .ptah-group-media-library {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 48px;
  color: var(--myevent-ui-text);
}

/* Header ------------------------------------------------------------- */
body.path-group .ptah-group-media-library__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

body.path-group .ptah-group-media-library__header > div {
  min-width: 0;
}

body.path-group .ptah-group-media-library__header h2 {
  margin: 0;
  color: var(--myevent-ui-ink);
  font-size: 1.3rem;
  font-weight: 750;
  line-height: 1.2;
}

body.path-group .ptah-group-media-library__header p {
  margin: 5px 0 0;
  color: var(--myevent-ui-muted);
  font-size: .86rem;
  line-height: 1.45;
}

body.path-group .ptah-group-media-library__header .button--primary {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--myevent-ui-primary);
  border-radius: 9px;
  background: var(--myevent-ui-primary);
  color: #fff !important;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
}

body.path-group .ptah-group-media-library__header .button--primary::before {
  content: "+";
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(255 255 255 / .7);
  border-radius: 50%;
  color: #fff;
  font-size: .9rem;
  line-height: 1;
}

body.path-group .ptah-group-media-library__header .button--primary:hover,
body.path-group .ptah-group-media-library__header .button--primary:focus-visible {
  border-color: var(--myevent-ui-primary-hover);
  background: var(--myevent-ui-primary-hover);
  color: #fff !important;
}

/* Grid --------------------------------------------------------------- */
body.path-group .ptah-group-media-library > .item-list {
  margin: 0;
}

body.path-group .ptah-group-media-library__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.path-group .ptah-group-media-library__grid > li {
  flex: 1 1 240px;
  max-width: calc(25% - 11px);
  min-width: 220px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Card --------------------------------------------------------------- */
body.path-group .ptah-group-media-library__card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--myevent-ui-border);
  border-radius: 12px;
  background: #fff;
}

body.path-group .ptah-group-media-library__preview {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--myevent-ui-surface-soft);
}

body.path-group .ptah-group-media-library__preview article,
body.path-group .ptah-group-media-library__preview .js-media-library-item-preview,
body.path-group .ptah-group-media-library__preview .field,
body.path-group .ptah-group-media-library__preview .field__item {
  width: 100%;
  height: 100%;
}

body.path-group .ptah-group-media-library__preview img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  object-fit: cover;
}

body.path-group .ptah-group-media-library__preview article > div:last-child {
  display: none;
}

/* Details ------------------------------------------------------------ */
body.path-group .ptah-group-media-library__details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px 10px;
}

body.path-group .ptah-group-media-library__details h3 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--myevent-ui-ink);
  font-size: .86rem;
  font-weight: 750;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.path-group .ptah-group-media-library__details span {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 22px;
  align-items: center;
  padding: 3px 7px;
  border-radius: 9px;
  background: var(--myevent-ui-primary-soft);
  color: var(--myevent-ui-primary);
  font-size: .62rem;
  font-weight: 800;
  text-transform: capitalize;
}

/* Actions ------------------------------------------------------------ */
body.path-group .ptah-group-media-library__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding: 0 14px 14px;
}

body.path-group .ptah-group-media-library__actions a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid #d8cdfb;
  border-radius: 9px;
  background: #fff;
  color: var(--myevent-ui-primary) !important;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

body.path-group .ptah-group-media-library__actions a:hover,
body.path-group .ptah-group-media-library__actions a:focus-visible {
  border-color: var(--myevent-ui-primary);
  background: var(--myevent-ui-primary-soft);
  color: var(--myevent-ui-primary-hover) !important;
}

body.path-group .ptah-group-media-library__actions
  .ptah-group-media-library__danger {
  border-color: #f0c5cb;
  color: var(--myevent-ui-danger) !important;
}

body.path-group .ptah-group-media-library__actions
  .ptah-group-media-library__danger:hover,
body.path-group .ptah-group-media-library__actions
  .ptah-group-media-library__danger:focus-visible {
  border-color: var(--myevent-ui-danger);
  background: var(--myevent-ui-danger-soft);
  color: var(--myevent-ui-danger) !important;
}

/* Empty state -------------------------------------------------------- */
body.path-group .ptah-group-media-library > .item-list:empty {
  display: none;
}

/* Modal integration -------------------------------------------------- */
.ui-dialog .ptah-group-media-library,
.ui-dialog .media-form,
.ui-dialog .media-form .form-wrapper {
  max-width: 100%;
}

.ui-dialog .ptah-group-media-library__header {
  margin-bottom: 12px;
}

/* Responsive -------------------------------------------------------- */
@media (max-width: 980px) {
  body.path-group .ptah-group-media-library__grid > li {
    max-width: calc(33.333% - 10px);
  }
}

@media (max-width: 760px) {
  body.path-group .ptah-group-media-library {
    width: min(100% - 20px, 1180px);
    margin-top: 22px;
  }

  body.path-group .ptah-group-media-library__header {
    align-items: flex-start;
    flex-direction: column;
  }

  body.path-group .ptah-group-media-library__header .button--primary {
    width: 100%;
  }

  body.path-group .ptah-group-media-library__grid > li {
    max-width: calc(50% - 7px);
  }
}

@media (max-width: 520px) {
  body.path-group .ptah-group-media-library__grid > li {
    max-width: 100%;
    flex-basis: 100%;
  }

  body.path-group .ptah-group-media-library__actions {
    flex-direction: column;
  }

  body.path-group .ptah-group-media-library__actions a {
    width: 100%;
  }
}


/* ================================================================== */
/* Bulk messaging                                                     */
/* Reference: /group/{group}/messaging/bulk                           */
/* ================================================================== */

body.path-group .ptah-sms-ginvite-group-bulk-messaging.tw-product--myevent {
  width: min(900px, calc(100% - 32px));
  margin: 34px auto 48px;
  padding: 0;
  color: var(--myevent-ui-text);
}

/* Sections ---------------------------------------------------------- */
body.path-group .ptah-sms-ginvite-group-bulk-messaging
  > fieldset,
body.path-group .ptah-sms-ginvite-group-bulk-messaging
  > details,
body.path-group .ptah-sms-ginvite-group-bulk-messaging
  > #edit-dry-run-wrapper,
body.path-group .ptah-sms-ginvite-group-bulk-messaging
  > .form-type-textfield,
body.path-group .ptah-sms-ginvite-group-bulk-messaging
  > #edit-email-body-wrapper {
  margin: 0 0 14px;
  border: 1px solid var(--myevent-ui-border);
  border-radius: 9px;
  background: #fff;
  box-shadow: none;
}

body.path-group .ptah-sms-ginvite-group-bulk-messaging
  > fieldset {
  padding: 0;
}

body.path-group .ptah-sms-ginvite-group-bulk-messaging
  > fieldset > legend {
  float: left;
  width: 100%;
  margin: 0;
  padding: 14px 16px 0;
}

body.path-group .ptah-sms-ginvite-group-bulk-messaging
  > fieldset > legend + .fieldset-wrapper {
  clear: both;
  padding: 10px 16px 16px;
}

body.path-group .ptah-sms-ginvite-group-bulk-messaging
  .fieldset-legend {
  color: var(--myevent-ui-ink);
  font-size: .9rem;
  font-weight: 750;
}

/* Source/channel choices as friendly selectable cards. */
body.path-group .ptah-sms-ginvite-group-bulk-messaging
  .form-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

body.path-group .ptah-sms-ginvite-group-bulk-messaging
  .form-checkboxes > .form-type-checkbox {
  position: relative;
  flex: 1 1 190px;
  margin: 0;
  padding: 0;
}

body.path-group .ptah-sms-ginvite-group-bulk-messaging
  .form-checkboxes > .form-type-checkbox input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

body.path-group .ptah-sms-ginvite-group-bulk-messaging
  .form-checkboxes > .form-type-checkbox label {
  display: flex;
  min-height: 46px;
  align-items: center;
  padding: 10px 13px 10px 38px;
  border: 1px solid var(--myevent-ui-border);
  border-radius: 9px;
  background: #fff;
  color: var(--myevent-ui-text);
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
}

body.path-group .ptah-sms-ginvite-group-bulk-messaging
  .form-checkboxes > .form-type-checkbox label::before {
  content: "";
  position: absolute;
  left: 13px;
  width: 16px;
  height: 16px;
  border: 1px solid #c9cdd6;
  border-radius: 5px;
  background: #fff;
}

body.path-group .ptah-sms-ginvite-group-bulk-messaging
  .form-checkboxes > .form-type-checkbox input:checked + label {
  border-color: #d7ccfb;
  background: var(--myevent-ui-primary-soft);
  color: var(--myevent-ui-primary);
}

body.path-group .ptah-sms-ginvite-group-bulk-messaging
  .form-checkboxes > .form-type-checkbox input:checked + label::before {
  border-color: var(--myevent-ui-primary);
  background:
    linear-gradient(135deg, transparent 44%, #fff 44% 54%, transparent 54%) 3px 7px/5px 5px no-repeat,
    linear-gradient(45deg, transparent 42%, #fff 42% 54%, transparent 54%) 7px 5px/7px 8px no-repeat,
    var(--myevent-ui-primary);
}

/* Details panels ---------------------------------------------------- */
body.path-group .ptah-sms-ginvite-group-bulk-messaging
  > details {
  overflow: hidden;
  padding: 0;
}

body.path-group .ptah-sms-ginvite-group-bulk-messaging
  > details > summary {
  padding: 13px 16px;
  color: var(--myevent-ui-ink);
  font-size: .84rem;
  font-weight: 750;
  cursor: pointer;
  list-style-position: inside;
}

body.path-group .ptah-sms-ginvite-group-bulk-messaging
  > details[open] > summary {
  border-bottom: 1px solid var(--myevent-ui-border);
  background: #fbfcfe;
}

body.path-group .ptah-sms-ginvite-group-bulk-messaging
  > details > .details-wrapper {
  padding: 15px 16px 16px;
}

body.path-group .ptah-sms-ginvite-group-bulk-messaging
  > details > .details-wrapper > p {
  margin: 0;
  color: var(--myevent-ui-muted);
  font-size: .82rem;
}

/* Form fields ------------------------------------------------------- */
body.path-group .ptah-sms-ginvite-group-bulk-messaging
  > .form-type-textfield,
body.path-group .ptah-sms-ginvite-group-bulk-messaging
  > #edit-email-body-wrapper,
body.path-group .ptah-sms-ginvite-group-bulk-messaging
  > #edit-dry-run-wrapper {
  padding: 15px 16px;
}

body.path-group .ptah-sms-ginvite-group-bulk-messaging
  .form-item__label {
  margin-bottom: 6px;
  color: var(--myevent-ui-ink);
  font-size: .78rem;
  font-weight: 750;
}

body.path-group .ptah-sms-ginvite-group-bulk-messaging
  input.form-text,
body.path-group .ptah-sms-ginvite-group-bulk-messaging
  textarea.form-textarea {
  width: 100%;
  border: 1px solid #d7dbe3;
  border-radius: 9px;
  background: #fff;
  color: var(--myevent-ui-text);
  box-shadow: none;
}

body.path-group .ptah-sms-ginvite-group-bulk-messaging
  input.form-text {
  min-height: 42px;
  padding: 8px 11px;
}

body.path-group .ptah-sms-ginvite-group-bulk-messaging
  textarea.form-textarea {
  min-height: 130px;
  padding: 10px 11px;
  line-height: 1.5;
}

body.path-group .ptah-sms-ginvite-group-bulk-messaging
  input.form-text:focus,
body.path-group .ptah-sms-ginvite-group-bulk-messaging
  textarea.form-textarea:focus {
  border-color: var(--myevent-ui-primary);
  outline: 2px solid var(--myevent-ui-primary-soft);
  outline-offset: 1px;
}

/* Help text. */
body.path-group .ptah-sms-ginvite-group-bulk-messaging
  .ptah-helptext-above {
  margin: 0 0 9px;
  padding: 9px 11px;
  border-left: 3px solid #d7ccfb;
  border-radius: 0 7px 7px 0;
  background: #faf8ff;
  color: var(--myevent-ui-muted);
  font-size: .74rem;
  line-height: 1.5;
}

/* Dry-run option ---------------------------------------------------- */
body.path-group .ptah-sms-ginvite-group-bulk-messaging
  > #edit-dry-run-wrapper .form-type-checkbox {
  margin: 0;
}

body.path-group .ptah-sms-ginvite-group-bulk-messaging
  > #edit-dry-run-wrapper .form-type-checkbox label {
  color: var(--myevent-ui-ink);
  font-size: .8rem;
  font-weight: 700;
}

/* File upload ------------------------------------------------------- */
body.path-group .ptah-sms-ginvite-group-bulk-messaging
  .solo-file-custom {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
}

body.path-group .ptah-sms-ginvite-group-bulk-messaging
  .solo-file-button {
  border: 1px solid #d8cdfb;
  border-radius: 9px;
  background: #fff;
  color: var(--myevent-ui-primary);
  box-shadow: none;
}

body.path-group .ptah-sms-ginvite-group-bulk-messaging
  .solo-file-name {
  color: var(--myevent-ui-muted);
  font-size: .76rem;
}

/* Actions ----------------------------------------------------------- */
body.path-group .ptah-sms-ginvite-group-bulk-messaging
  > .form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
  margin: 20px 0 0;
  padding: 0;
}

body.path-group .ptah-sms-ginvite-group-bulk-messaging
  > .form-actions .button {
  min-height: 40px;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid #d8cdfb;
  border-radius: 9px;
  background: #fff;
  color: var(--myevent-ui-primary);
  font-size: .8rem;
  font-weight: 750;
  box-shadow: none;
}

body.path-group .ptah-sms-ginvite-group-bulk-messaging
  > .form-actions .button--primary {
  border-color: var(--myevent-ui-primary);
  background: var(--myevent-ui-primary);
  color: #fff;
}

body.path-group .ptah-sms-ginvite-group-bulk-messaging
  > .form-actions .button:not(.button--primary):hover,
body.path-group .ptah-sms-ginvite-group-bulk-messaging
  > .form-actions .button:not(.button--primary):focus-visible {
  border-color: var(--myevent-ui-primary);
  background: var(--myevent-ui-primary-soft);
}

body.path-group .ptah-sms-ginvite-group-bulk-messaging
  > .form-actions .button--primary:hover,
body.path-group .ptah-sms-ginvite-group-bulk-messaging
  > .form-actions .button--primary:focus-visible {
  border-color: var(--myevent-ui-primary-hover);
  background: var(--myevent-ui-primary-hover);
}

/* Responsive -------------------------------------------------------- */
@media (max-width: 760px) {
  body.path-group .ptah-sms-ginvite-group-bulk-messaging.tw-product--myevent {
    width: min(100% - 20px, 900px);
    margin-top: 22px;
  }

  body.path-group .ptah-sms-ginvite-group-bulk-messaging
    .form-checkboxes > .form-type-checkbox {
    flex-basis: 100%;
  }

  body.path-group .ptah-sms-ginvite-group-bulk-messaging
    > .form-actions {
    flex-direction: column-reverse;
  }

  body.path-group .ptah-sms-ginvite-group-bulk-messaging
    > .form-actions .button {
    width: 100%;
  }
}


/* ================================================================== */
/* Individual messaging                                               */
/* Reference: /group/{group}/messaging/individual                     */
/* ================================================================== */

body.path-group .ptah-sms-ginvite-group-individual-messaging.tw-product--myevent {
  width: min(820px, calc(100% - 32px));
  margin: 34px auto 48px;
  padding: 0;
  color: var(--myevent-ui-text);
}

/* Main grouped sections --------------------------------------------- */
body.path-group .ptah-sms-ginvite-group-individual-messaging
  > fieldset,
body.path-group .ptah-sms-ginvite-group-individual-messaging
  > .form-type-entity-autocomplete,
body.path-group .ptah-sms-ginvite-group-individual-messaging
  > .form-type-email,
body.path-group .ptah-sms-ginvite-group-individual-messaging
  > .form-type-textfield,
body.path-group .ptah-sms-ginvite-group-individual-messaging
  > #edit-email-body-wrapper,
body.path-group .ptah-sms-ginvite-group-individual-messaging
  > .messages {
  margin: 0 0 14px;
  border: 1px solid var(--myevent-ui-border);
  border-radius: 9px;
  background: #fff;
  box-shadow: none;
}

body.path-group .ptah-sms-ginvite-group-individual-messaging
  > fieldset {
  padding: 0;
}

body.path-group .ptah-sms-ginvite-group-individual-messaging
  > fieldset > legend {
  float: left;
  width: 100%;
  margin: 0;
  padding: 14px 16px 0;
}

body.path-group .ptah-sms-ginvite-group-individual-messaging
  > fieldset > legend + .fieldset-wrapper {
  clear: both;
  padding: 10px 16px 16px;
}

body.path-group .ptah-sms-ginvite-group-individual-messaging
  .fieldset-legend {
  color: var(--myevent-ui-ink);
  font-size: .9rem;
  font-weight: 750;
}

/* Recipient and social link radio cards ----------------------------- */
body.path-group .ptah-sms-ginvite-group-individual-messaging
  .form-radios,
body.path-group .ptah-sms-ginvite-group-individual-messaging
  .form-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

body.path-group .ptah-sms-ginvite-group-individual-messaging
  .form-radios > .form-type-radio,
body.path-group .ptah-sms-ginvite-group-individual-messaging
  .form-checkboxes > .form-type-checkbox {
  position: relative;
  flex: 1 1 230px;
  margin: 0;
  padding: 0;
}

body.path-group .ptah-sms-ginvite-group-individual-messaging
  .form-radios > .form-type-radio input,
body.path-group .ptah-sms-ginvite-group-individual-messaging
  .form-checkboxes > .form-type-checkbox input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

body.path-group .ptah-sms-ginvite-group-individual-messaging
  .form-radios > .form-type-radio label,
body.path-group .ptah-sms-ginvite-group-individual-messaging
  .form-checkboxes > .form-type-checkbox label {
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: 10px 13px 10px 40px;
  border: 1px solid var(--myevent-ui-border);
  border-radius: 9px;
  background: #fff;
  color: var(--myevent-ui-text);
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
}

body.path-group .ptah-sms-ginvite-group-individual-messaging
  .form-radios > .form-type-radio label::before,
body.path-group .ptah-sms-ginvite-group-individual-messaging
  .form-checkboxes > .form-type-checkbox label::before {
  content: "";
  position: absolute;
  left: 13px;
  width: 16px;
  height: 16px;
  border: 1px solid #c9cdd6;
  background: #fff;
}

body.path-group .ptah-sms-ginvite-group-individual-messaging
  .form-radios > .form-type-radio label::before {
  border-radius: 50%;
}

body.path-group .ptah-sms-ginvite-group-individual-messaging
  .form-checkboxes > .form-type-checkbox label::before {
  border-radius: 5px;
}

body.path-group .ptah-sms-ginvite-group-individual-messaging
  .form-radios > .form-type-radio input:checked + label,
body.path-group .ptah-sms-ginvite-group-individual-messaging
  .form-checkboxes > .form-type-checkbox input:checked + label {
  border-color: #d7ccfb;
  background: var(--myevent-ui-primary-soft);
  color: var(--myevent-ui-primary);
}

body.path-group .ptah-sms-ginvite-group-individual-messaging
  .form-radios > .form-type-radio input:checked + label::before {
  border: 5px solid var(--myevent-ui-primary);
}

body.path-group .ptah-sms-ginvite-group-individual-messaging
  .form-checkboxes > .form-type-checkbox input:checked + label::before {
  border-color: var(--myevent-ui-primary);
  background:
    linear-gradient(135deg, transparent 44%, #fff 44% 54%, transparent 54%) 3px 7px/5px 5px no-repeat,
    linear-gradient(45deg, transparent 42%, #fff 42% 54%, transparent 54%) 7px 5px/7px 8px no-repeat,
    var(--myevent-ui-primary);
}

/* Recipient field ---------------------------------------------------- */
body.path-group .ptah-sms-ginvite-group-individual-messaging
  > .form-type-entity-autocomplete,
body.path-group .ptah-sms-ginvite-group-individual-messaging
  > .form-type-email,
body.path-group .ptah-sms-ginvite-group-individual-messaging
  > .form-type-textfield,
body.path-group .ptah-sms-ginvite-group-individual-messaging
  > #edit-email-body-wrapper {
  padding: 15px 16px;
}

body.path-group .ptah-sms-ginvite-group-individual-messaging
  .form-item__label {
  margin-bottom: 6px;
  color: var(--myevent-ui-ink);
  font-size: .78rem;
  font-weight: 750;
}

body.path-group .ptah-sms-ginvite-group-individual-messaging
  input.form-text,
body.path-group .ptah-sms-ginvite-group-individual-messaging
  input.form-email,
body.path-group .ptah-sms-ginvite-group-individual-messaging
  textarea.form-textarea {
  width: 100%;
  border: 1px solid #d7dbe3;
  border-radius: 9px;
  background: #fff;
  color: var(--myevent-ui-text);
  box-shadow: none;
}

body.path-group .ptah-sms-ginvite-group-individual-messaging
  input.form-text,
body.path-group .ptah-sms-ginvite-group-individual-messaging
  input.form-email {
  min-height: 42px;
  padding: 8px 11px;
}

body.path-group .ptah-sms-ginvite-group-individual-messaging
  textarea.form-textarea {
  min-height: 150px;
  padding: 10px 11px;
  line-height: 1.5;
}

body.path-group .ptah-sms-ginvite-group-individual-messaging
  input.form-text:focus,
body.path-group .ptah-sms-ginvite-group-individual-messaging
  input.form-email:focus,
body.path-group .ptah-sms-ginvite-group-individual-messaging
  textarea.form-textarea:focus {
  border-color: var(--myevent-ui-primary);
  outline: 2px solid var(--myevent-ui-primary-soft);
  outline-offset: 1px;
}

/* Help text ---------------------------------------------------------- */
body.path-group .ptah-sms-ginvite-group-individual-messaging
  .ptah-helptext-above {
  margin: 0 0 9px;
  padding: 9px 11px;
  border-left: 3px solid #d7ccfb;
  border-radius: 0 7px 7px 0;
  background: #faf8ff;
  color: var(--myevent-ui-muted);
  font-size: .74rem;
  line-height: 1.5;
}

/* Private-link warning ---------------------------------------------- */
body.path-group .ptah-sms-ginvite-group-individual-messaging
  > .messages--warning {
  padding: 12px 14px;
  border-color: #ffd4b2;
  background: var(--myevent-ui-warning-soft);
  color: #8a4e16;
  font-size: .78rem;
  line-height: 1.45;
}

body.path-group .ptah-sms-ginvite-group-individual-messaging
  > .messages--warning strong {
  color: #78410f;
}

/* Actions ------------------------------------------------------------ */
body.path-group .ptah-sms-ginvite-group-individual-messaging
  > .form-actions {
  display: flex;
  justify-content: flex-end;
  margin: 20px 0 0;
  padding: 0;
}

body.path-group .ptah-sms-ginvite-group-individual-messaging
  > .form-actions .button--primary {
  min-height: 40px;
  margin: 0;
  padding: 8px 16px;
  border: 1px solid var(--myevent-ui-primary);
  border-radius: 9px;
  background: var(--myevent-ui-primary);
  color: #fff;
  font-size: .8rem;
  font-weight: 750;
  box-shadow: none;
}

body.path-group .ptah-sms-ginvite-group-individual-messaging
  > .form-actions .button--primary:hover,
body.path-group .ptah-sms-ginvite-group-individual-messaging
  > .form-actions .button--primary:focus-visible {
  border-color: var(--myevent-ui-primary-hover);
  background: var(--myevent-ui-primary-hover);
}

/* Autocomplete ------------------------------------------------------- */
.ui-autocomplete {
  border: 1px solid var(--myevent-ui-border);
  border-radius: 9px;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
}

.ui-autocomplete .ui-menu-item-wrapper {
  padding: 8px 10px;
  color: var(--myevent-ui-text);
  font-size: .78rem;
}

.ui-autocomplete .ui-state-active {
  border: 0;
  background: var(--myevent-ui-primary-soft);
  color: var(--myevent-ui-primary);
}

/* Responsive -------------------------------------------------------- */
@media (max-width: 760px) {
  body.path-group .ptah-sms-ginvite-group-individual-messaging.tw-product--myevent {
    width: min(100% - 20px, 820px);
    margin-top: 22px;
  }

  body.path-group .ptah-sms-ginvite-group-individual-messaging
    .form-radios > .form-type-radio,
  body.path-group .ptah-sms-ginvite-group-individual-messaging
    .form-checkboxes > .form-type-checkbox {
    flex-basis: 100%;
  }

  body.path-group .ptah-sms-ginvite-group-individual-messaging
    > .form-actions .button--primary {
    width: 100%;
  }
}
