/* Rich activity WYSIWYG editor, decorated section headings, category pills & travel/booking options. */

/* --- Decorated section headings (shared by WYSIWYG canvas & event detail) --- */
.crab-h5 .event-rich-heading-wrap {
  display: flex;
  justify-content: center;
  margin: 18px 0 10px;
}
.crab-h5 .event-rich-heading {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  margin: 0;
  padding: 2px 6px 8px;
  color: var(--ink, #201C22);
  font: 800 19px/1.4 var(--sans);
  text-align: center;
  overflow-wrap: anywhere;
}
.crab-h5 .event-rich-heading::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: #322D3040;
}
.crab-h5 .event-rich-heading[data-decor="none"]::after {
  background: #D9D0C0;
  height: 1px;
}
.crab-h5 .event-rich-heading-text {
  min-width: 0;
  overflow-wrap: anywhere;
}
.crab-h5 .event-rich-ornament {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  pointer-events: none;
}
.crab-h5 .event-rich-ornament svg {
  display: block;
  width: 22px;
  height: 22px;
}
.crab-h5 .event-rich-heading[data-decor="dots"] .event-rich-ornament-left svg {
  width: 22px;
  height: 22px;
}
.crab-h5 .event-rich-heading[data-decor="dots"] .event-rich-ornament-right svg {
  width: 14px;
  height: 14px;
  align-self: flex-end;
  margin-bottom: -2px;
}

/* --- Rich content blocks in event detail --- */
.crab-h5 .event-rich-blocks {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}
.crab-h5 .event-rich-paragraph {
  margin: 0;
  color: #302E32;
  font: 400 16px/1.85 var(--sans);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.crab-h5 .event-rich-paragraph.is-center {
  text-align: center;
}
.crab-h5 .event-rich-paragraph.is-left {
  text-align: left;
}
.crab-h5 .event-rich-media {
  margin: 4px 0;
}
.crab-h5 .event-rich-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #F6EBD6;
  border: 1px solid #E2D9CB;
}
.crab-h5 .event-rich-slide-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.crab-h5 .event-rich-slide-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(56dvh, 520px);
  object-fit: cover;
}
.crab-h5 .event-rich-slide-btn.is-stable {
  position: relative;
  max-height: min(56dvh, 520px);
}
.crab-h5 .event-rich-slide-btn.is-stable .event-rich-slide-img {
  position: absolute;
  inset: 0;
  height: 100%;
  max-height: none;
  object-fit: cover;
}
.crab-h5 .event-rich-carousel.is-single .event-rich-slide-img {
  object-fit: contain;
  background: #FFFCF5;
}
.crab-h5 .event-rich-counter {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #201C22B8;
  color: #FFFEFB;
  font: 600 12px/1.5 var(--mono);
  pointer-events: none;
}
.crab-h5 .event-rich-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #201C228F;
  color: #FFFEFB;
  font-size: 20px;
  cursor: pointer;
}
.crab-h5 .event-rich-nav.is-prev { left: 8px; }
.crab-h5 .event-rich-nav.is-next { right: 8px; }
.crab-h5 .event-rich-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  background: #FFFCF5;
}
.crab-h5 .event-rich-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #D6CBB8;
  cursor: pointer;
}
.crab-h5 .event-rich-dot.is-active {
  width: 18px;
  border-radius: 4px;
  background: var(--coral, #FF7A63);
}
.crab-h5 .event-rich-caption {
  margin: 6px 0 0;
  color: var(--ink-2, #635B54);
  font: 400 13px/1.55 var(--sans);
  text-align: center;
  overflow-wrap: anywhere;
}

/* --- Cover gallery controls --- */
.crab-h5 .event-gallery-wrap {
  position: relative;
  margin-bottom: 16px;
}
.crab-h5 .event-gallery-wrap .event-ticket-photo {
  margin-bottom: 0;
}
.crab-h5 .event-gallery-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}
.crab-h5 .event-gallery-step {
  min-width: 44px;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid #DFD5C4;
  border-radius: 10px;
  background: #FFF9EF;
  color: var(--ink);
  font: 600 13px/1.3 var(--sans);
  cursor: pointer;
}
.crab-h5 .event-gallery-count {
  color: var(--ink-2);
  font: 600 12px/1.4 var(--mono);
}

/* --- Event detail travel & booking modules --- */
.crab-h5 .event-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 14px;
  margin: 8px 0 4px;
}
.crab-h5 .event-price-amount {
  color: #B44B36;
  font: 800 22px/1.3 var(--mono);
}
.crab-h5 .event-price-amount small {
  margin-left: 3px;
  font: 600 13px/1.3 var(--sans);
  color: var(--ink-2);
}
.crab-h5 .event-views-badge {
  color: var(--ink-2);
  font: 500 12px/1.5 var(--sans);
}
.crab-h5 .event-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 2px;
}
.crab-h5 .event-feature-tag {
  padding: 3px 9px;
  border-radius: 6px;
  background: #F6EBD6;
  color: #5C4B34;
  font: 600 12px/1.4 var(--sans);
}
.crab-h5 .event-safeguard-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid #E2D9CB;
  border-radius: 10px;
  background: #FFF9EF;
  color: #3E4D3C;
  font: 500 13px/1.55 var(--sans);
}
.crab-h5 .event-safeguard-row strong {
  flex: none;
  color: #2E6B47;
  font-weight: 700;
}
.crab-h5 .event-booking-panel {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid #E2D9CB;
}
.crab-h5 .event-booking-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 10px;
}
.crab-h5 .event-booking-head h2 {
  margin: 0;
  color: var(--ink);
  font: 700 15px/1.4 var(--sans);
}
.crab-h5 .event-booking-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.crab-h5 .event-custom-trigger,
.crab-h5 .event-more-schedules {
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid #CFC3B0;
  border-radius: 10px;
  background: #FFF9EF;
  color: var(--ink);
  font: 600 13px/1.3 var(--sans);
  cursor: pointer;
}
.crab-h5 .event-custom-trigger {
  border-color: #D29A6D;
  background: #FFF3E0;
}
.crab-h5 .event-schedule-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.crab-h5 .event-schedule-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 44px;
  padding: 9px 12px;
  border: 1.5px solid #D8CBB8;
  border-radius: 11px;
  background: #FFFEFB;
  color: var(--ink);
  font: 500 13px/1.4 var(--sans);
  text-align: left;
  cursor: pointer;
}
.crab-h5 .event-schedule-chip strong {
  font: 700 13px/1.35 var(--mono);
}
.crab-h5 .event-schedule-chip span {
  color: var(--ink-2);
  font-size: 12px;
}
.crab-h5 .event-schedule-chip[aria-pressed="true"] {
  border-color: #3B825B;
  background: #E9F6EE;
}
.crab-h5 .event-package-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.crab-h5 .event-package-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border: 1.5px solid #D8CBB8;
  border-radius: 12px;
  background: #FFFEFB;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.crab-h5 .event-package-option[aria-pressed="true"] {
  border-color: #3B825B;
  background: #E9F6EE;
}
.crab-h5 .event-package-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.crab-h5 .event-package-main strong {
  font: 700 15px/1.4 var(--sans);
  overflow-wrap: anywhere;
}
.crab-h5 .event-package-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: var(--ink-2);
  font: 500 12px/1.4 var(--sans);
}
.crab-h5 .event-package-price {
  color: #B44B36;
  font: 700 14px/1.4 var(--mono);
}
.crab-h5 .event-package-status {
  flex: none;
  color: #8C6A2E;
  font: 600 12px/1.4 var(--sans);
}
.crab-h5 .event-joined-choice {
  margin: 12px 0 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: #E9F6EE;
  color: #2A5B40;
  font: 600 13px/1.5 var(--sans);
}

/* --- Footer consult button --- */
.crab-h5 .event-action-bar .event-consult-action {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 52px;
  min-height: 46px;
  padding: 4px 8px;
  border: 1px solid #D8CBB8;
  border-radius: 12px;
  background: #FFFEFB;
  color: var(--ink);
  font: 600 11px/1.2 var(--sans);
  cursor: pointer;
}
.crab-h5 .event-action-bar .event-consult-action svg {
  width: 19px;
  height: 19px;
}

/* --- Dialogs (Custom Request & All Schedules) --- */
.crab-h5 .event-rich-dialog {
  width: min(92vw, 480px);
  max-height: 86dvh;
  margin: auto;
  padding: 0;
  border: 1.5px solid var(--ink, #201C22);
  border-radius: 20px;
  background: #FFF9EF;
  color: var(--ink, #201C22);
  box-shadow: 3px 4px 0 var(--ink, #201C22);
}
.crab-h5 .event-rich-dialog::backdrop {
  background: #201C2280;
}
.crab-h5 .event-rich-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid #E2D9CB;
}
.crab-h5 .event-rich-dialog-head h2 {
  margin: 0;
  font: 800 18px/1.35 var(--sans);
}
.crab-h5 .event-rich-dialog-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #DFD5C4;
  border-radius: 50%;
  background: #FFFEFB;
  color: var(--ink);
  cursor: pointer;
}
.crab-h5 .event-rich-dialog-close svg {
  width: 20px;
  height: 20px;
}
.crab-h5 .event-rich-dialog-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px 20px;
  overflow-y: auto;
}
.crab-h5 .event-rich-dialog-body label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font: 700 13px/1.4 var(--sans);
}
.crab-h5 .event-rich-dialog-body input,
.crab-h5 .event-rich-dialog-body textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #C8BBA6;
  border-radius: 10px;
  background: #FFFEFB;
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
}
.crab-h5 .event-rich-dialog-error {
  margin: 0;
  color: #A4382A;
  font: 600 13px/1.5 var(--sans);
}
.crab-h5 .event-rich-dialog-success {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px 20px;
}

/* --- Composer Mode Switcher (Two Distinct Entries: Standard vs Rich Layout) --- */
.crab-h5 .compose-mode-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 12px;
  padding: 4px;
  border: 1px solid #DED3C0;
  border-radius: 14px;
  background: #F6EBD6;
}
.crab-h5 .compose-mode-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-2, #635B54);
  font: 750 13px/1.3 var(--sans);
  cursor: pointer;
}
.crab-h5 .compose-mode-tab svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.crab-h5 .compose-mode-tab[aria-pressed="true"] {
  border-color: var(--ink, #201C22);
  background: #FFFEFB;
  color: var(--ink, #201C22);
  box-shadow: 1px 2px 0 var(--ink, #201C22);
}

/* Hide #draft-body when user is in dedicated Rich Layout entry */
.crab-h5 .compose-writing:has(.compose-rich-editor.is-rich-mode) #draft-body {
  display: none !important;
}

/* --- Composer: Seamless Continuous Flow Editor & Bottom Docked Bar --- */
.crab-h5 .compose-rich-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}
.crab-h5 .wysiwyg-canvas {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 150px;
  padding: 4px 0 6px;
  border: 0;
  background: transparent;
}
.crab-h5 .wysiwyg-canvas.is-preview {
  padding: 12px 10px 16px;
  border-radius: 14px;
  background: #FFFCF5;
  border: 1px solid #E5DAC8;
}

/* Seamless body text flow (no outer/inner box around text) */
.crab-h5 .wysiwyg-flow-text {
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
}
.crab-h5 .wysiwyg-flow-text.is-primary .wysiwyg-text-input {
  min-height: 128px;
}

/* Inserted special blocks (Decorated Title / Photos) */
.crab-h5 .wysiwyg-block {
  position: relative;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  transition: border-color .12s ease, background-color .12s ease;
}
.crab-h5 .wysiwyg-block:hover {
  border-color: #EAE0CE;
  background: #FFFEFB;
}
.crab-h5 .wysiwyg-block.is-active {
  border-color: #CBB38E;
  background: #FFFEFB;
}
.crab-h5 .wysiwyg-block-context {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px dashed #E5DAC8;
}
.crab-h5 .wysiwyg-block.is-active .wysiwyg-block-context {
  display: flex;
}
.crab-h5 .wysiwyg-context-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}
.crab-h5 .wysiwyg-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 3px 9px;
  border: 1px solid #D5C8B3;
  border-radius: 999px;
  background: #FFF9EF;
  color: var(--ink-2);
  font: 650 12px/1.2 var(--sans);
  cursor: pointer;
}
.crab-h5 .wysiwyg-chip[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--yellow, #FFD24D);
  color: var(--ink);
}
.crab-h5 .wysiwyg-mini-op {
  min-width: 30px;
  min-height: 30px;
  padding: 0 7px;
  border: 1px solid #DFD3BF;
  border-radius: 8px;
  background: #FFFEFB;
  color: var(--ink);
  font: 700 12px/1 var(--sans);
  cursor: pointer;
}
.crab-h5 .wysiwyg-mini-op.is-danger {
  color: #9B3C30;
}
.crab-h5 .wysiwyg-mini-op:disabled {
  opacity: .35;
  cursor: default;
}

/* Bottom Docked Action Bar (always below the content flow) */
.crab-h5 .wysiwyg-bottom-dock {
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid #EAE0CE;
  background: #FFFEFBEE;
  backdrop-filter: blur(6px);
}
.crab-h5 .wysiwyg-dock-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.crab-h5 .wysiwyg-tool {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 5px 12px;
  border: 1.4px solid #D5C8B3;
  border-radius: 999px;
  background: #FFF9EF;
  color: var(--ink);
  font: 700 13px/1.2 var(--sans);
  cursor: pointer;
}
.crab-h5 .wysiwyg-tool:hover {
  border-color: var(--ink);
  background: #FFF3D1;
}
.crab-h5 .wysiwyg-tool[aria-pressed="true"] {
  border-color: var(--ink);
  background: #FFDA72;
  color: var(--ink);
}
.crab-h5 .wysiwyg-tool.is-preview[aria-pressed="true"] {
  background: #3B825B;
  border-color: #2E6B47;
  color: #FFFEFB;
}

/* Inline editable paragraph */
.crab-h5 .wysiwyg-text-input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 40px;
  padding: 4px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #302E32;
  font: 400 16px/1.8 var(--sans);
  resize: none;
  overflow: hidden;
  outline: 0;
}
.crab-h5 .wysiwyg-text-input.is-center {
  text-align: center;
}
.crab-h5 .wysiwyg-text-input.is-left {
  text-align: left;
}
.crab-h5 .wysiwyg-text-input::placeholder,
.crab-h5 .wysiwyg-heading-input::placeholder,
.crab-h5 .wysiwyg-caption-input::placeholder {
  color: #9A9287;
  opacity: 1;
}

/* Inline editable decorated heading */
.crab-h5 .wysiwyg-heading-wrap {
  margin: 6px 0;
}
.crab-h5 .wysiwyg-heading-input {
  min-width: 8ch;
  max-width: min(100%, 26ch);
  width: auto;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--ink, #201C22);
  font: 800 19px/1.4 var(--sans);
  text-align: center;
  outline: 0;
}

/* Inline WYSIWYG photo / carousel block */
.crab-h5 .wysiwyg-caption-input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 2px 6px;
  border: 0;
  background: transparent;
  color: var(--ink-2, #635B54);
  font: 400 13px/1.55 var(--sans);
  text-align: center;
  outline: 0;
}
.crab-h5 .wysiwyg-media-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 110px;
  border: 1.5px dashed #CBBDA6;
  border-radius: 12px;
  background: #FFF9EF;
  color: var(--ink-2);
  font: 600 14px/1.4 var(--sans);
  cursor: pointer;
}

/* --- Custom Activity Category Pill Selector (replaces ugly native dropdown) --- */
.crab-h5 .compose-category-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 2px;
}
.crab-h5 .compose-category-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 8px;
  border: 1.4px solid #D5C8B3;
  border-radius: 12px;
  background: #FFFEFB;
  color: var(--ink-2, #544B43);
  font: 650 13px/1.3 var(--sans);
  cursor: pointer;
}
.crab-h5 .compose-category-pill svg {
  width: 19px;
  height: 19px;
  flex: none;
}
.crab-h5 .compose-category-pill[aria-pressed="true"] {
  border-color: var(--ink, #201C22);
  background: #FFDA72;
  color: var(--ink, #201C22);
  font-weight: 800;
  box-shadow: 1px 2px 0 var(--ink, #201C22);
}
.crab-h5 .compose-event-fields select.compose-native-select-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* --- Composer: Clean Unified Table-Sheet Cards & Inline Rows --- */
.crab-h5 .compose-event-fields {
  gap: 10px;
}
.crab-h5 .compose-event-fields > label {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}
.crab-h5 .compose-tz-note {
  margin: -2px 2px 0 !important;
  color: var(--ink-2) !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
}
.crab-h5 .compose-sheet-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #DFD3BF;
  border-radius: 14px;
  background: #FFFEFB;
}
.crab-h5 .compose-sheet-card > :last-child {
  border-bottom: 0;
}
.crab-h5 .compose-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 12px;
  background: #FAF3E5;
  border-bottom: 1px solid #EAE0CE;
}
.crab-h5 .compose-sheet-head strong {
  font: 750 13px/1.35 var(--sans);
  color: var(--ink);
}
.crab-h5 .compose-clean-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 5px 14px;
  border-bottom: 1px solid #EFE7D8;
  background: #FFFEFB;
}
.crab-h5 .compose-event-fields .compose-clean-row > label {
  flex: 0 0 auto;
  margin: 0;
  color: var(--ink, #201C22);
  font: 700 13px/1.35 var(--sans);
}
.crab-h5 .compose-event-fields .compose-clean-row > input:not(.dt-native) {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 500 14px/1.4 var(--sans);
  text-align: right;
  outline: 0;
}
.crab-h5 .compose-event-fields .compose-clean-row > input::placeholder,
.crab-h5 .compose-event-fields .compose-sheet-cell > input::placeholder {
  color: #9A9287;
  opacity: 1;
}
.crab-h5 .compose-clean-row.is-datetime .dt-trigger {
  flex: 1 1 auto;
  justify-content: flex-end;
  gap: 8px;
  width: auto;
  min-height: 38px;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: right;
}
.crab-h5 .compose-clean-row.is-datetime .dt-trigger-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.crab-h5 .compose-clean-row.is-datetime .dt-trigger-icon svg {
  width: 16px;
  height: 16px;
}
.crab-h5 .compose-clean-row.is-datetime .dt-trigger-copy {
  flex: 0 1 auto;
  font-size: 13px;
  text-align: right;
}
.crab-h5 .compose-clean-row.is-datetime .dt-trigger-chevron {
  width: 15px;
  height: 15px;
}

.crab-h5 .compose-sheet-split-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid #EFE7D8;
}
.crab-h5 .compose-sheet-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  min-height: 46px;
  padding: 5px 12px;
}
.crab-h5 .compose-sheet-cell:first-child {
  border-right: 1px solid #EFE7D8;
}
.crab-h5 .compose-event-fields .compose-sheet-cell > label {
  flex: 0 0 auto;
  margin: 0;
  color: var(--ink, #201C22);
  font: 700 13px/1.3 var(--sans);
  white-space: nowrap;
}
.crab-h5 .compose-event-fields .compose-sheet-cell > input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 500 13px/1.35 var(--sans);
  text-align: right;
  outline: 0;
}

.crab-h5 .compose-event-group {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid #E2D7C5;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.crab-h5 .compose-event-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid #D8CBB8;
  border-radius: 12px;
  background: #FAF3E3;
  color: var(--ink);
  font: 750 13px/1.4 var(--sans);
  text-align: left;
  cursor: pointer;
}
.crab-h5 .compose-event-section-title {
  display: block;
  margin: 0;
  color: var(--ink);
  font: 800 13px/1.4 var(--sans);
}

/* Clean custom switch row inside the sheet card */
.crab-h5 .compose-clean-switch {
  width: 100%;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  text-align: left;
  cursor: pointer;
}
.crab-h5 .compose-switch-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.crab-h5 .compose-switch-copy strong {
  font: 700 13px/1.35 var(--sans);
  color: var(--ink);
}
.crab-h5 .compose-switch-copy small {
  color: var(--ink-2);
  font: 400 11px/1.35 var(--sans);
}
.crab-h5 .compose-switch-pill {
  position: relative;
  flex: none;
  width: 40px;
  height: 23px;
  border: 1.5px solid var(--ink, #201C22);
  border-radius: 999px;
  background: #E5DDD0;
  transition: background-color .15s ease;
}
.crab-h5 .compose-switch-pill::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FFFEFB;
  border: 1.2px solid var(--ink, #201C22);
  transition: transform .15s ease;
}
.crab-h5 .compose-clean-switch[aria-pressed="true"] .compose-switch-pill {
  background: #FFDA72;
}
.crab-h5 .compose-clean-switch[aria-pressed="true"] .compose-switch-pill::after {
  transform: translateX(17px);
}

.crab-h5 .compose-event-sublist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.crab-h5 .compose-event-sublist[hidden] {
  display: none !important;
}
.crab-h5 .compose-gallery-card .compose-rich-photos {
  padding: 10px 12px;
}
.crab-h5 .compose-quick-addons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.crab-h5 .compose-addon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 38px;
  padding: 6px 10px;
  border: 1.4px dashed #C8BAA3;
  border-radius: 999px;
  background: #FFFEFB;
  color: var(--ink-2, #544B43);
  font: 700 12px/1.3 var(--sans);
  cursor: pointer;
}
.crab-h5 .compose-addon-pill:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: #FFF9EF;
}
.crab-h5 .event-participant-choice {
  display: block;
  margin-top: 2px;
  color: var(--ink-2);
  font: 500 12px/1.35 var(--sans);
}
.crab-h5 .compose-rich-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.crab-h5 .compose-rich-photo-item {
  position: relative;
  width: 68px;
  height: 68px;
  border: 1px solid #CFC2AD;
  border-radius: 10px;
  overflow: hidden;
  background: #FFFEFB;
}
.crab-h5 .compose-rich-photo-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.crab-h5 .compose-rich-photo-del {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #201C22CC;
  color: #FFFEFB;
  font: 700 13px/1 var(--sans);
  cursor: pointer;
}
