.pisell-sale-detail-tickets {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  scrollbar-width: none;

  &::-webkit-scrollbar {
    display: none;
  }

  &__body {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    padding: 8px 10px;
  }

  &__content {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    scrollbar-width: none;

    &::-webkit-scrollbar {
      display: none;
    }
  }

  .pisell-sale-detail-ticket-group-view {
    width: 100%;
  }

  &__footer {
    display: grid;
    flex: 0 0 auto;
    grid-template-rows: 1fr;
    margin-top: auto;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition:
      grid-template-rows 180ms ease,
      opacity 160ms ease,
      transform 180ms ease,
      visibility 0s linear;
  }

  &__footer--scrolling {
    grid-template-rows: 0fr;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    visibility: hidden;
    transition-delay: 0s, 0s, 0s, 180ms;
  }

  &__footer-content {
    min-height: 0;
    overflow: hidden;
  }

  &__bulk-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 8px;
    background: #05070d;
  }

  &__bulk-button {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #7f56d9;
    border-radius: 9px;
    background: transparent;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);

    &:disabled {
      cursor: not-allowed;
      opacity: 0.56;
    }

    &:not(:disabled):hover,
    &:not(:disabled):active {
      color: #fff;
      border-color: #7a4df5;
      background: rgba(127, 86, 217, 0.12);
    }
  }

  &__bulk-button--secondary {
    border-color: #7f56d9 !important;
    background: transparent !important;
    color: #ffffff !important;
  }

  &__bulk-button--theme {
    border-color: #6941c6 !important;
    background: #6941c6 !important;
    color: #ffffff !important;

    &:not(:disabled):hover,
    &:not(:disabled):active {
      border-color: #7f56d9 !important;
      background: #7f56d9 !important;
      color: #ffffff !important;
    }
  }
}

.pisell-sale-detail-ticket-group {
  &__footer-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  &__footer-actions--single {
    grid-template-columns: minmax(0, 1fr);
  }

  &__footer-button {
    width: 100%;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #7f56d9;
    border-radius: 9px;
    background: transparent;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    cursor: pointer;

    &:disabled {
      cursor: not-allowed;
      opacity: 0.56;
    }

    &:not(:disabled):hover,
    &:not(:disabled):active {
      color: #fff;
      border-color: #7a4df5;
      background: rgba(127, 86, 217, 0.12);
    }
  }

  &__footer-button--primary {
    border-color: #6941c6;
    background: #6941c6;
    color: #ffffff;

    &:not(:disabled):hover,
    &:not(:disabled):active {
      border-color: #7f56d9;
      background: #7f56d9;
    }
  }
}

.pisell-sale-detail-ticket-record {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
  --ticket-record-border-color: rgba(127, 86, 217, 0.72);
  --ticket-record-accent-color: #7f56d9;
  border: 1px solid var(--ticket-record-border-color);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(31, 24, 55, 0.96), rgba(11, 16, 31, 0.98)),
    #101828;
  box-shadow:
    inset 4px 0 0 var(--ticket-record-accent-color),
    0 10px 24px rgba(0, 0, 0, 0.22);
  color: var(--pisell-line-item-text-primary, #f9fafb);

  &--used {
    --ticket-record-border-color: rgba(148, 163, 184, 0.58);
    --ticket-record-accent-color: #94a3b8;
    background:
      linear-gradient(135deg, rgba(55, 65, 81, 0.88), rgba(10, 18, 31, 0.98)),
      #101828;
  }

  &--expired {
    --ticket-record-border-color: rgba(245, 158, 11, 0.62);
    --ticket-record-accent-color: #f59e0b;
    background:
      linear-gradient(135deg, rgba(69, 43, 10, 0.9), rgba(10, 18, 31, 0.98)),
      #101828;
  }

  &__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px 6px 14px;
    background: transparent;
  }

  &__number {
    flex: none;
    max-width: 42%;
    overflow: hidden;
    color: #d9e2ff;
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  &__name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    line-height: 24px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  &__time {
    min-width: 0;
    overflow: hidden;
    color: var(--pisell-line-item-text-secondary, #d0d5dd);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  &__holder-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 2px 10px 0 14px;
  }

  &__holder {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    line-height: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  &__venue {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px 8px;
    color: var(--pisell-line-item-text-secondary, #d0d5dd);
    font-size: 12px;

    strong {
      color: #f9fafb;
    }
  }

  &__guest {
    padding: 0 10px 8px;
    color: var(--pisell-line-item-text-secondary, #d0d5dd);
    font-size: 12px;

    strong {
      color: #f9fafb;
    }
  }

  &__actions {
    display: grid;
    gap: 8px;
    padding: 10px 10px 10px;
  }

  &__actions--redeemable {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  &__actions--checked-in {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  &__primary-action,
  &__secondary-action {
    width: 100%;
    min-height: 34px;
    padding: 0 12px;
    border: 0;
    background: #6941c6;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    cursor: pointer;

    &:disabled {
      cursor: not-allowed;
      opacity: 0.56;
    }
  }

  &__primary-action {
    border-radius: 9px;
  }

  &__secondary-action {
    border: 1px solid #7f56d9;
    border-radius: 9px;
    background: transparent;
  }

  &--checked-in {
    .pisell-sale-detail-ticket-record__primary-action,
    .pisell-sale-detail-ticket-record__secondary-action {
      border: 1px solid #7f56d9;
      background: transparent;
      color: #ffffff;
    }
  }
}
