@sale-detail-prefix: pisell-sale-detail;

.@{sale-detail-prefix} {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #181818;
  color: #111827;
}

.@{sale-detail-prefix}-container {
  .pisell-lowcode-drawer-body {
    padding: 0;
  }
}

.@{sale-detail-prefix}-drawer-root:not(.@{sale-detail-prefix}-drawer-root--phone) {
  .pisell-lowcode-drawer-content-wrapper {
    overflow: visible;
  }
}

.@{sale-detail-prefix}-floating-close {
  position: absolute;
  top: 16px;
  left: -56px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 24px rgb(16 24 40 / 16%);
  color: #344054;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.@{sale-detail-prefix}-floating-close:hover {
  background: #f9fafb;
  color: #111827;
}

.@{sale-detail-prefix}-floating-close--left {
  right: -56px;
  left: auto;
}

.@{sale-detail-prefix}-mobile-sheet {
  border-radius: 16px 16px 0 0;

  .@{sale-detail-prefix}-tmpl-body {
    background-color: #181818;
  }

  .@{sale-detail-prefix}-main {
    padding: 12px;
  }

  .@{sale-detail-prefix}-footer {
    padding-bottom: 0;
    border-top: 1px solid #e7e8e9;
    box-shadow: none;
  }
}

.@{sale-detail-prefix}-mobile-sheet__handler {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 34px;
  padding: 0;
  border: 0;
  color: #667085;
  background: #fff;
  cursor: pointer;
}

.@{sale-detail-prefix}-mobile-sheet__handler-icon {
  font-size: 20px;
  line-height: 1;
  transform: rotate(180deg);
  transition: transform 0.2s ease;
}

.@{sale-detail-prefix}-mobile-sheet__handler--open {
  .@{sale-detail-prefix}-mobile-sheet__handler-icon {
    transform: rotate(0deg);
  }
}

.@{sale-detail-prefix}-mobile-sheet__body {
  min-height: 0;
  overflow: hidden;
  border-top: 1px solid #f2f4f7;
}

.@{sale-detail-prefix}-mobile-sheet__body--open {
  border-top-color: #f2f4f7;
}

.@{sale-detail-prefix}-mobile-sheet__footer {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  background: #fff;
}

.@{sale-detail-prefix}-mobile-sheet__footer--safe-area {
  padding-bottom: env(safe-area-inset-bottom);
}
