#ymca-gx-schedule-widget {
      display: block;
      width: 100%;
      clear: both;
      --ymca-navy:      #1a2f5e;
      --ymca-blue:      #0057a8;
      --ymca-mid-blue:  #1474c4;
      --ymca-light-blue:#e8f2fb;
      --ymca-purple:    #4b2e83;
      --ymca-lavender:  #ede9f7;
      --ymca-white:     #ffffff;
      --ymca-offwhite:  #f4f6fa;
      --ymca-border:    #c8d8ec;
      --ymca-text:      #1a2f5e;
      --ymca-muted:     #5a6e8c;
      --ymca-subtle:    #8fa4c0;
    }#ymca-gx-schedule-widget *, #ymca-gx-schedule-widget *::before, #ymca-gx-schedule-widget *::after { box-sizing: border-box; margin: 0; padding: 0; }#ymca-gx-schedule-widget {
      font-family: Verdana, Geneva, Tahoma, sans-serif;
      background: #ffffff;
      color: var(--ymca-text);
      min-height: 0;
    }#ymca-gx-schedule-widget .page-header {
      background: var(--ymca-navy);
      padding: 18px 28px;
      display: flex;
      align-items: center;
      gap: 16px;
      border-bottom: 4px solid var(--ymca-blue);
    }#ymca-gx-schedule-widget .page-header-logo {
      display: flex;
      align-items: center;
      flex-shrink: 0;
    }#ymca-gx-schedule-widget .page-header-logo img {
      height: 40px;
      width: auto;
      display: block;
    }#ymca-gx-schedule-widget .page-header-title {
      color: var(--ymca-white);
      font-size: 15px;
      font-weight: bold;
      letter-spacing: 0.03em;
    }#ymca-gx-schedule-widget .page-header-sub {
      color: var(--ymca-light-blue);
      font-size: 11px;
      margin-top: 2px;
      letter-spacing: 0.02em;
    }#ymca-gx-schedule-widget .toolbar {
      background: var(--ymca-white);
      border-bottom: 1px solid var(--ymca-border);
      padding: 12px 28px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 10px;
    }#ymca-gx-schedule-widget .week-nav {
      display: flex;
      align-items: center;
      gap: 10px;
    }#ymca-gx-schedule-widget .week-nav button {
      background: var(--ymca-navy);
      color: #fff;
      border: none;
      border-radius: 4px;
      padding: 6px 14px;
      font-family: Verdana, sans-serif;
      font-size: 14px;
      cursor: pointer;
      transition: background 0.15s;
    }#ymca-gx-schedule-widget .week-nav button:hover { background: var(--ymca-blue); }#ymca-gx-schedule-widget .week-label {
      font-size: 16px;
      font-weight: bold;
      color: var(--ymca-navy);
      min-width: 200px;
      text-align: center;
    }#ymca-gx-schedule-widget .filters {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      align-items: center;
    }#ymca-gx-schedule-widget .filter-group {
      position: relative;
    }#ymca-gx-schedule-widget .filter-toggle {
      font-family: Verdana, sans-serif;
      font-size: 14px;
      font-weight: bold;
      color: var(--ymca-navy);
      background: var(--ymca-offwhite);
      border: 1px solid var(--ymca-border);
      border-radius: 4px;
      padding: 6px 28px 6px 10px;
      cursor: pointer;
      white-space: nowrap;
      min-width: 160px;
      text-align: left;
      position: relative;
      transition: border-color 0.15s;

    }#ymca-gx-schedule-widget #loc-toggle {
      min-width: 320px;
      white-space: nowrap;
    }#ymca-gx-schedule-widget #loc-panel {
      min-width: 320px;
    }#ymca-gx-schedule-widget .filter-toggle::after {
      content: '▾';
      position: absolute;
      right: 10px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 11px;
      color: var(--ymca-muted);
    }#ymca-gx-schedule-widget .filter-toggle.open, #ymca-gx-schedule-widget .filter-toggle:hover { border-color: var(--ymca-blue); }#ymca-gx-schedule-widget .filter-toggle.has-selection { border-color: var(--ymca-blue); background: var(--ymca-light-blue); color: var(--ymca-blue); }#ymca-gx-schedule-widget .filter-panel {
      display: none;
      position: absolute;
      top: calc(100% + 4px);
      left: 0;
      background: var(--ymca-white);
      border: 1px solid var(--ymca-border);
      border-radius: 4px;
      box-shadow: 0 4px 16px rgba(26,47,94,0.12);
      min-width: 220px;
      max-height: 300px;
      overflow-y: auto;
      z-index: 200;
      padding: 6px 0;
    }#ymca-gx-schedule-widget .filter-panel.open { display: block; }#ymca-gx-schedule-widget .filter-panel-item {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 7px 14px;
      font-size: 14px;
      color: var(--ymca-text);
      cursor: pointer;
      transition: background 0.1s;
    }#ymca-gx-schedule-widget .filter-panel-item:hover { background: var(--ymca-offwhite); }#ymca-gx-schedule-widget .filter-panel-item input[type="checkbox"] {
      accent-color: var(--ymca-blue);
      width: 14px;
      height: 14px;
      flex-shrink: 0;
      cursor: pointer;
    }#ymca-gx-schedule-widget .filter-panel-divider {
      height: 1px;
      background: var(--ymca-border);
      margin: 4px 0;
    }#ymca-gx-schedule-widget .filter-panel-item.select-all {
      font-weight: bold;
      color: var(--ymca-blue);
      font-size: 13px;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }#ymca-gx-schedule-widget .btn-search {
      background: #2e7d32;
      color: #fff;
      border: none;
      border-radius: 4px;
      padding: 6px 16px;
      font-family: Verdana, sans-serif;
      font-size: 14px;
      font-weight: bold;
      cursor: pointer;
      transition: background 0.15s;
      white-space: nowrap;
    }#ymca-gx-schedule-widget .btn-search:hover { background: #1b5e20; }#ymca-gx-schedule-widget .btn-search:disabled { background: #a5c8a7; cursor: not-allowed; }#ymca-gx-schedule-widget .grid-wrap {
      padding: 16px 28px 40px;
      overflow-x: auto;
    }#ymca-gx-schedule-widget .grid {
      display: grid;
      grid-template-columns: repeat(7, minmax(110px, 1fr));
      gap: 8px;
      min-width: 780px;
    }#ymca-gx-schedule-widget .day-col { display: flex; flex-direction: column; }#ymca-gx-schedule-widget .day-head {
      text-align: center;
      padding: 8px 4px 10px;
      border-bottom: 2px solid var(--ymca-border);
      margin-bottom: 8px;
    }#ymca-gx-schedule-widget .day-head .dow {
      font-size: 9px;
      font-weight: bold;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--ymca-muted);
    }#ymca-gx-schedule-widget .day-head .dom {
      font-size: 20px;
      font-weight: bold;
      color: var(--ymca-navy);
      line-height: 1.2;
      margin-top: 2px;
    }#ymca-gx-schedule-widget .day-head.today .dom {
      background: var(--ymca-blue);
      color: #fff;
      border-radius: 50%;
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      margin: 2px auto 0;
    }#ymca-gx-schedule-widget .day-head.today { border-bottom-color: var(--ymca-blue); }#ymca-gx-schedule-widget .gx-card {
      background: var(--ymca-white);
      border: 1px solid var(--ymca-border);
      border-radius: 4px;
      padding: 7px 8px 7px 11px;
      margin-bottom: 5px;
      cursor: pointer;
      position: relative;
      overflow: hidden;
      transition: box-shadow 0.15s, border-color 0.15s;
    }#ymca-gx-schedule-widget .gx-card::before {
      content: '';
      position: absolute;
      left: 0; top: 0; bottom: 0;
      width: 4px;
    }#ymca-gx-schedule-widget .gx-card:hover {
      border-color: var(--ymca-blue);
      box-shadow: 0 2px 8px rgba(0,87,168,0.12);
    }#ymca-gx-schedule-widget .gx-card.full { opacity: 0.5; }#ymca-gx-schedule-widget .gx-card.cancelled {
      background: #f7f7f7;
      border-color: #d7d7d7;
      opacity: 0.75;
    }#ymca-gx-schedule-widget .gx-card.cancelled::before { background: #a93226; }#ymca-gx-schedule-widget .gx-card.cancelled .card-title {
      text-decoration: line-through;
      text-decoration-thickness: 2px;
    }#ymca-gx-schedule-widget .card-cancelled {
      font-size: 10px;
      font-weight: bold;
      color: #a93226;
      margin-top: 4px;
      text-transform: uppercase;
      letter-spacing: 0.03em;
    }#ymca-gx-schedule-widget .card-time {
      font-size: 10px;
      color: var(--ymca-muted);
      margin-bottom: 3px;
      letter-spacing: 0.02em;
    }#ymca-gx-schedule-widget .card-title {
      font-size: 13px;
      font-weight: bold;
      color: var(--ymca-navy);
      line-height: 1.3;
    }#ymca-gx-schedule-widget .card-location {
      font-size: 10px;
      color: var(--ymca-muted);
      margin-top: 2px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }#ymca-gx-schedule-widget .card-room, #ymca-gx-schedule-widget .sub-location {
      font-size: 10px;
      color: var(--ymca-muted);
      margin-top: 1px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      font-style: italic;
    }#ymca-gx-schedule-widget .card-slots {
      font-size: 10px;
      font-weight: bold;
      margin-top: 4px;
    }#ymca-gx-schedule-widget .card-slots.is-full { color: #a93226; }#ymca-gx-schedule-widget .card-slots.is-open { color: var(--ymca-blue); }#ymca-gx-schedule-widget .day-empty {
      font-size: 11px;
      color: var(--ymca-subtle);
      text-align: center;
      padding: 20px 0;
    }#ymca-gx-schedule-widget .day-past {
      font-size: 12px;
      color: var(--ymca-subtle);
      text-align: center;
      padding: 12px 6px;
      line-height: 1.6;
      font-style: italic;
    }#ymca-gx-schedule-widget .state-msg {
      text-align: center;
      padding: 3rem 1rem;
      font-size: 20px;
      color: var(--ymca-muted);
      grid-column: 1 / -1;
    }#ymca-gx-schedule-widget .state-error {
      grid-column: 1 / -1;
      background: #fdf0ef;
      border: 1px solid #e8bcb9;
      border-radius: 4px;
      padding: 1.5rem;
      text-align: center;
      font-size: 14px;
      color: #a93226;
    }#ymca-gx-schedule-widget .modal-backdrop {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(26,47,94,0.55);
      z-index: 9999;
      align-items: center;
      justify-content: center;
    }#ymca-gx-schedule-widget .modal-backdrop.open { display: flex; }#ymca-gx-schedule-widget .modal {
      background: var(--ymca-white);
      border-radius: 6px;
      border-top: 5px solid var(--ymca-blue);
      padding: 24px;
      max-width: 360px;
      width: 92%;
      box-shadow: 0 8px 32px rgba(26,47,94,0.2);
    }#ymca-gx-schedule-widget .modal-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 12px;
    }#ymca-gx-schedule-widget .modal-title {
      font-size: 15px;
      font-weight: bold;
      color: var(--ymca-navy);
      line-height: 1.3;
      flex: 1;
      padding-right: 10px;
    }#ymca-gx-schedule-widget .modal-close {
      background: none;
      border: none;
      font-size: 18px;
      color: var(--ymca-muted);
      cursor: pointer;
      line-height: 1;
      padding: 0;
      flex-shrink: 0;
    }#ymca-gx-schedule-widget .modal-close:hover { color: var(--ymca-navy); }#ymca-gx-schedule-widget .modal-meta {
      font-size: 12px;
      color: var(--ymca-text);
      line-height: 2;
      margin-bottom: 12px;
    }#ymca-gx-schedule-widget .modal-meta span { color: var(--ymca-muted); display: inline-block; width: 80px; }#ymca-gx-schedule-widget .modal-desc {
      font-size: 14px;
      color: var(--ymca-muted);
      line-height: 1.7;
      margin-bottom: 16px;
      border-top: 1px solid var(--ymca-border);
      padding-top: 12px;
    }#ymca-gx-schedule-widget .modal-actions {
      display: flex;
      gap: 8px;
    }#ymca-gx-schedule-widget .modal-actions button, #ymca-gx-schedule-widget .modal-actions a {
      flex: 1;
      text-align: center;
      padding: 9px;
      border-radius: 4px;
      font-family: Verdana, sans-serif;
      font-size: 12px;
      font-weight: bold;
      text-decoration: none;
      cursor: pointer;
      border: 1px solid var(--ymca-border);
      color: var(--ymca-navy);
      background: var(--ymca-offwhite);
      transition: background 0.15s;
    }#ymca-gx-schedule-widget .modal-actions button:hover { background: var(--ymca-border); }#ymca-gx-schedule-widget .modal-actions a.book {
      background: var(--ymca-blue);
      color: #fff;
      border-color: var(--ymca-blue);
    }#ymca-gx-schedule-widget .modal-actions a.book:hover { background: var(--ymca-navy); border-color: var(--ymca-navy); }#ymca-gx-schedule-widget .btn-pdf {
      background: var(--ymca-purple);
      color: #fff;
      border: none;
      border-radius: 4px;
      padding: 6px 14px;
      font-family: Verdana, sans-serif;
      font-size: 14px;
      cursor: pointer;
      transition: background 0.15s;
      white-space: nowrap;
    }#ymca-gx-schedule-widget .btn-pdf:hover { background: #3a2268; }

    

    /* Drupal embed container */
    #ymca-gx-schedule-widget {
      font-family: Verdana, Geneva, Tahoma, sans-serif;
      background: #ffffff;
      color: var(--ymca-text);
      width: 100%;
      max-width: 100%;
      overflow-x: clip;
    }
    #ymca-gx-schedule-widget .mobile-day-nav { display: none; }
    #ymca-gx-schedule-widget .print-title { display: none; }

    @media (max-width: 767px) {
      #ymca-gx-schedule-widget .toolbar { padding: 12px; align-items: stretch; }
      #ymca-gx-schedule-widget .week-nav,
      #ymca-gx-schedule-widget .filters { width: 100%; }
      #ymca-gx-schedule-widget .week-nav { justify-content: space-between; }
      #ymca-gx-schedule-widget .week-label { min-width: 0; flex: 1; }
      #ymca-gx-schedule-widget .filters,
      #ymca-gx-schedule-widget .filter-group,
      #ymca-gx-schedule-widget .filter-toggle,
      #ymca-gx-schedule-widget .btn-search,
      #ymca-gx-schedule-widget .btn-pdf { width: 100%; }
      #ymca-gx-schedule-widget .filter-panel { position: static; width: 100%; margin-top: 4px; }
      #ymca-gx-schedule-widget .mobile-day-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        background: var(--ymca-white);
        border-bottom: 1px solid var(--ymca-border);
        padding: 10px 12px;
      }
      #ymca-gx-schedule-widget .mobile-day-nav button {
        background: var(--ymca-navy); color: #fff; border: none; border-radius: 4px;
        padding: 8px 10px; font-family: Verdana, sans-serif; font-size: 12px; font-weight: bold; cursor: pointer;
      }
      #ymca-gx-schedule-widget .mobile-day-label { flex: 1; text-align: center; font-size: 13px; font-weight: bold; color: var(--ymca-navy); }
      #ymca-gx-schedule-widget .grid-wrap { padding: 12px; overflow-x: visible; }
      #ymca-gx-schedule-widget .grid { display: block; min-width: 0; }
      #ymca-gx-schedule-widget .gx-card { padding: 12px 12px 12px 16px; margin-bottom: 8px; }
      #ymca-gx-schedule-widget .card-time { font-size: 12px; }
      #ymca-gx-schedule-widget .card-title { font-size: 15px; }
      #ymca-gx-schedule-widget .card-location,
      #ymca-gx-schedule-widget .card-room,
      #ymca-gx-schedule-widget .sub-location,
      #ymca-gx-schedule-widget .card-slots,
      #ymca-gx-schedule-widget .card-cancelled { font-size: 12px; }
    }

    @media print {
      @page { size: landscape; margin: 6mm 7mm; }
      html, body {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        background: #fff !important;
        overflow: visible !important;
      }

      /* Print from a temporary clone so Drupal headers, wrappers, and hidden page space do not print. */
      body > *:not(#ymca-gx-print-root) { display: none !important; }
      #ymca-gx-print-root {
        display: block !important;
        position: static !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        color: #1a2f5e !important;
        overflow: visible !important;
      }
      #ymca-gx-print-root #ymca-gx-schedule-widget {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        color: #1a2f5e !important;
        overflow: visible !important;
      }

      #ymca-gx-print-root .print-title {
        display: block !important;
        font-size: 24px !important;
        line-height: 1.15 !important;
        font-weight: 800 !important;
        color: #1a2f5e !important;
        margin: 0 0 4px 0 !important;
        padding: 0 !important;
        border: 0 !important;
      }
      #ymca-gx-print-root .print-meta {
        display: block !important;
        font-size: 13px !important;
        line-height: 1.25 !important;
        font-weight: 700 !important;
        color: #0057a8 !important;
        margin: 0 0 8px 0 !important;
        padding: 0 0 6px 0 !important;
        border-bottom: 2px solid #c8d8ec !important;
      }

      #ymca-gx-print-root .toolbar,
      #ymca-gx-print-root .btn-pdf,
      #ymca-gx-print-root .btn-search,
      #ymca-gx-print-root .filter-panel,
      #ymca-gx-print-root .mobile-day-nav,
      #ymca-gx-print-root .modal-backdrop,
      #ymca-gx-print-root .week-nav button { display: none !important; }
      #ymca-gx-print-root .filter-toggle::after { display: none !important; }

      #ymca-gx-print-root .grid-wrap {
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
      }
      #ymca-gx-print-root .grid {
        display: grid !important;
        grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
        gap: 4px !important;
        min-width: 0 !important;
        width: 100% !important;
        align-items: start !important;
      }
      #ymca-gx-print-root .day-col { min-width: 0 !important; }
      #ymca-gx-print-root .day-head {
        padding: 4px 2px 5px !important;
        margin-bottom: 5px !important;
        border-bottom: 2px solid #c8d8ec !important;
      }
      #ymca-gx-print-root .day-head .dow {
        font-size: 8px !important;
        line-height: 1.1 !important;
      }
      #ymca-gx-print-root .day-head .dom {
        font-size: 18px !important;
        line-height: 1.05 !important;
      }
      #ymca-gx-print-root .gx-card {
        break-inside: avoid !important;
        page-break-inside: avoid !important;
        box-shadow: none !important;
        border: 1px solid #c8d8ec !important;
        border-radius: 3px !important;
        padding: 5px 6px 5px 9px !important;
        margin-bottom: 4px !important;
        background: #fff !important;
      }
      #ymca-gx-print-root .gx-card::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
      #ymca-gx-print-root .card-time {
        font-size: 8px !important;
        line-height: 1.2 !important;
        margin-bottom: 2px !important;
      }
      #ymca-gx-print-root .card-title {
        font-size: 9.5px !important;
        line-height: 1.2 !important;
      }
      #ymca-gx-print-root .card-location,
      #ymca-gx-print-root .card-room,
      #ymca-gx-print-root .sub-location,
      #ymca-gx-print-root .card-slots,
      #ymca-gx-print-root .card-cancelled {
        font-size: 8.5px !important;
        line-height: 1.22 !important;
        margin-top: 2px !important;
      }
      #ymca-gx-print-root .card-slots.is-open { color: #0057a8 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
      #ymca-gx-print-root .card-slots.is-full { color: #a93226 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
      #ymca-gx-print-root .gx-card.cancelled { background: #f7f7f7 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    }

#ymca-gx-schedule-widget a { color: inherit; }


/* Dropdown-safe Drupal/Open Y modal styling
   Keeps the original embed markup/classes intact and only targets #gx-modal-bg. */
#gx-modal-bg.modal-backdrop {
  display: none !important;
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 0 !important;
  background: rgba(26, 47, 94, 0.62) !important;
  z-index: 2147483000 !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
  opacity: 1 !important;
  visibility: visible !important;
}
#gx-modal-bg.modal-backdrop.open {
  display: flex !important;
}
#gx-modal-bg .modal {
  display: block !important;
  position: relative !important;
  width: min(92vw, 460px) !important;
  max-width: 460px !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: calc(100vh - 48px) !important;
  margin: auto !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #ffffff !important;
  border: 1px solid #c8d8ec !important;
  border-top: 6px solid #0057a8 !important;
  border-radius: 10px !important;
  box-shadow: 0 18px 50px rgba(26,47,94,0.32) !important;
  color: #1a2f5e !important;
  font-family: Verdana, Geneva, Tahoma, sans-serif !important;
  line-height: 1.45 !important;
  transform: none !important;
  box-sizing: border-box !important;
  opacity: 1 !important;
  visibility: visible !important;
}
#gx-modal-bg .modal * {
  box-sizing: border-box !important;
  font-family: Verdana, Geneva, Tahoma, sans-serif !important;
}
#gx-modal-bg .modal-header {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 22px 22px 10px !important;
  margin: 0 !important;
}
#gx-modal-bg .modal-title {
  flex: 1 1 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #1a2f5e !important;
  font-size: 20px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
}
#gx-modal-bg .modal-close {
  flex: 0 0 auto !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: -5px -5px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #f4f6fa !important;
  color: #5a6e8c !important;
  font-size: 18px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  box-shadow: none !important;
  appearance: none !important;
}
#gx-modal-bg .modal-close:hover,
#gx-modal-bg .modal-close:focus {
  background: #e8f2fb !important;
  color: #0057a8 !important;
}
#gx-modal-bg .modal-meta {
  display: block !important;
  margin: 0 22px 16px !important;
  padding: 14px 0 0 !important;
  border-top: 1px solid #c8d8ec !important;
  color: #1a2f5e !important;
  font-size: 13px !important;
  line-height: 1.8 !important;
}
#gx-modal-bg .modal-meta span {
  display: inline-block !important;
  width: 96px !important;
  margin-right: 8px !important;
  color: #5a6e8c !important;
  font-weight: 700 !important;
}
#gx-modal-bg .modal-desc {
  display: block !important;
  margin: 0 22px 18px !important;
  padding: 12px 0 0 !important;
  border-top: 1px solid #c8d8ec !important;
  color: #5a6e8c !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
}
#gx-modal-bg .modal-actions {
  display: flex !important;
  gap: 10px !important;
  padding: 16px 22px 22px !important;
  margin: 0 !important;
  border-top: 1px solid #e8f2fb !important;
  background: #f8fafc !important;
}
#gx-modal-bg .modal-actions button,
#gx-modal-bg .modal-actions a {
  flex: 1 1 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  padding: 10px 16px !important;
  margin: 0 !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-decoration: none !important;
  cursor: pointer !important;
  box-shadow: none !important;
  appearance: none !important;
}
#gx-modal-bg .modal-actions button {
  border: 1px solid #c8d8ec !important;
  background: #ffffff !important;
  color: #1a2f5e !important;
}
#gx-modal-bg .modal-actions button:hover,
#gx-modal-bg .modal-actions button:focus {
  background: #e8f2fb !important;
  border-color: #0057a8 !important;
  color: #0057a8 !important;
}
#gx-modal-bg .modal-actions a.book {
  border: 1px solid #0057a8 !important;
  background: #0057a8 !important;
  color: #ffffff !important;
}
#gx-modal-bg .modal-actions a.book:hover,
#gx-modal-bg .modal-actions a.book:focus {
  background: #1a2f5e !important;
  border-color: #1a2f5e !important;
  color: #ffffff !important;
}
#gx-modal-bg .registration-notice {
  display: none;
  margin: 0 22px 0 !important;
  padding: 14px 0 0 !important;
  border-top: 1px solid #c8d8ec !important;
  color: #0057a8 !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}
#gx-modal-bg .registration-notice strong {
  color: #1a2f5e !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}
#gx-modal-bg .modal-actions a.registration-closed {
  border: 1px solid #c8d8ec !important;
  background: #e6ebf2 !important;
  color: #5a6e8c !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}
@media (max-width: 520px) {
  #gx-modal-bg.modal-backdrop { padding: 12px !important; }
  #gx-modal-bg .modal { width: 100% !important; max-height: calc(100vh - 24px) !important; border-radius: 8px !important; }
  #gx-modal-bg .modal-header { padding: 18px 18px 8px !important; }
  #gx-modal-bg .modal-title { font-size: 18px !important; }
  #gx-modal-bg .modal-meta { margin-left: 18px !important; margin-right: 18px !important; font-size: 12px !important; }
  #gx-modal-bg .modal-meta span { width: 88px !important; }
  #gx-modal-bg .modal-desc { margin-left: 18px !important; margin-right: 18px !important; font-size: 14px !important; }
  #gx-modal-bg .modal-actions { padding: 14px 18px 18px !important; flex-direction: column !important; }
}

#gx-modal-bg .modal-actions a.waitlist {
  border: 1px solid #c62828 !important;
  background: #c62828 !important;
  color: #ffffff !important;
}
#gx-modal-bg .modal-actions a.waitlist:hover,
#gx-modal-bg .modal-actions a.waitlist:focus {
  background: #8e0000 !important;
  border-color: #8e0000 !important;
  color: #ffffff !important;
}
