.ptm-editor-drawer {
  .g-drawer-bd {
    padding: 24px 24px 20px;
  }

  .g-drawer-close .iconify {
    width: 16px;
    height: 16px;
  }

  .g-form-group {
    margin-bottom: 20px;
  }

  .g-form-group:last-child {
    margin-bottom: 0;
  }

  .g-form-label {
    display: inline-flex;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #1a1a2e;
  }

  .g-form-label.required::before {
    margin-right: 4px;
    color: #ef4444;
    content: '*';
  }

  .g-hint {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.5;
    color: #9ca3af;
  }

  .g-input {
    width: 100%;
    height: 34px;
    padding: 0 10px;
    font-size: 13px;
    color: #1a1a2e;
    outline: none;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: var(--g-transition);
  }

  .g-input:focus {
    border-color: #1677ff;
    box-shadow: 0 0 0 3px rgb(22 119 255 / 12%);
  }

  .g-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 16px;
    font-size: 13px;
    color: #1f1f1f;
    cursor: pointer;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    box-shadow: var(--g-shadow-sm);
    transition: all var(--g-transition);
  }

  .g-btn:hover {
    color: #1677ff;
    border-color: #1677ff;
    box-shadow: var(--g-shadow-md);
  }

  .g-btn-primary {
    color: #fff;
    background: #1677ff;
    border-color: #1677ff;
  }

  .g-btn-primary:hover {
    color: #fff;
    opacity: 0.88;
  }

  .g-btn-sm {
    height: 30px;
    padding: 0 12px;
    font-size: 12px;
  }

  .g-btn:disabled {
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.6;
  }

  .g-toggle {
    position: relative;
    width: 40px;
    height: 22px;
    cursor: pointer;
    background: #d9d9d9;
    border: none;
    border-radius: 11px;
    transition: all 0.2s;
  }

  .g-toggle::before {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    content: '';
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgb(0 0 0 / 15%);
    transition: all 0.2s;
  }

  .g-toggle.on {
    background: #1677ff;
  }

  .g-toggle.on::before {
    transform: translateX(18px);
  }

  .g-toggle-label {
    font-size: 12px;
    color: #4b5563;
  }

  .ptm-fg-row {
    display: flex;
    gap: 12px;
    align-items: center;
  }

  .ptm-fg-row .g-input {
    flex: 1;
  }

  .ptm-fg-sep {
    font-size: 15px;
    color: #9ca3af;
  }

  .ptm-day-sel {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
  }

  .ptm-day {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 30px;
    padding: 0 6px;
    font-size: 12px;
    color: #9ca3af;
    cursor: pointer;
    background: #f8f9fb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    transition: var(--g-transition);
  }

  .ptm-day.active {
    color: #fff;
    background: #1677ff;
    border-color: #1677ff;
  }

  .ptm-day-quick {
    display: flex;
    gap: 8px;
    margin-top: 2px;
  }

  .ptm-prod-search .g-input {
    cursor: pointer;
  }

  .ptm-prod-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
  }

  .ptm-prod-chip {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    padding: 4px 10px;
    font-size: 12px;
    color: #1677ff;
    background: #f0f5ff;
    border: 1px solid #adc6ff;
    border-radius: 14px;
  }

  .ptm-prod-chip-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    padding: 0;
    color: #9ca3af;
    cursor: pointer;
    background: none;
    border: none;
    border-radius: 999px;
    transition: var(--g-transition);
  }

  .ptm-prod-chip-x .iconify {
    width: 12px;
    height: 12px;
  }

  .ptm-prod-chip-x:hover {
    color: #ef4444;
    background: #fff;
  }

  .ptm-prod-empty {
    font-size: 12px;
    color: #9ca3af;
  }

  .ptm-toggle-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 2px;
  }
}

.ptm-picker-search {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.ptm-picker-search .g-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
  color: #1f1f1f;
  cursor: pointer;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  transition: var(--g-transition);
}

.ptm-picker-search .g-btn:hover {
  color: #1677ff;
  border-color: #1677ff;
}

.ptm-picker-search .g-btn-sm {
  flex-shrink: 0;
}

.ptm-picker-list {
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
}

.ptm-picker-item {
  display: grid;
  grid-template-columns: auto 1fr 140px auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
}

.ptm-picker-item:last-child {
  border-bottom: none;
}

.ptm-picker-item:hover {
  background: #fafcff;
}

.ptm-picker-item .name {
  font-size: 13px;
  color: #1a1a2e;
}

.ptm-picker-item .spu {
  font-size: 12px;
  color: #9ca3af;
}

.ptm-picker-item .price {
  font-size: 12px;
  font-weight: 600;
  color: #1a1a2e;
}

.ptm-picker-empty {
  padding: 28px 14px;
  font-size: 13px;
  color: #9ca3af;
  text-align: center;
}
