/* Desktop confirms: Cancel / Yes sit in the middle, not packed to the right.
   sweetalert2.min.css sets `flex-direction: row-reverse` then
   `justify-content: flex-start`, which is the trailing (right) edge. */
.swal2-popup:not(.swal2-toast) .swal2-actions {
  justify-content: center;
  flex-direction: row;
  gap: 8px;
}

body .swal2-popup.swift-action-dialog:not(.swal2-toast) {
  box-sizing: border-box;
  width: min(440px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px);
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  padding: 24px 24px 0;
  border: 1px solid var(--bs-border-color, rgba(39, 54, 45, 0.12));
  border-radius: 10px;
  background: var(--bs-surface-bg, #fff);
  color: var(--bs-text, #263238);
  box-shadow: 0 18px 48px rgba(20, 31, 24, 0.2);
  font-family: inherit;
  letter-spacing: 0;
}

body .swal2-popup.swift-action-dialog:not(.swal2-toast):has(.swal2-icon) {
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 16px;
}

body .swal2-popup.swift-action-dialog:not(.swal2-toast) .swal2-title {
  grid-column: 1 / -1;
  max-width: 100%;
  margin: 0;
  padding: 0 28px 0 0;
  color: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
  text-align: left;
  overflow-wrap: anywhere;
}

body .swal2-popup.swift-action-dialog:not(.swal2-toast):has(.swal2-icon) .swal2-title {
  grid-column: 2;
  padding-right: 20px;
}

body .swal2-popup.swift-action-dialog:not(.swal2-toast) .swal2-html-container {
  grid-column: 1 / -1;
  max-width: 100%;
  margin: 6px 0 0;
  padding: 0;
  color: color-mix(in srgb, var(--bs-text, #263238) 76%, transparent);
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  text-align: left;
  overflow-wrap: anywhere;
}

body .swal2-popup.swift-action-dialog:not(.swal2-toast):has(.swal2-icon) .swal2-html-container {
  grid-column: 2;
}

body .swal2-popup.swift-action-dialog:not(.swal2-toast) .swal2-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  margin: 1px 0 0;
  border-width: 2px;
  font-size: 24px;
}

body .swal2-popup.swift-action-dialog:not(.swal2-toast) .swal2-icon.swal2-warning {
  border-color: color-mix(in srgb, var(--bs-accent, #e0791c) 32%, transparent);
  color: var(--bs-accent, #e0791c);
}

body .swal2-popup.swift-action-dialog:not(.swal2-toast) .swal2-icon.swal2-question {
  border-color: color-mix(in srgb, var(--bs-main, #3a9821) 32%, transparent);
  color: var(--bs-main, #3a9821);
}

body .swal2-popup.swift-action-dialog:not(.swal2-toast) .swal2-icon.swal2-info {
  border-color: color-mix(in srgb, #3981a8 32%, transparent);
  color: #3981a8;
}

body .swal2-popup.swift-action-dialog:not(.swal2-toast) .swal2-close {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  width: 32px !important;
  height: 32px !important;
  margin: 0 !important;
  border-radius: 6px !important;
  color: #68766d !important;
  font-size: 22px !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  z-index: 10 !important;
}

body .swal2-popup.swift-action-dialog:not(.swal2-toast) .swal2-close:hover {
  background: rgba(0, 0, 0, 0.06) !important;
  color: #1f2937 !important;
}

body .swal2-popup.swift-action-dialog:not(.swal2-toast) .swal2-actions {
  grid-column: 1 / -1;
  box-sizing: border-box;
  width: calc(100% + 48px);
  margin: 20px -24px 0;
  padding: 14px 24px;
  border-top: 1px solid var(--bs-border-color, #e6ece8);
  background: var(--bs-surface-2-bg, #f7f8f6);
  gap: 8px;
  justify-content: flex-start;
  flex-direction: row-reverse;
}

body .swal2-popup.swift-action-dialog:not(.swal2-toast) .swal2-actions > button {
  flex: 0 1 auto;
  min-width: 112px;
  min-height: 42px;
  margin: 0;
  padding: 10px 16px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  box-shadow: none;
}

body .swal2-popup.swift-action-dialog:not(.swal2-toast) .swal2-actions > .swal2-cancel {
  border: 1px solid var(--bs-border-color, #d6ded9) !important;
  background: var(--bs-surface-2-bg, #f5f7f5) !important;
  color: var(--bs-text, #36433b) !important;
}

body .swal2-popup.swift-action-dialog:not(.swal2-toast) .swal2-actions > .swal2-cancel:hover {
  background: var(--bs-surface-bg, #edf1ed) !important;
}

@media (max-width: 767px) {
  body .swal2-popup.swift-action-dialog:not(.swal2-toast) .swal2-title {
    padding-right: 64px;
    text-align: left;
  }

  body .swal2-popup.swift-action-dialog:not(.swal2-toast) .swal2-html-container {
    text-align: left;
  }

  body .swal2-popup.swift-action-dialog:not(.swal2-toast) .swal2-actions {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 8px 0 0;
    padding: 16px 20px;
    flex-direction: row-reverse;
    justify-content: flex-start;
  }
}

body .swal2-popup.swift-action-dialog:not(.swal2-toast) .swal2-actions > button:focus-visible,
body .swal2-popup.swift-action-dialog:not(.swal2-toast) .swal2-close:focus-visible {
  outline: 2px solid var(--bs-main, #348f37);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  body .swal2-container:has(> .swal2-popup:not(.swal2-toast)) {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    height: 100vh;
    height: 100dvh;
    padding: max(12px, env(safe-area-inset-top)) 0 0;
    overflow: hidden;
  }

  body .swal2-container > .swal2-popup:not(.swal2-toast) {
    display: flex !important;
    flex: 0 1 auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    align-self: stretch;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    max-height: 100%;
    margin: 0;
    padding: 0 0 env(safe-area-inset-bottom);
    border: 0;
    border-radius: 8px 8px 0 0;
    background: var(--bs-surface-bg, #fff);
    color: var(--bs-text, #222);
    font-family: inherit;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0;
    overflow: hidden auto;
    overscroll-behavior: contain;
  }

  body .swal2-popup:not(.swal2-toast) > * {
    flex-shrink: 0;
    min-width: 0;
  }

  body .swal2-popup:not(.swal2-toast) .swal2-close {
    z-index: 3;
    top: 12px;
    right: max(12px, env(safe-area-inset-right));
    width: 44px;
    height: 44px;
    margin: 0;
    border-radius: 6px;
    background: var(--bs-surface-2-bg, #f4f6f8) !important;
    color: var(--bs-text, #222);
    font-size: 28px;
    line-height: 1;
  }

  body .swal2-popup:not(.swal2-toast) .swal2-title {
    margin: 0;
    /* Reserve the close-button column so long/two-line titles never sit under it. */
    padding: 24px 72px 12px 20px;
    color: inherit;
    font-size: 18px;
    line-height: 26px;
    font-weight: 600;
    text-align: center;
    overflow-wrap: anywhere;
  }

  body .swal2-popup:not(.swal2-toast) .swal2-icon {
    margin: 24px auto 0;
  }

  body .swal2-popup:not(.swal2-toast) .swal2-image {
    max-width: calc(100% - 40px);
    height: auto;
    margin: 64px auto 0;
  }

  body .swal2-popup:not(.swal2-toast) .swal2-html-container {
    flex: 0 1 auto;
    min-height: 0;
    margin: 0;
    padding: 0 20px 16px;
    color: inherit;
    font-size: 14px;
    line-height: 22px;
    font-weight: 400;
    text-align: center;
    overflow-wrap: anywhere;
    overflow: auto;
    overscroll-behavior: contain;
  }

  body
    .swal2-popup:not(.swal2-toast):not(:has(.swal2-title:not([style*="display: none"])))
    .swal2-html-container {
    padding-top: 64px;
  }

  body .swal2-popup:not(.swal2-toast) .swal2-actions {
    position: sticky;
    bottom: 0;
    width: 100%;
    max-width: none;
    margin: 8px 0 0;
    padding: 16px 20px;
    gap: 8px;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    flex-direction: row;
    border-top: 1px solid var(--bs-border-color, #ddd);
    background: var(--bs-surface-bg, #fff);
  }

  body .swal2-popup:not(.swal2-toast) .swal2-actions > button {
    flex: 1 1 120px;
    min-width: 0;
    max-width: 100%;
    min-height: 48px;
    height: auto;
    margin: 0;
    padding: 12px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body .swal2-popup:not(.swal2-toast) .swal2-input,
  body .swal2-popup:not(.swal2-toast) .swal2-file,
  body .swal2-popup:not(.swal2-toast) .swal2-textarea,
  body .swal2-popup:not(.swal2-toast) .swal2-select,
  body .swal2-popup:not(.swal2-toast) .swal2-radio,
  body .swal2-popup:not(.swal2-toast) .swal2-checkbox,
  body .swal2-popup:not(.swal2-toast) .swal2-input-label {
    max-width: calc(100% - 40px);
    margin: 8px 20px;
    font-size: 16px;
    line-height: 24px;
  }

  body .swal2-popup:not(.swal2-toast) .swal2-footer {
    margin: 0;
    padding: 12px 20px;
    font-size: 12px;
    line-height: 18px;
    overflow-wrap: anywhere;
  }

  body .swal2-popup:not(.swal2-toast).swal2-show {
    animation: swift-alert-slide-up 180ms ease-out;
  }

  body .swal2-popup:not(.swal2-toast).swal2-hide {
    animation: swift-alert-slide-down 140ms ease-in forwards;
  }

  @keyframes swift-alert-slide-up {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }

  @keyframes swift-alert-slide-down {
    from {
      transform: translateY(0);
    }
    to {
      transform: translateY(100%);
    }
  }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  body .swal2-popup:not(.swal2-toast).swal2-show {
    animation: swift-alert-reduced-open 1ms linear;
  }

  body .swal2-popup:not(.swal2-toast).swal2-hide {
    animation: swift-alert-reduced-close 1ms linear;
  }

  @keyframes swift-alert-reduced-open {
    from {
      opacity: 1;
      transform: none;
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes swift-alert-reduced-close {
    from {
      opacity: 1;
      transform: none;
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

body .swal2-container.sc-reason-picker-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.12);
}

body .swal2-container > .swal2-popup.sc-reason-picker {
  display: flex !important;
  flex: none;
  flex-direction: column;
  align-items: stretch;
  align-self: auto;
  width: 320px !important;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 1px solid #dce2dc;
  border-radius: 8px;
  background: #fff;
  color: #28332c;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0;
  overflow: auto;
}

body .swal2-popup.sc-reason-picker .swal2-title {
  margin: 0;
  padding: 20px 52px 16px 20px;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-align: left;
  overflow-wrap: anywhere;
}

body .swal2-popup.sc-reason-picker .swal2-close {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  margin: 0;
  padding: 0;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: transparent !important;
  color: #748077;
  font-size: 26px;
}

body .swal2-popup.sc-reason-picker .swal2-radio {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: auto;
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: min(50dvh, 360px);
  margin: 0 24px 24px;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: transparent;
  color: inherit;
  font-size: 14px;
  padding: var(--px-4);
}

body .swal2-popup.sc-reason-picker .swal2-radio label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  line-height: 20px;
  cursor: pointer;
}

body .swal2-popup.sc-reason-picker .swal2-radio label:hover {
  background: #f3f5f3;
}

body .swal2-popup.sc-reason-picker .swal2-radio label:has(input:checked) {
  border-color: #edc797;
  background: #fff3e3;
  color: #945817;
}

body .swal2-popup.sc-reason-picker .swal2-radio label:focus-within {
  outline: 2px solid #ad681b;
  outline-offset: 1px;
}

body .swal2-popup.sc-reason-picker .swal2-radio input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #ad681b;
}

body .swal2-popup.sc-reason-picker .swal2-radio .swal2-label {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

body .swal2-popup.sc-reason-picker .swal2-actions {
  position: static;
  width: auto;
  margin: 0;
  padding: 12px 20px;
  border-top: 1px solid #e7ebe7;
  background: #fafbfa;
  gap: 8px;
}

body .swal2-popup.sc-reason-picker .swal2-actions > button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 40px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid #d5dcd5;
  border-radius: 5px;
  background: #fff;
  color: #465047;
  font-family: inherit;
  font-size: 13px;
  line-height: 20px;
}

body .swal2-popup.sc-reason-picker .swal2-actions > .swal2-confirm {
  border-color: #30981c;
  background: #30981c;
  color: #fff;
}

body .swal2-popup.sc-reason-picker .swal2-actions > .swal2-confirm:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sc2-ticket.is-reason-target,
.cards-ticket-ui.is-reason-target {
  outline: 2px solid #30981c;
  outline-offset: 2px;
}

body .swal2-container.sc-cancel-confirm-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
}

body .swal2-container > .swal2-popup.sc-cancel-confirm {
  display: flex !important;
  flex: none;
  flex-direction: column;
  align-items: stretch;
  align-self: auto;
  width: 400px !important;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid #e1e4e1;
  border-radius: 8px;
  background: #fff;
  color: #28332c;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0;
  overflow: auto;
}

body .swal2-popup.sc-cancel-confirm .swal2-icon {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  margin: 0;
  border: 0;
  border-radius: 6px;
  background: #fceeee;
  color: #c93636;
}

body .swal2-popup.sc-cancel-confirm .swal2-icon-content {
  font-size: 20px;
}

body .swal2-popup.sc-cancel-confirm .swal2-title {
  min-height: 76px;
  margin: 0;
  padding: 27px 56px 20px 76px;
  color: #28332c;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  text-align: left;
  overflow-wrap: anywhere;
}

body .swal2-popup.sc-cancel-confirm .swal2-close {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  margin: 0;
  border-radius: 4px;
  background: transparent !important;
  color: #748077;
  font-size: 26px;
}

body .swal2-popup.sc-cancel-confirm .swal2-html-container {
  margin: 0;
  padding: 0 20px 24px;
  color: #68716a;
  font-size: 14px;
  line-height: 22px;
  text-align: left;
  overflow-wrap: anywhere;
}

body .swal2-popup.sc-cancel-confirm .swal2-actions {
  position: static;
  width: auto;
  margin: 0;
  padding: 16px 20px;
  border-top: 1px solid #e8ebe8;
  background: #fafbfa;
  justify-content: flex-end;
  gap: 8px;
}

body .swal2-popup.sc-cancel-confirm .swal2-actions > button {
  flex: 0 1 auto;
  min-width: 112px;
  min-height: 40px;
  margin: 0;
  padding: 9px 14px;
  border: 1px solid #d5dcd5;
  border-radius: 5px;
  background: #fff;
  color: #465047;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
}

body .swal2-popup.sc-cancel-confirm .swal2-actions > .swal2-confirm {
  border-color: #c93636;
  background: #c93636;
  color: #fff;
}

body .swal2-popup.sc-cancel-confirm .swal2-actions > .swal2-confirm:hover {
  border-color: #b02b2b;
  background: #b02b2b;
}

body .swal2-popup.sc-cancel-confirm .swal2-actions > button:focus-visible {
  outline: 2px solid #66736a;
  outline-offset: 3px;
}

body .swal2-popup.sc-cancel-confirm .swal2-actions > button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

body .swal2-container.sc-group-confirm-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(23, 31, 27, 0.28);
}

body .swal2-container > .swal2-popup.sc-group-confirm {
  display: grid !important;
  flex: none;
  grid-template-columns: 16px 40px minmax(0, 1fr) 44px 8px;
  grid-template-rows: minmax(88px, auto);
  column-gap: 8px;
  align-items: stretch;
  align-self: auto;
  width: 440px !important;
  min-width: 0;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid #dfe5e1;
  border-radius: 8px;
  background: #fff;
  color: #28332c;
  box-shadow: 0 16px 48px rgba(23, 31, 27, 0.18);
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0;
  overflow: auto;
}

body .swal2-popup.sc-group-confirm > * {
  grid-column: 1 / -1;
  min-width: 0;
}

body .swal2-popup.sc-group-confirm .swal2-icon {
  position: static;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  width: 40px;
  height: 40px;
  margin: 0;
  border: 0;
  border-radius: 6px;
  background: #edf6e9;
  color: #30981c;
}

body .swal2-popup.sc-group-confirm .swal2-icon-content {
  font-size: 20px;
}

body .swal2-popup.sc-group-confirm .swal2-title {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  display: flex;
  align-items: center;
  min-height: 0;
  margin: 0;
  padding: 16px 8px;
  color: inherit;
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  letter-spacing: 0;
  text-align: left;
  overflow-wrap: anywhere;
}

body .swal2-popup.sc-group-confirm .swal2-close {
  position: static !important;
  grid-column: 4;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  z-index: 3;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border-radius: 6px;
  background: transparent !important;
  color: #748077;
  font-size: 20px;
  line-height: 1;
}

body .swal2-popup.sc-group-confirm .swal2-close:hover {
  background: #f0f3f1 !important;
  color: #28332c;
}

body .swal2-popup.sc-group-confirm .swal2-actions {
  position: static;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 16px 24px;
  border-top: 1px solid #e8ece9;
  background: #f8faf9;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 10px;
}

body .swal2-popup.sc-group-confirm .swal2-actions > button {
  flex: 0 1 auto;
  min-width: 112px;
  min-height: 44px;
  height: auto;
  margin: 0;
  padding: 11px 16px;
  border: 1px solid #d5dcd7;
  border-radius: 6px;
  background: #fff;
  color: #465047;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0;
  white-space: normal;
}

body .swal2-popup.sc-group-confirm .swal2-actions > .swal2-confirm {
  border-color: #30981c;
  background: #30981c;
  color: #fff;
}

body .swal2-popup.sc-group-confirm .swal2-actions > .swal2-confirm:hover {
  border-color: #287f17;
  background: #287f17;
}

body .swal2-popup.sc-group-confirm .swal2-actions > .swal2-cancel:hover {
  border-color: #b7c3ba;
  background: #f0f3f1;
}

body .swal2-popup.sc-group-confirm button:focus-visible {
  outline: 2px solid #30981c;
  outline-offset: 2px;
  box-shadow: none;
}

body .swal2-popup.sc-confirm .swal2-html-container {
  min-width: 0;
  margin: 0;
  padding: 0 24px 24px;
  color: #6c786f;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  text-align: left;
  overflow-wrap: anywhere;
}

body .swal2-popup.sc-confirm--warning .swal2-icon {
  background: #fff3e3;
  color: #ad681b;
}

body .swal2-popup.sc-confirm--warning .swal2-actions > .swal2-confirm {
  border-color: #ad681b;
  background: #ad681b;
}

body .swal2-popup.sc-confirm--warning .swal2-actions > .swal2-confirm:hover {
  border-color: #945817;
  background: #945817;
}

body .swal2-popup.sc-confirm--danger .swal2-icon {
  background: #fceeee;
  color: #c44848;
}

body .swal2-popup.sc-confirm--danger .swal2-actions > .swal2-confirm {
  border-color: #c44848;
  background: #c44848;
}

body .swal2-popup.sc-confirm--danger .swal2-actions > .swal2-confirm:hover {
  border-color: #ab3d3d;
  background: #ab3d3d;
}

body .swal2-container > .swal2-popup.sc-group-confirm--tickets {
  width: 620px !important;
}

body .swal2-popup.sc-group-confirm--tickets .swal2-html-container {
  min-width: 0;
  margin: 0;
  padding: 0 24px 24px;
  text-align: left;
  overflow: visible;
}

body .sc-group-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
  width: 100%;
  height: auto;
  min-height: 0;
}

body .sc-group-preview[data-layout="list"] {
  grid-template-columns: minmax(0, 1fr);
}

body .sc-group-preview > section {
  min-width: 0;
}

body .sc-group-preview > section > h3 {
  margin: 0 0 10px;
  color: #79847c;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}

body .sc-group-preview .sc2-ticket-list {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
}

body .sc-group-preview .sc2-ticket {
  cursor: default;
}

body .sc-group-preview .sc2-ticket:hover {
  transform: none;
}

body .sc-group-preview-target .sc2-ticket:not(.is-group, .is-combine),
body .sc-group-preview-target .sc2-ticket:is(.is-group, .is-combine) .sc2-ticket__inner,
body .sc-group-preview-target .sc2-ticket:is(.is-group, .is-combine)::before {
  border-style: dashed;
}

@media (max-width: 767px) {
  body .swal2-popup.sc-group-confirm--tickets .swal2-html-container {
    padding: 0 16px 20px;
    overflow-x: auto;
  }
  body .sc-group-preview {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

@media (max-width: 767px) {
  body .swal2-popup.sc-group-confirm .swal2-actions {
    padding: 16px;
  }

  body .swal2-popup.sc-group-confirm .swal2-actions > button {
    flex: 1 1 0;
    min-width: 0;
    padding: 11px 10px;
  }
}
