.panel-editors {
  padding: 0.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}

.editor-block {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 280px;
  gap: 0.5rem;
}

.event-panel-header {
  align-items: center;
}

.event-form {
  display: grid;
  align-content: start;
  gap: 0.5rem;
}

.event-points-subpanel {
  border: 1px solid #d7dee8;
  border-radius: 10px;
  padding: 0.65rem;
  background: #ffffff;
  display: grid;
  gap: 0.5rem;
  width: 100%;
  justify-self: start;
}

.event-points-header {
  align-items: center;
}

.points-auto-offset-btn {
  min-width: 0;
  white-space: nowrap;
}

.event-points-group {
  display: grid;
  gap: 0.35rem;
  width: 95%;
  margin: 0 auto;
}

.event-points-group[hidden] {
  display: none !important;
}

.event-points-group-heading {
  display: grid;
  gap: 0.15rem;
}

.editor-subsection-title {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #34475b;
}

.points-header {
  display: grid;
  --point-poi-picker-icon-size: 19.8px;
  --points-tune-column-width: 46px;
  --points-type-column-width: max(
    calc(var(--point-poi-picker-icon-size, 18px) * 2.1),
    48px
  );
  --points-mark-only-column-width: 44px;
  --points-font-size-column-width: 96px;
  grid-template-columns:
    minmax(58px, 74px)
    minmax(0, 1fr)
    var(--points-tune-column-width)
    var(--points-type-column-width)
    minmax(var(--points-mark-only-column-width), auto)
    var(--points-font-size-column-width)
    var(--points-actions-column-width);
  gap: 0.34rem;
  align-items: end;
}

.points-header.hide-poi-marker-columns {
  grid-template-columns:
    minmax(45px, 60px)
    minmax(0, 1fr)
    var(--points-tune-column-width)
    var(--points-font-size-column-width)
    var(--points-actions-column-width);
}

.points-header.hide-poi-marker-columns .points-header-cell:nth-child(4),
.points-header.hide-poi-marker-columns .points-header-cell:nth-child(5) {
  display: none;
}

.points-header-cell {
  font-size: 0.64rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5d6d7d;
}

.points-header-cell:nth-child(3),
.points-header-cell:nth-child(4),
.points-header-cell:nth-child(5),
.points-header-cell:nth-child(6),
.points-header-cell:last-child {
  text-align: center;
}

.points-header-cell:nth-child(3),
.points-header-cell:nth-child(4),
.points-header-cell:nth-child(5),
.points-header-cell:nth-child(6) {
  margin-left: 0.12rem;
}

.points-header-cell:last-child {
  margin-left: 0.04rem;
}

.subpanel-title {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.2;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.order-form {
  display: grid;
  align-content: start;
  gap: 0.8rem;
}

.order-review-shell {
  display: grid;
  justify-items: center;
}

.order-review-meta {
  width: min(560px, 100%);
  display: none;
}

.order-review-mobile-hint {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.25;
  color: #4a6278;
  text-align: left;
}

.order-review-expand-close-btn {
  border: 1px solid #bcc9d7;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #17324b;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.order-review-expand-close-btn {
  padding: 0.38rem 0.82rem;
}

.order-review-expand-close-btn:hover {
  background: #eff4f9;
}

.order-review-expand-close-btn:focus {
  outline: 2px solid #7fa9d1;
  outline-offset: 1px;
}

.order-review-wrap {
  width: min(560px, 100%);
  height: 320px;
  min-height: 320px;
  border: 1px dashed #c7d1dd;
  border-radius: 14px;
  background: linear-gradient(180deg, #fcfdff 0%, #f2f5f8 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
  padding: 0.75rem;
  box-shadow: 0 8px 24px rgba(14, 31, 48, 0.06);
}

#order-review-image {
  display: block;
}

#order-review-image,
#order-review-expand-image {
  display: block;
}

.order-review-wrap.has-preview {
  cursor: zoom-in;
}

.order-review-empty {
  width: min(82%, 360px);
  font-size: 0.86rem;
  line-height: 1.35;
  color: #4a5f73;
  text-align: center;
}

.order-review-empty[hidden] {
  display: none;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.event-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.6rem;
}

.event-form-row-three {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
}

.event-form-field {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.event-form-field-placeholder {
  visibility: hidden;
  pointer-events: none;
}

.event-form-field[hidden] {
  display: none !important;
}

.event-form-field-profile-color,
.event-form-field-fuelbar {
  justify-items: stretch;
}

.event-form-field-profile-color {
  grid-column: 2 / -1;
}

.event-form-field-date {
  align-self: start;
  align-content: start;
}

.event-form-field-date input[type="date"] {
  align-self: start;
  height: auto;
  min-height: 0;
}

.event-form-field-header-note,
.event-form-field-secondary-color {
  align-content: start;
  grid-template-rows: auto 36px;
}

#event-header-note,
#event-secondary-color {
  height: 36px;
}

.event-form-field-color .field-label {
  text-align: center;
}

.event-form-paid-box {
  display: grid;
  gap: 0.32rem;
  width: 100%;
  max-width: 100%;
  padding: 0.42rem 0.52rem;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #f5fbf6;
}

.event-form-paid-box-title {
  display: inline-flex;
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  padding: 0.12rem 0.38rem;
  border-radius: 999px;
  background: transparent;
  color: #476075;
  font-size: 0.62rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.event-form-paid-box .event-form-subfield {
  width: fit-content;
  max-width: 100%;
}

.event-form-field-profile-color .event-form-paid-box {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  column-gap: 0.6rem;
}

.event-form-field-profile-color .event-form-paid-box .event-form-subfield {
  width: 100%;
}

.event-form-field-profile-color .event-form-paid-box .event-form-subfield.event-form-field-gradient {
  width: 100%;
  padding-left: calc(0.52rem + 1px);
  justify-items: start;
}

.event-form-field-profile-color .event-form-paid-box-title {
  grid-column: 1 / -1;
  justify-self: center;
  text-align: center;
}

.event-form-paid-box .event-form-field-color .field-label {
  text-align: left;
}

.event-form-paid-box .input-with-leading-action {
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
}

.event-form-field-empty {
  visibility: hidden;
}

.event-form-subfield {
  display: grid;
  gap: 0.3rem;
}

.event-form-subfield-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.6rem;
}

.event-form-subfield-stack {
  display: grid;
  gap: 0.6rem;
}

.radio-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 36px;
  flex-wrap: nowrap;
}

.inline-control-cluster {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
}

.inline-radio-field {
  display: grid;
  gap: 0.3rem;
  justify-items: start;
  min-width: 0;
}

.inline-radio-field-display-settings {
  gap: 0.4rem;
}

.inline-display-settings-row {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  align-items: end;
  gap: 0.6rem;
}

.display-setting-control {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
}

.display-setting-label {
  color: #223248;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
}

.segmented-control {
  display: inline-flex;
  align-items: center;
  gap: 0;
  width: max-content;
  min-height: 32px;
  padding: 1px;
  border: 1px solid #b8cce2;
  border-radius: 999px;
  background: #eef5fc;
}

.segmented-control.radio-group {
  gap: 0;
  min-height: 32px;
  flex-wrap: nowrap;
}

.segmented-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #33516f;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.segmented-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.segmented-option input:checked + span,
.segmented-button[aria-pressed="true"] {
  background: #47ad56;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(18, 68, 31, 0.18);
}

.segmented-option input:focus-visible + span,
.segmented-button:focus-visible {
  outline: 2px solid #005eb8;
  outline-offset: 2px;
}

.segmented-option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 28px;
  padding: 0 0.47rem;
  border-radius: 999px;
}

.segmented-button {
  padding: 0 0.47rem;
}

.segmented-checkbox-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.radio-option {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.92rem;
  line-height: 1.2;
  color: #1b2836;
  cursor: pointer;
}

.radio-option input[type="radio"] {
  margin: 0;
}

.checkbox-option input[type="checkbox"] {
  margin: 0;
}

.input-with-leading-action {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.input-with-leading-action > select,
.input-with-leading-action > input {
  flex: 1 1 auto;
}

.input-with-leading-action > .radio-group {
  flex: 1 1 auto;
}

.input-with-leading-action > .segmented-control {
  flex: 0 0 auto;
}

.inline-info-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
  border: 1px solid #0b4f75;
  border-radius: 999px;
  background: #0b4f75;
  color: #ffffff;
  font-size: 0.82rem;
  line-height: 1;
  font-weight: 700;
}

.inline-info-link:hover {
  background: #0a4465;
}

.event-form-field-span-two {
  grid-column: span 2;
}

.event-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.order-modal-open-btn {
  width: var(--user-action-button-target-width);
  min-width: 0;
  margin-left: auto;
}

.order-modal-open-btn:disabled {
  border-color: #b7c0c8;
  background: #d7dde3;
  color: #6a737b;
  cursor: not-allowed;
  justify-content: center;
}

.order-modal-open-btn:disabled .button-icon-image {
  display: none;
}

